test_image_builder module
Description: performs multiple checks on ImageBuilder Service of Domino Result: See each check below for expected results
- test_image_builder.get_ib_version()
- Description:
Gets the image builder details, such as version.
- Result:
If this function fails, all subsequent image builder checks fail.
- test_image_builder.test_cluster_node_info()
- Description:
Function returning the node info of a deployment
- Result:
Dumps the dictionary of node_info calling k8s
- test_image_builder.test_container_registry_certs()
- Description:
Gets the domino-ca and domino-generated-certificate from ImageBuilder
- Result:
Assert if domino-ca is copied to domino-generated-certificates
- test_image_builder.test_default_feature_flags()
- Description:
Displays default feature flags by querying nucleus-dispatcher
- Result:
Dictionary of the default feature flag for a deployment
- test_image_builder.test_hephaestus_mutating_webhook_configuration(get_ib_version)
- Description:
Check the existence of mutating_webhook_configuration for hephaestus
- Result:
Log info if the mutatingwebhook is present or not
- test_image_builder.test_ib_config(get_ib_version)
- Description:
Displays the config for hephaestus /forge
- Result:
Decode base64 secret of hephaestus config or just forge deployment
- test_image_builder.test_ib_crds(get_ib_version)
- Description:
Check the CRDs for image builder of interest.
- Result:
Dumps the dictionary of node_info from kubernetes_client
- test_image_builder.test_image_builder(get_ib_version)
- Description:
Displays the image builder details, such as version.
- Result:
Image builder details such as version.
- test_image_builder.test_image_builder_resources_to_check(get_ib_version)
- Description:
Function dumps the resources to check depending on image builder version
- Result:
Dumps the dictionary of k8s resources for respective image builder version
- test_image_builder.test_nucleus_dispatcher()
- test_image_builder.test_number_of_failed_build_pods()
- Description:
Function which finds out the failed pods in compute namespace (of interest for imagebuilder where the execution runs)
- Result:
Assert if the number of failed pods > 100
- test_image_builder.test_race_condition_between_forge_hephaestus(get_ib_version)
- Description:
Function which finds out the failed pods in compute namespace (of interest for imagebuilder where the execution runs)
- Result:
Assert if the number of failed pods > 100