Skip to content

Commit

Permalink
add README instruction on dependency check changes
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Valdron <[email protected]>
  • Loading branch information
michael-valdron committed Jul 26, 2023
1 parent a5da72e commit 3464e43
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Devfile Registry Testing

## Dependency check

### Prerequisites

- Ensure `yq 4.3x` is installed

### Running the build script

- This script performs three actions
- Clones samples from provided `extraDevfileEntries.yaml` under `samples/.cache`
- Creates a `parents.yaml` which contains the dependency tree for parent stacks
- Outputs the child sample paths of parent stacks, `TEST_DELTA=true` will result in only outputting child samples which have changed parent stacks
- The build script takes one optional argument and works off of the current working directory
- `bash tests/build_parents_file.sh`, default samples file is `extraDevfileEntries.yaml`
- `bash tests/build_parents_file.sh <path_to_extraDevfileEntries>`

### Use with testing

- One can test the child samples using the [validate_devfile_schemas]() test suite by performing the following:
```sh
export STACKS=$(bash tests/build_parents_file.sh)
STACKS_DIR=samples/.cache bash tests/validate_devfile_schemas.sh
```

## Validating non-terminating images

### Prerequisites
Expand Down

0 comments on commit 3464e43

Please sign in to comment.