A python3 container CI tool for testing images.
Project description
container-ci-suite
This repo is used for testing SCL containers. For container execution docker
or podman
commands are used.
No Python bidings. The same for OpenShift tests. oc
command is used.
How to use Container CI Suite for testing containers
Install this suite by command:
pip3 install git+https://github.com/phracek/container-ci-suite
Run a test with Container-CI-Suite
import os
import pytest
from container_ci_suite.api import ContainerCISuite
image_name = os.environ.get("IMAGE_NAME", "nginx-container")
test_dir = os.path.abspath(os.path.dirname(__file__))
class TestDummyImage(object):
def test_s2i_usage(self):
ccs = ContainerCISuite(image_name=image_name)
ccs.s2i_usage()
container-common-scripts functions and arguments
- ct_cleanup
- ct_enable_cleanup
- ct_check_envs_set
- ct_get_cip
- ct_get_cid
- ct_wait_for_cid
- ct_assert_container_creation_fails
- ct_create_container
- ct_scl_usage_old
- ct_doc_content_old
- full_ca_file_path
- ct_mount_ca_file
- ct_build_s2i_npm_variables
- ct_npm_works
- ct_binary_found_from_df
- ct_check_exec_env_vars
- ct_check_scl_enable_vars
- ct_path_append
- ct_path_foreach
- ct_run_test_list
- ct_gen_self_signed_cert_pem
- ct_obtain_input
- ct_test_response
- ct_registry_from_os
- ct_get_public_image_name
- ct_assert_cmd_success
- ct_assert_cmd_failure
- ct_random_string
- ct_s2i_usage
- ct_s2i_build_as_df
- ct_check_image_availability
- ct_check_latest_imagestreams
- ct_test_app_dockerfile
- ct_get_uid_from_image
- ct_clone_git_repository
- ct_show_resources
- ct_s2i_multistage_build
OpenShift tests
- ct_os_cleanup
- ct_os_check_compulsory_vars
- ct_os_get_status
- ct_os_print_logs
- ct_os_enable_print_logs
- ct_get_public_ip
- ct_os_run_in_pod
- ct_os_get_service_ip
- ct_os_get_all_pods_status
- ct_os_get_all_pods_name
- ct_os_get_pod_status
- ct_os_get_build_pod_status
- ct_os_get_buildconfig_pod_name
- ct_os_get_pod_name
- ct_os_get_pod_ip
- ct_os_get_sti_build_logs
- ct_os_check_pod_readiness
- ct_os_wait_pod_ready
- ct_os_wait_rc_ready
- ct_os_deploy_pure_image
- ct_os_deploy_s2i_image
- ct_os_deploy_template_image
- _ct_os_get_uniq_project_name
- ct_os_new_project
- ct_os_delete_project
- ct_delete_all_objects
- ct_os_docker_login
- ct_os_upload_image
- ct_os_is_tag_exists
- ct_os_template_exists
- ct_os_install_in_centos
- ct_os_cluster_up
- ct_os_cluster_down
- ct_os_cluster_running
- ct_os_logged_in
- ct_os_set_path_oc
- ct_os_get_latest_ver
- ct_os_download_upstream_oc
- ct_os_test_s2i_app_func
- ct_os_test_s2i_app
- ct_os_test_template_app_func
- ct_os_test_template_app
- ct_os_test_image_update
- ct_os_deploy_cmd_image
- ct_os_cmd_image_run
- ct_os_test_response_internal
- ct_os_get_image_from_pod
- ct_os_check_cmd_internal
- ct_os_test_image_stream_template
- ct_os_wait_stream_ready
- ct_os_test_image_stream_s2i
- ct_os_test_image_stream_quickstart
- ct_os_service_image_info
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
container-ci-suite-0.0.3.tar.gz
(11.5 kB
view details)
Built Distribution
File details
Details for the file container-ci-suite-0.0.3.tar.gz
.
File metadata
- Download URL: container-ci-suite-0.0.3.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e97e1c9b0b3d9f40682666bfb3b9ab25aba03e301fbacd087c4e98d7111d2318 |
|
MD5 | 1991feee1c53d2cd539a67fa4ce621a0 |
|
BLAKE2b-256 | 5ef412bd55de6ade121ecae07539e297b5011e460c1e235788b3db2fab7bfc12 |
File details
Details for the file container_ci_suite-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: container_ci_suite-0.0.3-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6274433e97d2d892b76854409c5efc7382cc9af4a682b1518737e99643e3ef4b |
|
MD5 | ac59f117e86bf38453414cd5275e6780 |
|
BLAKE2b-256 | 70fbca3b2959d18b30cf054e558080935bce70af25ce28b8d9a30b2043959e83 |