summaryrefslogtreecommitdiff
path: root/tests/artifactcache
diff options
context:
space:
mode:
authorJames Ennis <james.ennis@codethink.com>2019-01-07 18:00:54 +0000
committerJames Ennis <james.ennis@codethink.com>2019-01-22 12:32:43 +0000
commita3fc350fdf64897ae386aa913a55318d6b048276 (patch)
tree088bfa82769eb6f72262b430f51936a8a9249c16 /tests/artifactcache
parentac13533300da75472e53d36ec03b4dddf4fe6c73 (diff)
downloadbuildstream-a3fc350fdf64897ae386aa913a55318d6b048276.tar.gz
Move push and pull to the new artifact subcommand group
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.
Diffstat (limited to 'tests/artifactcache')
-rw-r--r--tests/artifactcache/config.py2
-rw-r--r--tests/artifactcache/junctions.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/artifactcache/config.py b/tests/artifactcache/config.py
index 8c8c4b48c..fecb3dd2e 100644
--- a/tests/artifactcache/config.py
+++ b/tests/artifactcache/config.py
@@ -137,5 +137,5 @@ def test_missing_certs(cli, datafiles, config_key, config_value):
# Use `pull` here to ensure we try to initialize the remotes, triggering the error
#
# This does not happen for a simple `bst show`.
- result = cli.run(project=project, args=['pull', 'element.bst'])
+ result = cli.run(project=project, args=['artifact', 'pull', 'element.bst'])
result.assert_main_error(ErrorDomain.LOAD, LoadErrorReason.INVALID_DATA)
diff --git a/tests/artifactcache/junctions.py b/tests/artifactcache/junctions.py
index 378d007a0..c6d6921c8 100644
--- a/tests/artifactcache/junctions.py
+++ b/tests/artifactcache/junctions.py
@@ -58,7 +58,7 @@ def test_push_pull(cli, tmpdir, datafiles):
project_set_artifacts(base_project, base_share.repo)
# Now try bst push
- result = cli.run(project=project, args=['push', '--deps', 'all', 'target.bst'])
+ result = cli.run(project=project, args=['artifact', 'push', '--deps', 'all', 'target.bst'])
assert result.exit_code == 0
# And finally assert that the artifacts are in the right shares
@@ -78,7 +78,7 @@ def test_push_pull(cli, tmpdir, datafiles):
assert state != 'cached'
# Now try bst pull
- result = cli.run(project=project, args=['pull', '--deps', 'all', 'target.bst'])
+ result = cli.run(project=project, args=['artifact', 'pull', '--deps', 'all', 'target.bst'])
assert result.exit_code == 0
# And assert that they are again in the local cache, without having built