Skip to content

Commit 9f899c2

Browse files
authored
Fix CI tests returning 500 on https://jsonplaceholder.typicode.com (#543)
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent a9a5606 commit 9f899c2

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

test/ci/fail_bundle_http_non_schema.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ trap clean EXIT
1010
cat << 'EOF' > "$TMP/schema.json"
1111
{
1212
"$schema": "http://json-schema.org/draft-07/schema#",
13-
"allOf": [ { "$ref": "https://jsonplaceholder.typicode.com/todos/1" } ]
13+
"allOf": [ { "$ref": "https://schemas.sourcemeta.com/self/api/schemas/stats/jsonschema/2020-12/schema" } ]
1414
}
1515
EOF
1616

@@ -20,7 +20,7 @@ test "$CODE" = "1" || exit 1
2020

2121
cat << EOF > "$TMP/expected.txt"
2222
error: The JSON document is not a valid JSON Schema
23-
at identifier https://jsonplaceholder.typicode.com/todos/1
23+
at identifier https://schemas.sourcemeta.com/self/api/schemas/stats/jsonschema/2020-12/schema
2424
at location "/allOf/0/\$ref"
2525
EOF
2626

test/ci/fail_bundle_http_non_schema_verbose.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ trap clean EXIT
1010
cat << 'EOF' > "$TMP/schema.json"
1111
{
1212
"$schema": "http://json-schema.org/draft-07/schema#",
13-
"allOf": [ { "$ref": "https://jsonplaceholder.typicode.com/todos/1" } ]
13+
"allOf": [ { "$ref": "https://schemas.sourcemeta.com/self/api/schemas/stats/jsonschema/2020-12/schema" } ]
1414
}
1515
EOF
1616

@@ -19,9 +19,9 @@ EOF
1919
test "$CODE" = "1" || exit 1
2020

2121
cat << EOF > "$TMP/expected.txt"
22-
Resolving over HTTP: https://jsonplaceholder.typicode.com/todos/1
22+
Resolving over HTTP: https://schemas.sourcemeta.com/self/api/schemas/stats/jsonschema/2020-12/schema
2323
error: The JSON document is not a valid JSON Schema
24-
at identifier https://jsonplaceholder.typicode.com/todos/1
24+
at identifier https://schemas.sourcemeta.com/self/api/schemas/stats/jsonschema/2020-12/schema
2525
at location "/allOf/0/\$ref"
2626
EOF
2727

test/ci/fail_validate_http_non_schema.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ trap clean EXIT
1010
cat << 'EOF' > "$TMP/schema.json"
1111
{
1212
"$schema": "http://json-schema.org/draft-07/schema#",
13-
"allOf": [ { "$ref": "https://jsonplaceholder.typicode.com/todos/1" } ]
13+
"allOf": [ { "$ref": "https://schemas.sourcemeta.com/self/api/schemas/stats/jsonschema/2020-12/schema" } ]
1414
}
1515
EOF
1616

@@ -24,7 +24,7 @@ test "$CODE" = "1" || exit 1
2424

2525
cat << EOF > "$TMP/expected.txt"
2626
error: The JSON document is not a valid JSON Schema
27-
at identifier https://jsonplaceholder.typicode.com/todos/1
27+
at identifier https://schemas.sourcemeta.com/self/api/schemas/stats/jsonschema/2020-12/schema
2828
at location "/allOf/0/\$ref"
2929
EOF
3030

test/ci/fail_validate_http_non_schema_verbose.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ trap clean EXIT
1010
cat << 'EOF' > "$TMP/schema.json"
1111
{
1212
"$schema": "http://json-schema.org/draft-07/schema#",
13-
"allOf": [ { "$ref": "https://jsonplaceholder.typicode.com/todos/1" } ]
13+
"allOf": [ { "$ref": "https://schemas.sourcemeta.com/self/api/schemas/stats/jsonschema/2020-12/schema" } ]
1414
}
1515
EOF
1616

@@ -23,9 +23,9 @@ EOF
2323
test "$CODE" = "1" || exit 1
2424

2525
cat << EOF > "$TMP/expected.txt"
26-
Resolving over HTTP: https://jsonplaceholder.typicode.com/todos/1
26+
Resolving over HTTP: https://schemas.sourcemeta.com/self/api/schemas/stats/jsonschema/2020-12/schema
2727
error: The JSON document is not a valid JSON Schema
28-
at identifier https://jsonplaceholder.typicode.com/todos/1
28+
at identifier https://schemas.sourcemeta.com/self/api/schemas/stats/jsonschema/2020-12/schema
2929
at location "/allOf/0/\$ref"
3030
EOF
3131

0 commit comments

Comments
 (0)