Decapod¶
Decapod tests¶
Cluster tests¶
-
whale.decapod.tests.test_clusters.test_create_delete_cluster(cluster_steps)[source]¶ Scenario: Check cluster deletion.
Steps:
- Create cluster
- Delete cluster
-
whale.decapod.tests.test_clusters.test_get_cluster(cluster_steps, cluster)[source]¶ Scenario: Check that cluster was got.
Setup:
- Create cluster
Steps:
- Get cluster
Teardown:
- Delete cluster
Execution tests¶
-
whale.decapod.tests.test_executions.test_deploy_cluster_add_osd_monitor_telegraf(deploy_cluster, server_steps, playbook_config_steps, execution_steps)[source]¶ Scenario: Deploy Ceph cluster, add OSD and monitor hosts, Telegraf.
Setup:
- Deploy cluster
Steps:
- Get all servers
- Create new configuration, using the cluster and “Add OSD to Ceph cluster” playbook and 1 vacant server
- Execute created configuration
- Create new configuration, using the cluster and “Add monitor to the cluster” playbook and 1 vacant server
- Execute created configuration
- Create new configuration, using the cluster and “Telegraf Integration Plugin for Decapod” playbook and all used servers
- Execute created configuration
- Create new configuration, using the cluster and “Telegraf removal plugin for Decapod” playbook and all used servers
- Execute created configuration
- Create new configuration, using the cluster and “Remove monitor host from Ceph cluster” playbook and monitor server
- Execute created configuration
- Create new configuration, using the cluster and “Remove OSD host from Ceph cluster” playbook and OSD server
- Execute created configuration
Teardown:
- Delete cluster via “purge_cluster” playbook execution.
-
whale.decapod.tests.test_executions.test_deploy_cluster_add_rest_api_rados_gateway(deploy_cluster, server_steps, playbook_config_steps, execution_steps)[source]¶ Scenario: Deploy Ceph cluster, add REST API and Rados Gateway hosts.
Setup:
- Deploy cluster
Steps:
- Get all cluster servers
- Create new configuration, using the cluster and “Add Ceph REST API host” playbook, and 2 servers (one cluster server and one vacant server)
- Execute created configuration
- Create new configuration, using the cluster and “Add Rados Gateway to the cluster” playbook, and 2 servers (one cluster server and one vacant server)
- Execute created configuration
- Create new configuration, using the cluster and “Remove Rados Gateway host from cluster” playbook, and Rados Gateway servers
- Execute created configuration
- Create new configuration, using the cluster and “Remove Ceph REST API host” playbook, and REST API servers
- Execute created configuration
Teardown:
- Delete cluster via “purge_cluster” playbook execution.
-
whale.decapod.tests.test_executions.test_deploy_cluster_integrate_cinder_upgrade_ceph(deploy_cluster, playbook_config_steps, execution_steps)[source]¶ Scenario: Deploy Ceph cluster with Cinder integration, upgrade Ceph.
Setup:
- Deploy cluster with OSD collocated journals and Ceph RestAPI
Steps:
- Create new configuration, using the cluster and “Cinder Integration” playbook with “Cinder with Ceph backend”, “Glance with Ceph backend” and “Nova with Ceph backend”
- Execute created configuration
- Create new configuration, using the cluster and “Upgrade Ceph” playbook with force time sync on Ceph nodes
- Execute created configuration
Teardown:
- Delete cluster via “purge_cluster” playbook execution.
Playbook configuration tests¶
-
whale.decapod.tests.test_playbook_configs.test_create_delete_playbook_config(playbook_config_steps, cluster, server_steps)[source]¶ Scenario: Check playbook configuration creation and deletion.
Setup:
- Create cluster
Steps:
- Get list of all servers
- Create playbook configuration
- Delete playbook configuration
Teardown:
- Delete cluster
-
whale.decapod.tests.test_playbook_configs.test_get_playbook_config(playbook_config_steps, playbook_config_deploy)[source]¶ Scenario: Check playbook configuration getting.
Setup:
- Create playbook configuration
Steps:
- Get playbook configuration by its id
Teardown:
- Delete playbook configuration
-
whale.decapod.tests.test_playbook_configs.test_list_playbook_configs(playbook_config_deploy, playbook_config_steps)[source]¶ Scenario: Check getting of all playbook configurations.
Setup:
- Create playbook configuration
Steps:
- Check playbook configs is not empty
Teardown:
- Delete playbook configuration
-
whale.decapod.tests.test_playbook_configs.test_update_playbook_config(playbook_config_steps, playbook_config_deploy)[source]¶ Scenario: Check playbook configuration updating.
Setup:
- Create playbook configuration
Steps:
- Update playbook configuration with new name
Teardown:
- Delete playbook configuration
Playbook tests¶
Role tests¶
-
whale.decapod.tests.test_roles.test_create_and_delete_role(role_steps)[source]¶ Scenario: Check creating and deleting of role.
Steps:
- Create role
- Delete role
-
whale.decapod.tests.test_roles.test_get_role(role, role_steps)[source]¶ Scenario: Check role getting.
Setup:
- Create role
Steps:
- Get role by id
Teardown:
- Delete role
-
whale.decapod.tests.test_roles.test_list_permissions(role_steps)[source]¶ Scenario: Check getting all role permissions.
Steps:
- List all role permissions
Server tests¶
-
whale.decapod.tests.test_servers.test_delete_create_server(server_steps)[source]¶ Scenario: Check that server was deleted and created.
Steps:
- Delete server
- Create server
-
whale.decapod.tests.test_servers.test_get_server(server_steps)[source]¶ Scenario: Check that we got server.
Steps:
- Get server
User tests¶
-
whale.decapod.tests.test_users.test_create_delete_user(user_steps)[source]¶ Scenario: Check user creation and deletion.
Steps:
- Create user
- Delete user
-
whale.decapod.tests.test_users.test_get_user(user, user_steps)[source]¶ Scenario: Check getting of user.
Setup:
- Create user
Steps:
- Get user by id
Teardown:
- Delete user