summaryrefslogtreecommitdiff
path: root/tests/sourcecache/push.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove newly unused API surfaces in CASCacheTristan Maat2019-12-031-4/+2
| | | | | | This also involves a number of changes to tests and other parts of the codebase since they were hacking about wit API that shouldn't have existed.
* Reformat code using BlackChandan Singh2019-11-141-108/+67
| | | | | | | As discussed over the mailing list, reformat code using Black. This is a one-off change to reformat all our codebase. Moving forward, we shouldn't expect such blanket reformats. Rather, we expect each change to already comply with the Black formatting style.
* setup.cfg: make xfail marks strict by defaulttraveltissues/strictxfailDarius Makovsky2019-10-091-1/+1
| | | | tests: remove strict kwargs from xfail marks
* Allow splitting artifact cachesTristan Maat2019-09-061-0/+78
| | | | | | | This is now split into storage/index remotes, where the former is expected to be a CASRemote and the latter a BuildStream-specific remote with the extensions required to store BuildStream artifact protos.
* Mark buildbox tests as xfail if they require non implemented featuresWilliam Salmon2019-07-251-1/+2
|
* tests/sourcecache: Fix typos in commentsJürg Billeter2019-07-161-1/+1
| | | | Spotted by Darius.
* tests/sourcecache/push.py: Use dummy_context()Jürg Billeter2019-07-161-29/+26
|
* tests: Change all calls to _yaml.dump to _yaml.rountrip_dumpBenjamin Schubert2019-07-151-7/+7
| | | | | Now that both are equivalent, we can skip the sanitization part before the yaml call.
* Source cache uses new proto methodsRaoul Hidalgo Charman2019-07-081-1/+1
| | | | | | | | | This changes the location of source refs from `cache/cas/refs` to `cache/sources_protos` and fixes tests that looked in the old reference place. Source cache now uses the new protocol buffer and grpc methods defined, for storing locally, and pushing and pulling to remotes. Part of #1038
* Refactor, use context.messenger directlyAngelos Evripiotis2019-07-051-1/+1
| | | | | | Instead of having methods in Context forward calls on to the Messenger, have folks call the Messenger directly. Remove the forwarding methods in Context.
* Refactor: message handlers take 'is_silenced'Angelos Evripiotis2019-07-051-1/+1
| | | | | | | | Remove the need to pass the Context object to message handlers, by passing what is usually requested from the context instead. This paves the way to sharing less information with some child jobs - they won't need the whole context object, just the messenger.
* _yaml: Remove useless calls to '_yaml.node_sanitize'Benjamin Schubert2019-06-251-3/+3
| | | | | | Calling '_yaml.dump' will itself call '_yaml.node_sanitize', therefore we can remove all calls to it in places where we directly after call dump.
* tests/sourcecache/push.py: Less strict initialisation checkjennis/fix_failing_testJames Ennis2019-06-061-2/+2
| | | | | | | | When we are testing push failures, we are being too strict when we try to verify that the remote has failed to be initialized. The assertion was failing because of slightly different gRPC error messages. Now the assertion is less strict but still appropriate.
* plugintestutils: Rename 'plugintestutils' package to 'testing'phil/rename-plugintestutilsPhil Dawson2019-04-161-2/+2
| | | | | | | | | - Rename plugintestutils to testing. - Don't run the tests from bst-plugins-template. This imports buildstream.plugintestutils so will have to be disabled to get through CI. This can be re nabled once bst-plugins-template has been patched.
* testutils: move repo.py into buildstream.plugintestutilsPhil Dawson2019-04-121-1/+2
| | | | | | | | This needs to be exposed as part of the plugin author facing API so that plugin authors can define custom repo types which will can be passed to the set of tests which iterate over multiple source types. Part of the work towards #944
* tests: check sources are pushed even if build failsRaoul Hidalgo Charman2019-03-251-0/+39
| | | | | | | Adds a plugin build element that always fails. The test tries to build an element of this kind. Part of #440
* tests: Add source cache push failure testRaoul Hidalgo Charman2019-03-251-0/+42
| | | | Part of #440
* tests: Add source cache pull after a push testRaoul Hidalgo Charman2019-03-251-0/+45
| | | | Part of #440
* tests: Add source cache push testRaoul Hidalgo Charman2019-03-251-0/+96
Part of #440