-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added generator decorator and tests for it - generator decorator supports k8s schema name, field name, field type, paths, and priority configuration * Rename PathIndex to PathSegment Signed-off-by: Tyler Gu <[email protected]> * Code style changes Signed-off-by: Tyler Gu <[email protected]> * Create test generator directory Signed-off-by: Tyler Gu <[email protected]> * Migrate test generator from known schemas Signed-off-by: Tyler Gu <[email protected]> * Add init for test_generators to make it a module Signed-off-by: Tyler Gu <[email protected]> * Rename tests to be consistent with previous names Signed-off-by: Tyler Gu <[email protected]> * Add attributes to TestCase class Signed-off-by: Tyler Gu <[email protected]> * Optimize and improve generator decorator - Rename `field` to `property` in decorator - Move test generator matching code to the TestGenerator data class - Support multiple constraints for test generator matching - Tests for multiple constraints * Primitive test generators - Copied value generator code to the function decorator pattern - Moved gen() method declaration in test generator to BaseSchema - Moved gen() method implementation in [Type]Schemas * Fix import error * Custom validate_call decorator for test generators - Include unittest * Fix primitive test generators * Fix unittest * Rename generator to test_generator Signed-off-by: Tyler Gu <[email protected]> * Skip the test_generator function for pytest Signed-off-by: Tyler Gu <[email protected]> * Prioritize Integer test gens over Number test gens * Migrate test generator priority to int enum * Export all test generators * Add cli schema_match that annotates CRD yaml file * Add manual for test generator decorator * Integrate new test gen into input model Signed-off-by: Tyler Gu <[email protected]> * Fix custom mapping Signed-off-by: Tyler Gu <[email protected]> * Fix applying property attributes Signed-off-by: Tyler Gu <[email protected]> * Fix value with schema Signed-off-by: Tyler Gu <[email protected]> * Fix value with anyof schema Signed-off-by: Tyler Gu <[email protected]> * Add tests for test execution Signed-off-by: Tyler Gu <[email protected]> --------- Signed-off-by: Tyler Gu <[email protected]> Co-authored-by: Tyler Gu <[email protected]>
- Loading branch information
1 parent
d3d9944
commit 79263d5
Showing
55 changed files
with
3,652 additions
and
1,001 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DEFAULT_KUBERNETES_VERSION = "v1.27.0" |
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
Empty file.
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.