-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Notify when
mod install
creates a default mod. Remove newline from …
- Loading branch information
1 parent
ca126b4
commit 56c32a2
Showing
2 changed files
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ load "$LIB_BATS_SUPPORT/load.bash" | |
} | ||
|
||
@test "install latest(--force)" { | ||
skip | ||
run powerpipe mod install github.com/turbot/steampipe-mod-aws-compliance --force | ||
assert_output --partial 'Installed 1 mod: | ||
|
@@ -16,21 +17,21 @@ local | |
} | ||
|
||
@test "install latest and then run install" { | ||
powerpipe mod install github.com/turbot/steampipe-mod-aws-compliance --force | ||
powerpipe mod install github.com/turbot/steampipe-mod-aws-compliance | ||
run powerpipe mod install | ||
assert_output 'All mods are up to date' | ||
} | ||
|
||
@test "install mod and list" { | ||
powerpipe mod install github.com/turbot/[email protected] --force | ||
powerpipe mod install github.com/turbot/[email protected] | ||
run powerpipe mod list | ||
assert_output ' | ||
local | ||
└── github.com/turbot/[email protected]' | ||
} | ||
|
||
@test "install old version when latest already installed" { | ||
powerpipe mod install github.com/turbot/steampipe-mod-aws-compliance --force | ||
powerpipe mod install github.com/turbot/steampipe-mod-aws-compliance | ||
run powerpipe mod install github.com/turbot/[email protected] | ||
assert_output ' | ||
Downgraded 1 mod: | ||
|
@@ -57,7 +58,8 @@ local | |
@test "install a mod with protocol in url" { | ||
run powerpipe mod install https://github.com/turbot/[email protected] --force | ||
# should install with the protocol in the url prefix | ||
assert_output ' | ||
assert_output 'Initializing mod, created mod.pp. | ||
Installed 1 mod: | ||
local | ||
|
@@ -74,7 +76,8 @@ local | |
@test "complex mod dependency resolution - test tree structure" { | ||
run powerpipe mod install github.com/pskrbasu/steampipe-mod-top-level | ||
# test the tree structure output | ||
assert_output ' | ||
assert_output 'Initializing mod, created mod.pp. | ||
Installed 4 mods: | ||
local | ||
|