summaryrefslogtreecommitdiff
path: root/tests/frontend/pull.py
Commit message (Collapse)AuthorAgeFilesLines
* Add --remote, -r option to bst build, inline with pull & pushTom Pollard2019-02-051-0/+53
| | | | | | Providing a remote will limit build's pull/push remote actions to the given remote specifically, ignoring those defined via user or project configuration.
* tests/frontend/pull.py: Add default target test for bst push/pullJürg Billeter2019-01-241-0/+50
|
* tests/frontend/pull.py: Refactored to use get_element_states()Tristan Van Berkom2019-01-241-4/+4
|
* Move push and pull to the new artifact subcommand groupJames Ennis2019-01-221-6/+6
| | | | | This commit also ensures that if we try to use the 'old' commands, BuildStream will fail and instruct the user to use the new command.
* Rework Skipped usageJosh Smith2018-09-191-1/+2
| | | | | | | | | | The SKIPPED message type is now used to indicate the end of a task which was successful without having to perform the given task. This overhauls the use of `Queue.done()` and therefore queues do not need to provide a processed/skipped return value from `done()`. Instead this is replaced with the action of raising a `SkipJob` exception from within `Queue.process()`.
* Add tests that not-found objects in cache are shown as SKIPPEDbschubert/log-missed-cacheBenjamin Schubert2018-08-291-0/+19
|
* Move tests.frontend.generate_junction to test.testutilsValentin David2018-08-021-2/+1
|
* tests/frontend/pull.py: Add pull test for missing blobs on the serverJürg Billeter2018-07-171-0/+42
|
* tests: Test push/pull on all platformsJürg Billeter2018-07-171-7/+0
|
* tests: Use context manager for ArtifactShareJürg Billeter2018-07-171-178/+182
|
* tests: Remove unneeded ArtifactShare.update_summary() methodJürg Billeter2018-07-091-10/+0
| | | | The OSTree summary file is no longer used.
* Interpret names as colon separated junction path in loader.Valentin David2018-06-081-0/+34
| | | | | | 'a.bst:b.bst' gets interpreted as 'b.bst' from junction 'a.bst'. Part of #359.
* _stream.py: Do not force `PipelineSelection.ALL` for build with trackingJürg Billeter2018-05-111-1/+1
| | | | | | With the dynamic plan using `_set_required()` we can avoid pulling/fetching/building unneeded elements even if elements are being tracked.
* tests: Do not rely on 'downloadable' statusJürg Billeter2018-05-111-15/+21
| | | | This is in preparation for moving away from summary files.
* tests/frontend/pull.py: Do not use a workspace for the non-strict testJürg Billeter2018-02-271-2/+3
| | | | | The cache status of reverse dependencies of workspaced elements cannot always be determined upfront.
* tests/frontend: Summarize the existing push and pull testsSam Thursfield2018-02-261-0/+20
| | | | | These tests are too long to understand at a glance so a summary is needed of each.
* tests/frontend/pull.py: Add track+pull test for non-strict build planJürg Billeter2018-01-231-0/+44
|
* tests/frontend/pull.py: Add pull test for non-strict build planJürg Billeter2018-01-231-0/+51
|
* tests: Exercise the new multiple cache supportSam Thursfield2018-01-111-76/+85
| | | | | | | | | | | This adds a new test for parsing artifact cache configuration, which calls the helper function from the 'artifactcache' module directly rather than trying to assert based on blind push and pull commands whether or not we got the complex precedence rules exactly right. This means frontend push/pull tests no longer need to be so thorough about testing precedence but they are instead expanded to assert that multiple caches work correctly.
* Add support for multiple remote cachesSam Thursfield2018-01-111-27/+6
| | | | | | | | | | | | | | | | | | | | | | This extends the 'artifacts' configuration block such that a list of `url` mappings can be given instead of a single entry. For example: artifacts: - url: http://example.com/artifacts1 - url: ssh://ostree@example.com/artifacts2 The OSTreeCache class is updated to set up multiple remotes and query remote refs from all of them. There are no automated tests for this yet. Empty URLs ('') now raise an exception. They cause breakages internally if we allow them through, and they can only occur if the user or our tests are misconfiguring things somehow. We report failure to fetch from the cache by printing a message to stderr for now. This is because BuildStream's actual logging functionality can't be used during frontend init -- see issue #168.
* tests/frontend: Assert cached state in a single lineSam Thursfield2018-01-111-12/+6
| | | | | Minor tweak to hopefully make the test cases a bit shorter and more readable, in preparation for adding more.
* tests/frontend: Updating tests to use new error checksTristan Van Berkom2018-01-011-6/+6
| | | | | This also fixes #177 - the problem here was solved simply by passing the project directory to `cli.run(project=project...)`
* tests/frontend: Reverse ordering of cache specificationsSam Thursfield2017-12-121-7/+7
| | | | | | | | | | | The cache parameters are now in highest-to-lowest precidence order corresponding to left-to-right along the line where they are specified. Once we make it possible to specify a list of URLs for each of these parameters, the precidence will continue to always read from highest to lowest corresponding to left-to-right since each list of URLs will also read left-to-right.
* Replace 'push-url' and 'pull-url' options with just 'url'sam/canonical-push-urlsSam Thursfield2017-11-221-8/+4
| | | | | | | | This is possible now that the SSH protocol can redirect to the appropriate pull URL. Note that this commit makes no attempt at backwards compatibility. Everthing will break!
* Fix tests for other platformsTristan Maat2017-09-281-0/+3
|
* Test the proper fallback of artifact configsMathieu Bridon2017-09-191-3/+33
|
* tests/frontend/pull.py: Added test case for testing `bst pull`Tristan Van Berkom2017-09-051-0/+145