Skip to content

Commit 51b97b8

Browse files
committed
update smoke tests to use net plugin
1 parent 4e75beb commit 51b97b8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

scripts/smoke_test.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ set -e
66
/usr/local/bin/steampipe --version # check version
77
/usr/local/bin/steampipe query "select 1 as installed" # verify installation
88

9-
/usr/local/bin/steampipe plugin install steampipe # verify plugin install
9+
/usr/local/bin/steampipe plugin install net # verify plugin install
1010
/usr/local/bin/steampipe plugin list # verify plugin listings
1111

12-
/usr/local/bin/steampipe query "select name from steampipe_registry_plugin limit 10;" # verify simple query
12+
/usr/local/bin/steampipe query "select issuer, not_after as exp_date from net_certificate where domain = 'steampipe.io';" # verify simple query
1313

14-
/usr/local/bin/steampipe plugin uninstall steampipe # verify plugin uninstall
14+
/usr/local/bin/steampipe plugin uninstall net # verify plugin uninstall
1515
/usr/local/bin/steampipe plugin list # verify plugin listing after uninstalling
1616

17-
/usr/local/bin/steampipe plugin install steampipe # re-install for other tests
17+
/usr/local/bin/steampipe plugin install net # re-install for other tests
1818
# the file path is different for darwin and linux
1919
if [ "$(uname -s)" = "Darwin" ]; then
20-
/usr/local/bin/steampipe query "select name from steampipe_registry_plugin limit 1;" --export /Users/runner/query.sps # verify file export
20+
/usr/local/bin/steampipe query "select issuer, not_after as exp_date from net_certificate where domain = 'steampipe.io';" --export /Users/runner/query.sps # verify file export
2121
jq '.end_time' /Users/runner/query.sps # verify file created is readable
2222
else
23-
/usr/local/bin/steampipe query "select name from steampipe_registry_plugin limit 1;" --export /home/steampipe/query.sps # verify file export
23+
/usr/local/bin/steampipe query "select issuer, not_after as exp_date from net_certificate where domain = 'steampipe.io';" --export /home/steampipe/query.sps # verify file export
2424
jq '.end_time' /home/steampipe/query.sps # verify file created is readable
2525
fi
2626

@@ -31,7 +31,7 @@ if [ "$(uname -s)" = "Darwin" ]; then
3131
fi
3232

3333
# Verify log level in logfile
34-
STEAMPIPE_LOG=info /usr/local/bin/steampipe query "select name from steampipe_registry_plugin limit 1;"
34+
STEAMPIPE_LOG=info /usr/local/bin/steampipe query "select issuer, not_after as exp_date from net_certificate where domain = 'steampipe.io';"
3535

3636
# Check if log file exists before attempting to cat it
3737
if ls $LOG_PATH 1> /dev/null 2>&1; then

0 commit comments

Comments
 (0)