Skip to content

Commit

Permalink
lockfile: add test case for write
Browse files Browse the repository at this point in the history
  • Loading branch information
r4f4 committed May 21, 2019
1 parent 06272cb commit b43bc07
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/compose-tests/test-lockfile-write.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
set -xeuo pipefail

dn=$(cd $(dirname $0) && pwd)
. ${dn}/libcomposetest.sh

prepare_compose_test "write-lockfile"
runcompose --write-lockfile=$PWD/versions.lock
echo "ok compose"

assert_has_file "versions.lock"
assert_file_has_content $PWD/versions.lock 'packages'
assert_file_has_content $PWD/versions.lock 'fedora'
assert_file_has_content $PWD/versions.lock 'updates'
echo "lockfile created"

0 comments on commit b43bc07

Please sign in to comment.