Commit Graph

119 Commits

Author SHA1 Message Date
Arvind Iyengar cab9558972
Ensure RenderValue has better handling around nil or zero objects from extract 2023-03-14 22:49:45 -07:00
Arvind Iyengar 51a1dea048
Ensure RenderValue returns correct value for ok for zero or nil values that have been extracted 2023-03-14 12:00:18 -07:00
Arvind Iyengar e494aa495a
Merge pull request #26 from aiyengar2/refactor_suite
Refactor test.Suite to simplify usage
2023-03-08 18:03:04 -08:00
Arvind Iyengar 928ddfff62
Refactor test.Suite and update examples with more flavor 2023-03-08 17:58:47 -08:00
Arvind Iyengar 155991677d
Add ability to extract values from a set RenderValues struct 2023-03-08 17:58:47 -08:00
Arvind Iyengar 2cbcfe7e7f
Add utility package to extract fields from objects via string paths 2023-03-08 17:58:47 -08:00
Arvind Iyengar 0efdf44f23
Introduce the ability to directly call chart.RenderValues 2023-03-08 17:56:33 -08:00
Arvind Iyengar 1bc7346af6
Merge pull request #25 from aiyengar2/add_helper_functions
Add a ton of helper functions using Go generics to the checker pkg
2023-03-08 17:56:27 -08:00
Arvind Iyengar eb328fbe03
Add more helper utilities around passing information between ChainedCheckFuncs 2023-03-08 17:49:48 -08:00
Arvind Iyengar 44bd38742e
Add more helper utilities around resources 2023-03-08 17:49:48 -08:00
Arvind Iyengar f1545f6af2
Add more helper utilities around YAML or JSON transformations of objects to checker 2023-03-08 17:49:48 -08:00
Arvind Iyengar 344ce93c34
Add more helper utilities around looping through resources 2023-03-08 17:49:48 -08:00
Arvind Iyengar 60e756a4a2
Merge pull request #24 from aiyengar2/refactor_chain_logic
Refactor checker.NewChainedCheckFunc and checker.TestContext
2023-03-08 17:49:19 -08:00
Arvind Iyengar 745d4ce4b8
Refactor NewChainedCheckFunc 2023-03-08 17:43:30 -08:00
Arvind Iyengar 1f8d2659a8
Refactor TestContext functions and move to context.go 2023-03-08 17:43:29 -08:00
Arvind Iyengar 1f3ba29081
Merge pull request #23 from aiyengar2/add_additional_suite_options
Add additional test.Suite options
2023-03-08 17:42:52 -08:00
Arvind Iyengar b03877a40c
Add ability to supply FailureCases 2023-03-08 17:37:29 -08:00
Arvind Iyengar dd8f8ba6f2
Allow users to override DefaultValues used for a chart in a test.Suite 2023-03-08 17:30:25 -08:00
Arvind Iyengar 259ea3cc0d
Merge pull request #22 from aiyengar2/refactor_template_options
Refactor TemplateOptions With Hull Types
2023-03-08 17:30:18 -08:00
Arvind Iyengar bb442def11
Merge pull request #21 from aiyengar2/small_fixes_and_enhancements
Small Bug Fixes and Feature
2023-03-08 17:23:44 -08:00
Arvind Iyengar 3f35605de6
Create new chart.Release type 2023-03-08 17:21:00 -08:00
Arvind Iyengar 7b0f720af4
Create new chart.Capabilities type 2023-03-08 17:21:00 -08:00
Arvind Iyengar fa1dc29860
Create new chart.Values type that can be used to easily set values 2023-03-08 17:21:00 -08:00
Arvind Iyengar c6832113d9
Allow users to pass in non-default YAMLLint configuration to test.Suite 2023-03-08 17:16:05 -08:00
Arvind Iyengar 68ce859232
Set default values on all cases in a suite before run 2023-03-08 17:16:05 -08:00
Arvind Iyengar 9bc66a247c
Emit error on nil templateUsage instead of using assertion 2023-03-08 17:16:05 -08:00
Arvind Iyengar 7088639fd7
Remove pkg/test/coverage/deprecated 2023-03-08 17:16:04 -08:00
Arvind Iyengar c497b734b5
Enable YAMLLint in TestRun suites 2023-03-08 17:16:04 -08:00
Arvind Iyengar 1ad2151097
Rename simple/example* to simple/simple* 2023-03-08 17:16:04 -08:00
Arvind Iyengar c45bf43452
Merge pull request #20 from aiyengar2/add_new_set_command
Bump Helm version and add Set with interface{} value
2023-03-02 12:43:34 -08:00
Arvind Iyengar 7df519a1ad
Bump Helm version and add Set with interface{} value 2023-03-02 12:26:46 -08:00
Arvind Iyengar 8ea0c39c0a
Merge pull request #19 from aiyengar2/small_fixes
Small fixes and add simple-chart to examples
2023-03-02 12:26:42 -08:00
Arvind Iyengar b71f41e927
Fix missing labels in example-chart hardened resources 2023-03-02 11:48:18 -08:00
Arvind Iyengar 69967506cd
Ensure that coverage report is logged correctly on successful run with verbose flag 2023-03-02 11:02:01 -08:00
Arvind Iyengar c88b665780
Remove schema from simple-chart and add example test suite 2023-03-02 11:01:56 -08:00
Arvind Iyengar 6c376c3236
Disable YAMLLint by default 2023-03-02 10:56:08 -08:00
Arvind Iyengar afd2c072e9
Merge pull request #10 from aiyengar2/add_template_parsing
Refactor Hull
2023-02-28 11:05:42 -08:00
Arvind Iyengar f1b56411da
Bump Dockerfile.dapper to Go 1.19 2023-02-28 11:00:45 -08:00
Arvind Iyengar 2b0dd8712c
Fix typos with example charts 2023-02-28 11:00:45 -08:00
Arvind Iyengar 417d73a1ea
Remove schema generation and logic from codebase 2023-02-28 11:00:45 -08:00
Arvind Iyengar 9a061b733c
Add coverage tracker and re-introduce coverage 2023-02-28 11:00:12 -08:00
Arvind Iyengar 21012688f7
Add tpl package for template parsing 2023-02-28 10:59:41 -08:00
Arvind Iyengar ab7f4b8b5f
Move new Checks into test package and deprecate checker.Check 2023-02-28 09:56:29 -08:00
Arvind Iyengar 0b2fd7a3a1
Introduce checker.Chain and update example 2023-02-28 09:56:29 -08:00
Arvind Iyengar b5b75b4832
Remove options from checks 2023-02-28 09:56:28 -08:00
Arvind Iyengar 3e9710ecd3
Move test.Suite and variables to example.go 2023-02-28 09:56:28 -08:00
Arvind Iyengar 4120cf59bc
Remove pkg/checker/resource 2023-02-28 09:56:28 -08:00
Arvind Iyengar b47c4d6332
Rename test.go to suite.go 2023-02-28 09:56:27 -08:00
Arvind Iyengar 407eb2c712
Remove SchemaMustMatchStruct logic from coverage 2023-02-28 09:56:27 -08:00
Arvind Iyengar 92a12d62ac
Fix schema_test.go with chartPath variable 2023-02-28 09:56:27 -08:00