diff options
author | Colin Walters <walters@verbum.org> | 2014-10-17 11:47:01 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2014-10-17 19:09:42 -0400 |
commit | cdfcf09316ed61964bde950b72092a96a221493d (patch) | |
tree | 3230ac8e07f813365da2ca63f0191f0d1d604964 /tests/test-remote-add.sh | |
parent | 49540f076fb71ba06341409e77be174d8596daf7 (diff) | |
download | ostree-cdfcf09316ed61964bde950b72092a96a221493d.tar.gz |
Add "ostree remote delete" and corresponding API
For Anaconda, we have an ugly bootstrapping problem where we need to
add the remote to the repository's config, then do a pull+deploy, then
remove and re-add the config, because /etc/ostree/remotes.d doesn't
exist yet in the target system.
https://bugzilla.gnome.org/show_bug.cgi?id=738698
Diffstat (limited to 'tests/test-remote-add.sh')
-rwxr-xr-x | tests/test-remote-add.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test-remote-add.sh b/tests/test-remote-add.sh index 7cd88124..65efdc1e 100755 --- a/tests/test-remote-add.sh +++ b/tests/test-remote-add.sh @@ -32,3 +32,13 @@ echo "ok config" $OSTREE remote add --no-gpg-verify another http://another.com/repo assert_file_has_content $test_tmpdir/repo/config "gpg-verify=false" echo "ok remote no gpg-verify" + +$OSTREE remote delete another +echo "ok remote delete" + +if $OSTREE remote delete nosuchremote 2>err.txt; then + assert_not_reached "Deleting remote unexpectedly succeeded" +fi +assert_file_has_content err.txt "error: " + + |