-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
59 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
cat <<DOCKERFILE | ||
from alpine:latest | ||
run apk -U --no-cache add git bash | ||
DOCKERFILE |
21 changes: 21 additions & 0 deletions
21
tests/journeys/fixtures/snapshots/getting-started/syv-output-on-alpine
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,21 @@ | ||
wget: unrecognized option: show-progress | ||
BusyBox v1.27.2 (2017-12-12 10:41:50 GMT) multi-call binary. | ||
|
||
Usage: wget [-c|--continue] [--spider] [-q|--quiet] [-O|--output-document FILE] | ||
[--header 'header: value'] [-Y|--proxy on/off] [-P DIR] | ||
[-S|--server-response] [-U|--user-agent AGENT] [-T SEC] URL... | ||
|
||
Retrieve files via HTTP or FTP | ||
|
||
--spider Only check URL existence: $? is 0 if exists | ||
-c Continue retrieval of aborted transfer | ||
-q Quiet | ||
-P DIR Save to DIR (default .) | ||
-S Show server response | ||
-T SEC Network read timeout is SEC seconds | ||
-O FILE Save to FILE ('-' for stdout) | ||
-U STR Use STR for User-Agent header | ||
-Y on/off Use proxy | ||
{ | ||
"a": 42 | ||
} |
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,31 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
root="$(cd "${0%/*}" && pwd)" | ||
# shellcheck source=./tests/utilities.sh | ||
source "$root/../utilities.sh" | ||
|
||
SUCCESSFULLY=0 | ||
|
||
fixture="$root/fixtures" | ||
snapshot="$fixture/snapshots/getting-started" | ||
|
||
(sandbox | ||
title "getting started" | ||
(with "a standard alpine image" | ||
(with "a clone of the getting-started repository" | ||
{ | ||
git clone https://github.com/share-secrets-safely/getting-started /getting-started | ||
cd /getting-started/ | ||
} > /dev/null | ||
|
||
(when "executing one of the wrappers" | ||
it "succeeds" && { | ||
WITH_SNAPSHOT="$snapshot/syv-output-on-alpine" \ | ||
expect_run $SUCCESSFULLY ./syp a=42 | ||
} | ||
) | ||
) | ||
) | ||
) |