-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update dir locations and add goss test
- Loading branch information
1 parent
24c341f
commit 9a68a9d
Showing
4 changed files
with
43 additions
and
9 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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package: | ||
curl: | ||
installed: true | ||
|
||
file: | ||
/opt/session-components/: | ||
exists: true | ||
mode: "0755" | ||
filetype: directory | ||
/usr/local/bin/run.sh: | ||
exists: true | ||
filetype: file | ||
mode: "0755" |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
# install goss | ||
GOSS_FILE=${GOSS_FILE:-/test/goss.yaml} | ||
GOSS_VERSION=${GOSS_VERSION:-0.4.6} | ||
GOSS_MAX_CONCURRENT=${GOSS_MAX_CONCURRENT:-50} | ||
|
||
if [ -f /etc/debian_version ]; then | ||
OS="ubuntu" | ||
else | ||
echo "OS not supported. Exiting" | ||
exit 1 | ||
fi | ||
|
||
# install goss to tmp location and make executable | ||
curl -fsSL https://github.com/aelsabbahy/goss/releases/download/v$GOSS_VERSION/goss-linux-amd64 -o /tmp/goss \ | ||
&& chmod +x /tmp/goss \ | ||
&& GOSS=/tmp/goss | ||
|
||
OS=$OS GOSS_FILE=$GOSS_FILE $GOSS v --format documentation --max-concurrent $GOSS_MAX_CONCURRENT |