-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run networking tests as CI-specific tests (#29)
Signed-off-by: Juan Cruz Viotti <[email protected]>
- Loading branch information
Showing
6 changed files
with
60 additions
and
2 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 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,46 @@ | ||
#!/bin/sh | ||
|
||
set -o errexit | ||
set -o nounset | ||
|
||
TMP="$(mktemp -d)" | ||
clean() { rm -rf "$TMP"; } | ||
trap clean EXIT | ||
|
||
cat << 'EOF' > "$TMP/schema.json" | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$ref": "https://json-schema.org/draft/2020-12/meta/format-annotation" | ||
} | ||
EOF | ||
|
||
"$1" bundle "$TMP/schema.json" --http > "$TMP/result.json" | ||
|
||
cat << 'EOF' > "$TMP/expected.json" | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$ref": "https://json-schema.org/draft/2020-12/meta/format-annotation", | ||
"$defs": { | ||
"https://json-schema.org/draft/2020-12/meta/format-annotation": { | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://json-schema.org/draft/2020-12/meta/format-annotation", | ||
"$vocabulary": { | ||
"https://json-schema.org/draft/2020-12/vocab/format-annotation": true | ||
}, | ||
"$dynamicAnchor": "meta", | ||
"title": "Format vocabulary meta-schema for annotation results", | ||
"type": [ | ||
"object", | ||
"boolean" | ||
], | ||
"properties": { | ||
"format": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
EOF | ||
|
||
diff "$TMP/result.json" "$TMP/expected.json" |