Decapod

Decapod tests

Cluster tests

whale.decapod.tests.test_clusters.test_create_delete_cluster(cluster_steps)[source]

Scenario: Check cluster deletion.

Steps:

  1. Create cluster
  2. Delete cluster
whale.decapod.tests.test_clusters.test_get_cluster(cluster_steps, cluster)[source]

Scenario: Check that cluster was got.

Setup:

  1. Create cluster

Steps:

  1. Get cluster

Teardown:

  1. Delete cluster
whale.decapod.tests.test_clusters.test_list_clusters(cluster_steps, cluster)[source]

Scenario: Check that we got list of clusters.

**Setup:

  1. Create cluster

Steps:

  1. Get list of clusters

Teardown:

  1. Delete cluster
whale.decapod.tests.test_clusters.test_update_cluster(cluster_steps, cluster)[source]

Scenario: Check cluster update.

Setup:

  1. Create cluster

Steps:

  1. Update cluster

Teardown:

  1. 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:

  1. Deploy cluster

Steps:

  1. Get all servers
  2. Create new configuration, using the cluster and “Add OSD to Ceph cluster” playbook and 1 vacant server
  3. Execute created configuration
  4. Create new configuration, using the cluster and “Add monitor to the cluster” playbook and 1 vacant server
  5. Execute created configuration
  6. Create new configuration, using the cluster and “Telegraf Integration Plugin for Decapod” playbook and all used servers
  7. Execute created configuration
  8. Create new configuration, using the cluster and “Telegraf removal plugin for Decapod” playbook and all used servers
  9. Execute created configuration
  10. Create new configuration, using the cluster and “Remove monitor host from Ceph cluster” playbook and monitor server
  11. Execute created configuration
  12. Create new configuration, using the cluster and “Remove OSD host from Ceph cluster” playbook and OSD server
  13. Execute created configuration

Teardown:

  1. 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:

  1. Deploy cluster

Steps:

  1. Get all cluster servers
  2. Create new configuration, using the cluster and “Add Ceph REST API host” playbook, and 2 servers (one cluster server and one vacant server)
  3. Execute created configuration
  4. Create new configuration, using the cluster and “Add Rados Gateway to the cluster” playbook, and 2 servers (one cluster server and one vacant server)
  5. Execute created configuration
  6. Create new configuration, using the cluster and “Remove Rados Gateway host from cluster” playbook, and Rados Gateway servers
  7. Execute created configuration
  8. Create new configuration, using the cluster and “Remove Ceph REST API host” playbook, and REST API servers
  9. Execute created configuration

Teardown:

  1. 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:

  1. Deploy cluster with OSD collocated journals and Ceph RestAPI

Steps:

  1. Create new configuration, using the cluster and “Cinder Integration” playbook with “Cinder with Ceph backend”, “Glance with Ceph backend” and “Nova with Ceph backend”
  2. Execute created configuration
  3. Create new configuration, using the cluster and “Upgrade Ceph” playbook with force time sync on Ceph nodes
  4. Execute created configuration

Teardown:

  1. 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:

  1. Create cluster

Steps:

  1. Get list of all servers
  2. Create playbook configuration
  3. Delete playbook configuration

Teardown:

  1. 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:

  1. Create playbook configuration

Steps:

  1. Get playbook configuration by its id

Teardown:

  1. 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:

  1. Create playbook configuration

Steps:

  1. Check playbook configs is not empty

Teardown:

  1. 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:

  1. Create playbook configuration

Steps:

  1. Update playbook configuration with new name

Teardown:

  1. Delete playbook configuration

Playbook tests

whale.decapod.tests.test_playbooks.test_list_playbooks(playbook_steps)[source]

Scenario: Get list of all playbooks.

Steps:

  1. Get all playbooks

Role tests

whale.decapod.tests.test_roles.test_create_and_delete_role(role_steps)[source]

Scenario: Check creating and deleting of role.

Steps:

  1. Create role
  2. Delete role
whale.decapod.tests.test_roles.test_get_role(role, role_steps)[source]

Scenario: Check role getting.

Setup:

  1. Create role

Steps:

  1. Get role by id

Teardown:

  1. Delete role
whale.decapod.tests.test_roles.test_list_permissions(role_steps)[source]

Scenario: Check getting all role permissions.

Steps:

  1. List all role permissions
whale.decapod.tests.test_roles.test_list_roles(role_steps)[source]

Scenario: Check getting of all roles.

Steps:

  1. List all roles
whale.decapod.tests.test_roles.test_update_role(role, role_steps)[source]

Scenario: Check role updating.

Setup:

  1. Create role

Steps:

  1. Update role with the new name

Teardown:

  1. Delete role

Server tests

whale.decapod.tests.test_servers.test_delete_create_server(server_steps)[source]

Scenario: Check that server was deleted and created.

Steps:

  1. Delete server
  2. Create server
whale.decapod.tests.test_servers.test_get_server(server_steps)[source]

Scenario: Check that we got server.

Steps:

  1. Get server
whale.decapod.tests.test_servers.test_list_servers(server_steps)[source]

Scenario: Check that we got list of servers.

Steps:

  1. Get list of servers
whale.decapod.tests.test_servers.test_update_server(server_steps)[source]

Scenario: Check that server was updated.

Steps:

  1. Update server

User tests

whale.decapod.tests.test_users.test_create_delete_user(user_steps)[source]

Scenario: Check user creation and deletion.

Steps:

  1. Create user
  2. Delete user
whale.decapod.tests.test_users.test_get_user(user, user_steps)[source]

Scenario: Check getting of user.

Setup:

  1. Create user

Steps:

  1. Get user by id

Teardown:

  1. Delete user
whale.decapod.tests.test_users.test_list_users(user_steps)[source]

Scenario:** Check getting of all users.

Steps:

  1. List all users
whale.decapod.tests.test_users.test_update_user(user, user_steps)[source]

Scenario: Check updating of user.

Setup:

  1. Create user

Steps:

  1. Update user with new login, email and full name

Teardown:

  1. Delete user