Skip to content

Commit

Permalink
Fix schema
Browse files Browse the repository at this point in the history
  • Loading branch information
nck-mlcnv committed Sep 11, 2024
1 parent a2ae16f commit b08f77a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions graalvm/generate-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ if [ -f "$TARGET_DIR"/native/agent-output/test/resource-config.json ]; then
fi

# Run through multiple different execution paths, so that the tracing agent can generate complete configuration files.
"$GRAALVM_HOME"/bin/java -agentlib:native-image-agent=config-merge-dir=src/main/resources/META-INF/native-image/ -jar "$TARGET_DIR"/iguana.jar --help #> /dev/null
"$GRAALVM_HOME"/bin/java -agentlib:native-image-agent=config-merge-dir=src/main/resources/META-INF/native-image/ -jar "$TARGET_DIR"/iguana.jar --dry-run -is "$SUITE" #> /dev/null
"$GRAALVM_HOME"/bin/java -agentlib:native-image-agent=config-merge-dir=src/main/resources/META-INF/native-image/ -jar "$TARGET_DIR"/iguana.jar --dry-run "$SUITE" #> /dev/null
"$GRAALVM_HOME"/bin/java -agentlib:native-image-agent=config-merge-dir=src/main/resources/META-INF/native-image/ -jar "$TARGET_DIR"/iguana.jar --help > /dev/null
"$GRAALVM_HOME"/bin/java -agentlib:native-image-agent=config-merge-dir=src/main/resources/META-INF/native-image/ -jar "$TARGET_DIR"/iguana.jar --dry-run -is "$SUITE" > /dev/null
"$GRAALVM_HOME"/bin/java -agentlib:native-image-agent=config-merge-dir=src/main/resources/META-INF/native-image/ -jar "$TARGET_DIR"/iguana.jar --dry-run "$SUITE" > /dev/null

# there is a bug in the tracing agent that outputs wrong formatted lines in the resource-config.json file (https://github.com/oracle/graal/issues/7985)
sed 's/\\\\E//g' src/main/resources/META-INF/native-image/resource-config.json | sed 's/\\\\Q//g' > src/main/resources/META-INF/native-image/resource-config.json.tmp
Expand Down
8 changes: 4 additions & 4 deletions schema/iguana-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@
"duration"
]
},
"Pattern": {
"Template": {
"type": "object",
"additionalProperties": false,
"properties": {
Expand All @@ -356,7 +356,7 @@
"required": [
"endpoint"
],
"title": "Pattern"
"title": "Template"
},
"QueryMixes": {
"properties": {
Expand Down Expand Up @@ -400,8 +400,8 @@
"type": "string",
"enum": [ "", "SPARQL" ]
},
"pattern": {
"$ref": "#/definitions/Pattern"
"template": {
"$ref": "#/definitions/Template"
}
},
"required": [
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/iguana-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@
"duration"
]
},
"Pattern": {
"Template": {
"type": "object",
"additionalProperties": false,
"properties": {
Expand All @@ -356,7 +356,7 @@
"required": [
"endpoint"
],
"title": "Pattern"
"title": "Template"
},
"QueryMixes": {
"properties": {
Expand Down Expand Up @@ -400,8 +400,8 @@
"type": "string",
"enum": [ "", "SPARQL" ]
},
"pattern": {
"$ref": "#/definitions/Pattern"
"template": {
"$ref": "#/definitions/Template"
}
},
"required": [
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/suite-configs/valid/config-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ tasks:
path: "./example/suite/queries/"
format: "folder"
order: "random"
pattern:
template:
endpoint: "http://localhost:3030/sp2b"
limit: 2000
save: false
Expand Down

0 comments on commit b08f77a

Please sign in to comment.