Skip to content
Snippets Groups Projects
Commit 04c21934 authored by Tamaki Fujino's avatar Tamaki Fujino Committed by Yas Naoi
Browse files

Issue #3335024 by TamakiFujino, yas, Xiaohua Guan: Add a BDD test suite for...

Issue #3335024 by TamakiFujino, yas, Xiaohua Guan: Add a BDD test suite for OpenStack template versions (Read)
parent 11e052d6
No related branches found
No related tags found
1 merge request!1545Issue #3335024: Add a BDD test suite for OpenStack template versions (Read)
@minimal @ci_job @my_test
@minimal @ci_job
Feature: Create, read, update, and delete a stack for OpenStack as "Authenticated User"
@api
......
@ci_job @my_test
Feature: View and refresh a template version as "Administrator"
@api
Scenario: Refresh template versions as "Administrator"
Given I am logged in as a user with the "Administrator" role
When I visit "/clouds/openstack/{{ cloud_context }}/template_version"
And I should see "{{ template_version_name_operate }}" in the table
# The refresh button is displayed for only administrators
And I click "Refresh"
And I should see the success message "Updated Template Versions"
And I should see neither error nor warning messages
And I should see "{{ template_version_name_operate }}" in the table
@api
Scenario Outline: Read a template version as a user and administrator
Given I am logged in as <role>
When I visit "/clouds/openstack/{{ cloud_context }}/template_version"
And I should see "{{ template_version_name_operate }}" in the table
And I click "{{ template_version_name_operate }}"
Then the url should match "/clouds/openstack/{{ cloud_context }}/template_version/"
And I should see "{{ template_version_name_operate }}" in the "page_header"
And I should see "{{ template_version_name_operate }}" in the "Name"
And I should see neither error nor warning messages
Examples:
| role |
| user "{{ drupal_user_name }}" |
| a user with the "Administrator" role |
......@@ -187,6 +187,8 @@ subnet_name_operate:
BDD_subnet_@Random_operate
subnet_name_operate_updated:
BDD_subnet_@Random_updated_operate
template_version_name_operate:
heat_template_version.2021-04-16
user_name:
# You need to change the value here, or define the key-value
user_password:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment