-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: test execution crd * fix: add basic test execution map * fix: map test execution model * feat: change execution model * feat: update test execution crd * fix: add param to api spce * feat: test suite execution model * feat: dep update * fix: dep update * fix: mapper for test suite execution * fix: mapper for test suite execution * fix: map var typo * fix: store test suite execution name * fix: add generation field * fix: save generation * fix: dep update * fixL execution crds docs * fix: dep update * Update docs/docs/articles/test-executions.md Co-authored-by: Julianne Fermi <[email protected]> * Update docs/docs/articles/test-executions.md Co-authored-by: Julianne Fermi <[email protected]> * Update docs/docs/articles/test-executions.md Co-authored-by: Julianne Fermi <[email protected]> --------- Co-authored-by: Julianne Fermi <[email protected]>
- Loading branch information
Showing
32 changed files
with
983 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Test and Test Suite Execution CRDs | ||
|
||
Testkube allows you to automatically run tests and test suites by creating or updating Test or Test Suite Execution CRDs. | ||
|
||
## What are Testkube Execution CRDs? | ||
|
||
In generic terms, an _Execution_ defines a _test_ or _testsuite_ which will be executed when CRD is created or updated. For example, we could define a _TestExecution_ which _runs_ a _Test_ when a _TestExecution_ gets _modified_. | ||
|
||
#### Selecting Resource | ||
|
||
Names are used when we want to select a specific resource. | ||
|
||
```yaml | ||
test: | ||
name: Testkube test name | ||
``` | ||
or | ||
```yaml | ||
testSuite: | ||
name: Testkube test suite name | ||
``` | ||
### Execution Request | ||
An Execution Request defines execution parameters for each specific resource. | ||
## Example | ||
Here are examples for a **Test Execution** *testexecution-example* which runs the **Test** *test-example* | ||
when a **Test Execution** is created or updated and a **Test Suite Execution** *testsuiteexecution-example* | ||
which runs the **Test Suite** *testsuite-example * when a **Test Suite Execution** is created or updated. | ||
```yaml | ||
apiVersion: tests.testkube.io/v1 | ||
kind: TestExecution | ||
metadata: | ||
name: testexecution-example | ||
spec: | ||
test: | ||
name: test-example | ||
executionRequest: | ||
variables: | ||
VAR_TEST: | ||
name: VAR_TEST | ||
value: "ANY" | ||
type: basic | ||
``` | ||
```yaml | ||
apiVersion: tests.testkube.io/v1 | ||
kind: TestSuiteExecution | ||
metadata: | ||
name: testsuiteexecution-example | ||
spec: | ||
testSuite: | ||
name: testsuite-example | ||
executionRequest: | ||
variables: | ||
VAR_TEST: | ||
name: VAR_TEST | ||
value: "ANY" | ||
type: basic | ||
``` | ||
## Architecture | ||
Testkube uses a Kubernetes Operator to reconcile Test and Test Suite Execution CRDs state and run the corresponding test and test suite when resource generation is changed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.