Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Acto to utilize examples when generating test values #395

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

tylergu
Copy link
Member

@tylergu tylergu commented Oct 8, 2024

This PR adds the capability to Acto to use the example values for the CRD properties when it generates values for them.

The examples can be provided as example CRs. Acto parses the example CRs and recursively add the example values in the example CRs to the CRD properties.

Copy link
Contributor

github-actions bot commented Oct 8, 2024

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  acto
  __main__.py 155
  common.py 54-55
  deploy.py 22-26, 55, 67-70, 78-79, 81-84, 89, 140-168, 200
  engine.py 99-102, 301, 444, 466-468, 484, 536-538, 559-561, 568-569, 590-602, 767-775, 983, 1034-1039, 1142-1151
  result.py
  acto/input
  input.py
  value_with_schema.py 134
  acto/input/test_generators
  primitive.py 133, 552, 622-647, 671-675, 696
  stateful_set.py
  acto/kubectl_client
  helm.py
  acto/schema
  anyof.py
  array.py 116
  base.py
  integer.py
  number.py 63-68
  object.py 143, 188-192
  opaque.py 24-33
  string.py 57, 83-87
  acto/utils
  k8s_helper.py 30, 48, 64, 92, 107, 113-116, 126-128, 138-156
  preprocess.py 17, 38-39, 66, 112-121
  process_with_except.py 13
  thread_logger.py 11-13, 37
Project Total  

This report was generated by python-coverage-comment-action

@tylergu tylergu merged commit 8a07754 into main Oct 8, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant