From 9fb6a9861196d8e98c0c39e610429b9d7ee58a63 Mon Sep 17 00:00:00 2001 From: fhernan2 Date: Wed, 13 Mar 2019 09:32:36 -0500 Subject: [PATCH] Manual Tests: Horizon functionality, responsive sub domain Adding horizon functionality and horizone platform and containers responsive. Change-Id: I6d7306e5018a33a91fe3935153c217963b10ca90 --- .../horizon/horizon_functionality_suite.rst | 225 ++++++++++++++++++ .../horizon/horizon_responsive_suite.rst | 100 ++++++++ doc/source/manual_tests/horizon/index.rst | 23 ++ doc/source/manual_tests/index.rst | 7 +- 4 files changed, 352 insertions(+), 3 deletions(-) create mode 100644 doc/source/manual_tests/horizon/horizon_functionality_suite.rst create mode 100644 doc/source/manual_tests/horizon/horizon_responsive_suite.rst create mode 100644 doc/source/manual_tests/horizon/index.rst diff --git a/doc/source/manual_tests/horizon/horizon_functionality_suite.rst b/doc/source/manual_tests/horizon/horizon_functionality_suite.rst new file mode 100644 index 0000000..336add2 --- /dev/null +++ b/doc/source/manual_tests/horizon/horizon_functionality_suite.rst @@ -0,0 +1,225 @@ +===================== +HORIZON Functionality +===================== + + +.. contents:: + :local: + :depth: 1 + +------------------------ +HORIZON_functionality_01 +------------------------ + +:Test ID: HORIZON_functionality_01 +:Test Title: Image of volume - metadata update. +:Tags: functionality + +~~~~~~~~~~~~~~~~~~ +Testcase Objective +~~~~~~~~~~~~~~~~~~ + +Edit Image of volume in Horizon and add Instance Auto Recovery, verify +metadata updated. + +~~~~~~~~~~~~~~~~~~~ +Test Pre-Conditions +~~~~~~~~~~~~~~~~~~~ + +* Getting admin password credentials. + +**Note:** Do this from a new shell as a root user (do not source +/etc/platform/openrc in that shell). + +**Note:** The 'password' (in below script) should be set to the admin password +which configured during config_controller. + +.. code:: bash + + $ mkdir -p /etc/openstack + $ tee /etc/openstack/clouds.yaml << EOF + + clouds: + openstack_helm: + region_name: RegionOne + identity_api_version: 3 + auth: + username: 'admin' + password: '' + project_name: 'admin' + project_domain_name: 'default' + user_domain_name: 'default' + auth_url: 'http://keystone.openstack.svc.cluster.local/v3' + + EOF + + $ export OS_CLOUD=openstack_helm + $ openstack endpoint list + +**REMARK:** This test case is intended for test Horizon, please create flavor, +image, network, subnetwork, by using the Horizon UI, please take CLI commands +as a reference. + +~~~~~~~~~~ +Test Steps +~~~~~~~~~~ + +1. Create a Flavor. + +.. code:: bash + + $ openstack flavor create --public --id 1 --ram 512 --vcpus 1 --disk 4 m1.tiny + +2. Create an Image. + +.. code:: bash + + $ openstack image create --file cirros-0.4.0-x86_64-disk.img --disk-format qcow2 --public cirros + +**REMARK:** Make sure in copy cirros... image in your controller-0. + +3. Create a Network and Sub network. + +.. code:: bash + + $ openstack network create net + $ openstack subnet create --network net --ip-version 4 --subnet-range 192.168.0.0/24 --dhcp net-subnet1 + +4. Go to Project -> Compute -> Images, from dropdown menu of Image click on +Create Volume. + +5. Go to Project -> Volumes -> Volumes, from dropdown menu Launch an Instance. + +6. Go to Project -> Compute -> Instances, from dropdown menu click on Update +Metadata + +7. Look for "Instance Auto Recovery", add feature and click on Save. + +~~~~~~~~~~~~~~~~~ +Expected Behavior +~~~~~~~~~~~~~~~~~ + +1. Flavor created successfully. + +2. Image created successfully. + +3. Network created successfully. + +4. Volume created successfully. + +5. Instance created successfully. + +6. Metadata updated successfully. + +7. Feature updated successfully. + +------------------------ +HORIZON_functionality_02 +------------------------ + +:Test ID: HORIZON_functionality_02 +:Test Title: image of snapshot - metadata update. +:Tags: functionality + +~~~~~~~~~~~~~~~~~~ +Testcase Objective +~~~~~~~~~~~~~~~~~~ + +Edit Image of snapshot in Horizon and add Instance Auto Recovery, verify +metadata updated. + +~~~~~~~~~~~~~~~~~~~ +Test Pre-Conditions +~~~~~~~~~~~~~~~~~~~ + +* Getting admin password credentials. + +**Note:** Do this from a new shell as a root user (do not source +/etc/platform/openrc in that shell). + +**Note:** The 'password' (in below script) should be set to the admin password +which configured during config_controller. + +.. code:: bash + + $ mkdir -p /etc/openstack + $ tee /etc/openstack/clouds.yaml << EOF + + clouds: + openstack_helm: + region_name: RegionOne + identity_api_version: 3 + auth: + username: 'admin' + password: '' + project_name: 'admin' + project_domain_name: 'default' + user_domain_name: 'default' + auth_url: 'http://keystone.openstack.svc.cluster.local/v3' + + EOF + + $ export OS_CLOUD=openstack_helm + $ openstack endpoint list + +**REMARK:** This test case is intended for test Horizon, please create flavor, +image, network, subnetwork, by using the Horizon UI, please take CLI commands +as a reference. + +~~~~~~~~~~ +Test Steps +~~~~~~~~~~ + +1. Create a Flavor. + +.. code:: bash + + $ openstack flavor create --public --id 1 --ram 512 --vcpus 1 --disk 4 m1.tiny + +2. Create an Image. + +.. code:: bash + + $ openstack image create --file cirros-0.4.0-x86_64-disk.img --disk-format qcow2 --public cirros + +**REMARK:** Make sure in copy cirros... image in your controller-0. + +3. Create a Network and Sub network. + + +.. code:: bash + + $ openstack network create net + $ openstack subnet create --network net --ip-version 4 --subnet-range 192.168.0.0/24 --dhcp net-subnet1 + +4. Go to Project -> Compute -> Images, from dropdown menu of Image click on +Create Volume. + +5. Go to Project -> Volumes -> Volumes, from dropdown menu Launch an Instance. + +6. Go to Project -> Compute -> Instances, from dropdown menu click on Update +Metadata. + +7. Look for "Instance Auto Recovery", add feature and click on Save. + +~~~~~~~~~~~~~~~~~ +Expected Behavior +~~~~~~~~~~~~~~~~~ + +1. Flavor created successfully. + +2. Image created successfully. + +3. Network created successfully. + +4. Volume created successfully. + +5. Instance created successfully. + +6. Metadata updated successfully. + +7. Feature updated successfully. + +~~~~~~~~~~~ +References: +~~~~~~~~~~~ diff --git a/doc/source/manual_tests/horizon/horizon_responsive_suite.rst b/doc/source/manual_tests/horizon/horizon_responsive_suite.rst new file mode 100644 index 0000000..473bd0d --- /dev/null +++ b/doc/source/manual_tests/horizon/horizon_responsive_suite.rst @@ -0,0 +1,100 @@ +================== +HORIZON Responsive +================== + + +.. contents:: + :local: + :depth: 1 + +--------------------- +HORIZON_responsive_01 +--------------------- + +:Test ID: HORIZON_responsive_01 +:Test Title: Platform and containerized horizon UI response. +:Tags: responsive + +~~~~~~~~~~~~~~~~~~ +Testcase Objective +~~~~~~~~~~~~~~~~~~ + +Verify that after installation of the second controller the platform and +containerized horizon UI do not stop working. + +~~~~~~~~~~~~~~~~~~~ +Test Pre-Conditions +~~~~~~~~~~~~~~~~~~~ + + +~~~~~~~~~~ +Test Steps +~~~~~~~~~~ + +1. Open your web browser and type ``http://:8080`` in order +to get the login of the platform horizon UI. + +2. Open your web browser and type ``http://:31000`` in order +to get the login of the containerized horizon UI. + +~~~~~~~~~~~~~~~~~ +Expected Behavior +~~~~~~~~~~~~~~~~~ + +1. Successfully logged in into the platform horizon. + +:: + + UI - http://:8080`` + +2. Successfully logged in into the containerized horizon. + +:: + + UI - http://:31000 + +--------------------- +HORIZON_responsive_02 +--------------------- + +:Test ID: HORIZON_responsive_02 +:Test Title: Horizon login responsive. +:Tags: responsive + +~~~~~~~~~~~~~~~~~~ +Testcase Objective +~~~~~~~~~~~~~~~~~~ + +Horizon login time using All-in-one. + +~~~~~~~~~~~~~~~~~~~ +Test Pre-Conditions +~~~~~~~~~~~~~~~~~~~ + +Starlingx cluster set up. + +**REMARK:** A good suggestion is running this test case in all lab configs. + +~~~~~~~~~~ +Test Steps +~~~~~~~~~~ + +1. Open your web browser and type ``http://:8080`` in order +to get the login of the platform horizon UI. + +2. Open your web browser and type ``http://:31000`` in order +to get the login of the containerized horizon UI. + +~~~~~~~~~~~~~~~~~ +Expected Behavior +~~~~~~~~~~~~~~~~~ + +1. Make sure the login of the platform horizon UI time takes less than 5 +minutes. + +2. Make sure the login of the containerized horizon UI time takes less than 5 +minutes. + +~~~~~~~~~~~ +References: +~~~~~~~~~~~ diff --git a/doc/source/manual_tests/horizon/index.rst b/doc/source/manual_tests/horizon/index.rst new file mode 100644 index 0000000..6e37a61 --- /dev/null +++ b/doc/source/manual_tests/horizon/index.rst @@ -0,0 +1,23 @@ +======= +HORIZON +======= + +Horizon is the canonical implementation of OpenStack's Dashboard, which +provides a web based user interface to OpenStack services including Nova, +Swift, Keystone, etc. + +----------------- +Test Requirements +----------------- + +NA + +---------- +Subdomains +---------- + +.. toctree:: + :maxdepth: 2 + + horizon_functionality_suite + horizon_responsive_suite diff --git a/doc/source/manual_tests/index.rst b/doc/source/manual_tests/index.rst index 62bde71..6545c89 100644 --- a/doc/source/manual_tests/index.rst +++ b/doc/source/manual_tests/index.rst @@ -15,8 +15,9 @@ For more information about StarlingX, see https://docs.starlingx.io/. gnochi/index heat/index - networking/index - storage/index - security/index + horizon/index maintenance/index + networking/index + security/index + storage/index backup_restore/index