Skip to content

Commit 3464e43

Browse files
add README instruction on dependency check changes
Signed-off-by: Michael Valdron <[email protected]>
1 parent a5da72e commit 3464e43

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

tests/README.md

+24
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# Devfile Registry Testing
22

3+
## Dependency check
4+
5+
### Prerequisites
6+
7+
- Ensure `yq 4.3x` is installed
8+
9+
### Running the build script
10+
11+
- This script performs three actions
12+
- Clones samples from provided `extraDevfileEntries.yaml` under `samples/.cache`
13+
- Creates a `parents.yaml` which contains the dependency tree for parent stacks
14+
- Outputs the child sample paths of parent stacks, `TEST_DELTA=true` will result in only outputting child samples which have changed parent stacks
15+
- The build script takes one optional argument and works off of the current working directory
16+
- `bash tests/build_parents_file.sh`, default samples file is `extraDevfileEntries.yaml`
17+
- `bash tests/build_parents_file.sh <path_to_extraDevfileEntries>`
18+
19+
### Use with testing
20+
21+
- One can test the child samples using the [validate_devfile_schemas]() test suite by performing the following:
22+
```sh
23+
export STACKS=$(bash tests/build_parents_file.sh)
24+
STACKS_DIR=samples/.cache bash tests/validate_devfile_schemas.sh
25+
```
26+
327
## Validating non-terminating images
428

529
### Prerequisites

0 commit comments

Comments
 (0)