-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch test-suite to use pretty-show and yaml for the output capture …
…for easier diffs
- Loading branch information
Showing
70 changed files
with
414 additions
and
279 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
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.
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 @@ | ||
capture: |- | ||
Just | ||
DockerCapture | ||
{ dockerCaptureImage = [ "library" , "proxy" ] | ||
, dockerCaptureReference = "latest" | ||
, dockerCaptureBackendRegistry = "ghcr.io" | ||
, dockerCapturePackage = Nothing | ||
, dockerCaptureAutoCreate = Just "rule-123" | ||
} | ||
headers: | ||
Location: https://ghcr.io/v2/library/proxy/manifests/latest | ||
X-This-Request-Was-Proxied: '1' | ||
status: 307 |
Empty file.
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,14 @@ | ||
capture: |- | ||
Just | ||
DockerCapture | ||
{ dockerCaptureImage = [ "library" , "hello-world" ] | ||
, dockerCaptureReference = "latest" | ||
, dockerCaptureBackendRegistry = "ghcr.io" | ||
, dockerCapturePackage = | ||
Just "8717953c-3452-4ef7-9a14-b64dc19163b4" | ||
, dockerCaptureAutoCreate = Nothing | ||
} | ||
headers: | ||
Location: https://ghcr.io/v2/library/hello-world/manifests/latest | ||
X-This-Request-Was-Proxied: '1' | ||
status: 307 |
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,15 @@ | ||
path: /v2/library/hello-world/manifests/latest | ||
headers: | ||
Host: cr.test.io | ||
manifest: | ||
rules: | ||
- type: docker-v1 | ||
repository-name: library/hello-world | ||
domain: cr.test.io | ||
registry: ghcr.io | ||
package-id: "8717953c-3452-4ef7-9a14-b64dc19163b4" | ||
- type: docker-v2 | ||
domain: cr.test.io | ||
registry: ghcr.io | ||
rule-id: rule-123 | ||
pattern: "library/hello-world" |
This file was deleted.
Oops, something went wrong.
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,14 @@ | ||
capture: |- | ||
Just | ||
DockerCapture | ||
{ dockerCaptureImage = [ "library" , "proxy" ] | ||
, dockerCaptureReference = "latest" | ||
, dockerCaptureBackendRegistry = "ghcr.io" | ||
, dockerCapturePackage = | ||
Just "8717953c-3452-4ef7-9a14-b64dc19163b4" | ||
, dockerCaptureAutoCreate = Nothing | ||
} | ||
headers: | ||
Location: https://ghcr.io/v2/library/proxy/manifests/latest | ||
X-This-Request-Was-Proxied: '1' | ||
status: 307 |
5 changes: 0 additions & 5 deletions
5
test/golden/file-package-with-multiple-variables-and-no-outgoing-url.output.json
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
test/golden/file-package-with-multiple-variables-and-no-outgoing-url.output.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,11 @@ | ||
capture: |- | ||
Just | ||
FlatfileCapture | ||
{ fileAbsoluteUrl = Nothing | ||
, fileVariables = | ||
fromList | ||
[ ( "somevar" , "very-nice" ) , ( "somevar2" , "really-nice" ) ] | ||
, filePackage = "21c24cd1-73fa-4970-8a6a-bc570e55b91e" | ||
} | ||
headers: {} | ||
status: 200 |
5 changes: 0 additions & 5 deletions
5
test/golden/file-package-with-no-outgoing-url-and-no-match.output.json
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
test/golden/file-package-with-no-outgoing-url-and-no-match.output.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,3 @@ | ||
capture: Nothing | ||
headers: {} | ||
status: 404 |
5 changes: 0 additions & 5 deletions
5
test/golden/file-package-with-no-outgoing-url-with-variables-and-no-match.output.json
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
test/golden/file-package-with-no-outgoing-url-with-variables-and-no-match.output.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,3 @@ | ||
capture: Nothing | ||
headers: {} | ||
status: 404 |
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
capture: |- | ||
Just | ||
FlatfileCapture | ||
{ fileAbsoluteUrl = Nothing | ||
, fileVariables = fromList [] | ||
, filePackage = "a3941b62-12ff-4c39-a263-4342495f4b8b" | ||
} | ||
headers: {} | ||
status: 200 |
This file was deleted.
Oops, something went wrong.
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,15 @@ | ||
capture: |- | ||
Just | ||
FlatfileCapture | ||
{ fileAbsoluteUrl = | ||
Just | ||
"https://datausa.io/api/data?drilldowns=Nation&measures=Population" | ||
, fileVariables = | ||
fromList | ||
[ ( "drilldowns" , "Nation" ) , ( "measures" , "Population" ) ] | ||
, filePackage = "a1b331fa-1539-49e5-bdc4-dc8a48e586d1" | ||
} | ||
headers: | ||
Location: https://datausa.io/api/data?drilldowns=Nation&measures=Population | ||
query: ?drilldowns=Nation&measures=Population | ||
status: 302 |
This file was deleted.
Oops, something went wrong.
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,15 @@ | ||
capture: |- | ||
Just | ||
FlatfileCapture | ||
{ fileAbsoluteUrl = | ||
Just | ||
"https://datausa.io/api/data?drilldowns=Nation&measures=Population" | ||
, fileVariables = | ||
fromList | ||
[ ( "drilldowns" , "Nation" ) , ( "measures" , "Population" ) ] | ||
, filePackage = "a1b331fa-1539-49e5-bdc4-dc8a48e586d1" | ||
} | ||
headers: | ||
Location: https://datausa.io/api/data?drilldowns=Nation&measures=Population | ||
query: ?measures=Population | ||
status: 302 |
Oops, something went wrong.