- K8sClient moved from ./models to ./managers
- all YAMLs placed to ./tests/fixtures/templates
- all tests placed to ./tests/ into separated folders depending
on tests types
- ssh_manager removed from helpers (unused)
- main folder 'mcp_tests' renamed to 'fuel_ccp_tests'
- conftest.py moved to the ./tests/system and ./tests/component
folder because of failed unit tests (we use fixtures with
autouse=True which fail unit tests).
- empty conftest.py added to the root of fuel_ccp_tests module
to get unit tests passed
Change-Id: I25671dd7d6f3ee294a4e4146f9f2c2ba4d9b2d06
My proposal is using fixtures for our tests. So, common actions are in
mcp_tests/system_tests/base_test.py, fixtures described in
mcp_tests/system_tests/*_fixtures.py, and test looks like
mcp_tests/system_tests/test_ccp_install_k8s.py
Updated command for test:
ENV_NAME="<env_name>" IMAGE_PATH="<path_to_qcow2_image>" WORKSPACE=/tmp DEPLOY_SCRIPT="/path/to/kargo_deploy.sh" SUSPEND_ENV_ON_TEARDOWN=false py.test -vvv -s mcp_tests/system_tests/test_ccp_install_k8s.py
Change-Id: I3f18a0463e6e0b2a2c20a83ef6c1a28f09beaeed
Test creating VMs (via fuel-devops) and deploying k8s via kargo_deploy.sh (may be found in
openstack/fuel-ccp-installer project):
ENV_NAME="<env_name>" IMAGE_PATH="<path_to_qcow2_image>" WORKSPACE=/tmp DEPLOY_SCRIPT="/path/to/kargo_deploy.sh" SUSPEND_ENV_ON_TEARDOWN=false py.test -vvv -s -k "create_vms or env_base"
Change-Id: I78e1d74fed98834d46b41bbc2cae0988a6f0f606
- models for k8s cluster
- example tests for k8s
run command:
KUBE_HOST=ADMIN_HOST_IP py.test -vv mcp_tests/system_tests
Change-Id: I856144cff3f3644f18726f5f27e7251840545a52