Closed pyth0n1c closed 2 months ago
Nice thank you for the quick turn around. Waiting on CI but LGTM.
Could I similarly call test_common_func(cfg)
?
Could I similarly call
test_common_func(cfg)
?
Yes, this should work too. I moved the creation of the container objects (part of the test
object, not the underlying actual containers themselves) from main
into test_common_func
to account for this:
https://github.com/splunk/contentctl/blob/bf63cdd76dc8992fc41dfafa20ca8dd8ab3752ad/contentctl/contentctl.py#L105-L108
Doing a bit more logic in the class's pydantic validator functions might be better for this, but we can chat about that.
Add a simple was to get a contentctl config and run contentctl operations without going through the Command Line Interface/main function in contentctl.
Assuming that you are already in a repo that has contentctl.yml, the following should work: