tests: Adding update to project info for negative test case
Signed-off-by: teddylear <teddylear@gmail.com>
This commit is contained in:
parent
69ce99d020
commit
7cf8c280af
@ -28,7 +28,7 @@ var infoCmd = &cobra.Command{
|
||||
lg.Fatal().Msg("dagger project not found. Run `dagger project init`")
|
||||
}
|
||||
|
||||
fmt.Printf("\nCurrent dagger project in: %s", cueModPath)
|
||||
fmt.Printf("\nCurrent dagger project in: %s\n", cueModPath)
|
||||
|
||||
// TODO: find available plans and if they load successfully
|
||||
},
|
||||
|
@ -4,6 +4,7 @@ setup() {
|
||||
common_setup
|
||||
|
||||
TEMPDIR=$(mktemp -d)
|
||||
TEMPDIR2=$(mktemp -d)
|
||||
}
|
||||
|
||||
@test "project init and update and info" {
|
||||
@ -32,4 +33,9 @@ setup() {
|
||||
assert_success
|
||||
assert_output --partial "Current dagger project in:"
|
||||
assert_output --partial "$TEMPDIR"
|
||||
|
||||
cd "$TEMPDIR2" || exit
|
||||
run "$DAGGER" project info
|
||||
assert_failure
|
||||
assert_output --partial "dagger project not found. Run \`dagger project init\`"
|
||||
}
|
||||
|
Reference in New Issue
Block a user