Skip to content

Commit 371717c

Browse files
author
Trong Nhan Mai
committed
chore: change schema to validate_schema step name
1 parent 3d43def commit 371717c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

tests/integration/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,12 @@ In case you want to debug the utility script itself, there is the verbose mode f
186186
### Step Schema
187187
188188
* `name` (`string`, required): The name of the step.
189-
* `kind` (`"analyze" | "verify" | "compare" | "shell"`, required): The kind of the step. There are 4 kinds of steps:
189+
* `kind` (`"analyze" | "verify" | "compare" | "shell" | "validate_schema`, required): The kind of the step. There are 5 kinds of steps:
190190
* `"analyze"`: runs the `macaron analyze` command.
191191
* `"verify"`: runs the `macaron verify-policy` command.
192192
* `"compare"`: compares an output file with an expected output file.
193193
* `"shell"`: runs an arbitrary shell command.
194-
* `"schema"`: validates an output file with a schema.
194+
* `"validate_schema"`: validates an output file with a schema.
195195
* `options`: Configuration options for the step. These options are specific to the step kind. See their schema below.
196196
* `env` (`dict[string, string | null]`, optional): Key value pairs of environment variables being modified during the step after inheriting the environment in which the utility is executed within. Each value can be a string if you want to set a value to the environment variable, or null if you want to "unset" the variable.
197197
* `expect_fail` (`bool`, optional, default is `false`): If `true`, assert that the step must exit with non-zero code. This should be used for cases where we expect a command to fail.
@@ -219,7 +219,7 @@ In case you want to debug the utility script itself, there is the verbose mode f
219219
* `result` (`string`, required): The output file (a relative path from test case directory).
220220
* `expected` (`string`, required): The expected output file (a relative path from test case directory).
221221
222-
### Schema step options Schema
222+
### Vallidate Schema step options Schema
223223
224224
* `kind` (`"json_schema"`, required): The kind of schema validation to perform. For now, only json-schema is supported.
225225
* `result` (`string`, required): The output file (a relative path from test case directory).

tests/integration/cases/micronaut-projects_micronaut-test/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ steps:
1616
- micronaut_test_config.yaml
1717
- --skip-deps
1818
- name: Validate JSON report schema
19-
kind: schema
19+
kind: validate_schema
2020
options:
2121
kind: json_schema
2222
schema_type: output_json_report

tests/integration/run.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ def gen_step_schema(cwd: str, check_expected_result_files: bool) -> cfgv.Map:
547547
"compare",
548548
"analyze",
549549
"verify",
550-
"schema",
550+
"validate_schema",
551551
),
552552
),
553553
),
@@ -559,7 +559,7 @@ def gen_step_schema(cwd: str, check_expected_result_files: bool) -> cfgv.Map:
559559
),
560560
cfgv.ConditionalRecurse(
561561
condition_key="kind",
562-
condition_value="schema",
562+
condition_value="validate_schema",
563563
key="options",
564564
schema=SchemaStep.options_schema(
565565
cwd=cwd,
@@ -783,7 +783,7 @@ def parse_step_config(step_id: int, step_config: Mapping) -> Step:
783783
"verify": VerifyStep,
784784
"shell": ShellStep,
785785
"compare": CompareStep,
786-
"schema": SchemaStep,
786+
"validate_schema": SchemaStep,
787787
}[kind]
788788
return step_cls( # type: ignore # https://github.com/python/mypy/issues/3115
789789
step_id=step_id,

0 commit comments

Comments
 (0)