-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: add spread suite for godeps plugin (#2200)
Move the plugin integration tests for the Godeps plugin into a Spread suite. LP: #1783833 Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
- Loading branch information
1 parent
19c651a
commit 84932cc
Showing
12 changed files
with
75 additions
and
75 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 was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
tests/spread/plugins/godeps/run-with-go-packages/task.yaml
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,27 @@ | ||
summary: Build and run a Godeps snap using go-packages | ||
|
||
environment: | ||
SNAP_DIR: ../snaps/godeps-with-go-packages | ||
GOBIN/gobin: gobin | ||
GOBIN/no_gobin: | ||
|
||
restore: | | ||
cd "$SNAP_DIR" | ||
snapcraft clean | ||
rm -f ./*.snap | ||
execute: | | ||
if [ -z "$GOBIN" ]; then | ||
unset GOBIN | ||
fi | ||
cd "$SNAP_DIR" | ||
snapcraft | ||
sudo snap install godeps-with-go-packages_*.snap --dangerous | ||
# Verify that bcrypt was not built | ||
[ ! -e "prime/bin/bcrypt" ] | ||
hash="$(godeps-with-go-packages.bcrypt hash 10 password)" | ||
check="$(godeps-with-go-packages.bcrypt check "$hash" password)" | ||
[ "$check" = "Equal" ] |
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,24 @@ | ||
summary: Build and run a basic Godeps snap | ||
|
||
environment: | ||
SNAP_DIR: ../snaps/godeps | ||
GOBIN/gobin: gobin | ||
GOBIN/no_gobin: | ||
|
||
restore: | | ||
cd "$SNAP_DIR" | ||
snapcraft clean | ||
rm -f ./*.snap | ||
execute: | | ||
if [ -z "$GOBIN" ]; then | ||
unset GOBIN | ||
fi | ||
cd "$SNAP_DIR" | ||
snapcraft | ||
sudo snap install godeps_*.snap --dangerous | ||
hash="$(godeps.bcrypt hash 10 password)" | ||
check="$(godeps.bcrypt check "$hash" password)" | ||
[ "$check" = "Equal" ] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 8 additions & 2 deletions
10
...ps/godeps-with-go-packages/snapcraft.yaml → ...deps-with-go-packages/snap/snapcraft.yaml
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
File renamed without changes.
File renamed without changes.
10 changes: 8 additions & 2 deletions
10
...s/integration/snaps/godeps/snapcraft.yaml → ...s/godeps/snaps/godeps/snap/snapcraft.yaml
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