Commit Graph

13 Commits

Author SHA1 Message Date
Jan Jasek c88583e33a Change of the procedure how the popup messages are checked
Check and close all the popup messages in one step
and return all the levels of present messages.
There is no longer necessary to use a separate step for checking
presence/absence of Success message, Error message, etc.

Change-Id: I15a0dbe99282f00c5970d9d7d5c9b480989e9e14
2023-03-17 13:09:10 +01:00
Akihiro Motoki e5d09edc20 Use python3-style super()
In python3, super() does not always require a class and self reference.
In other words, super() is enough for most cases.
This is much simpler and it is time to switch it to the newer style.

pylint provides a check for this.
Let's enable 'super-with-arguments' check.

NOTE: _prepare_mappings() method of FormRegion in
openstack_dashboard/test/integration_tests/regions/forms.py is refactored.
super() (without explicit class and self referece) does not work when
a subclass method calls a same method in a parent class multiple times.
It looks better to prepare a separate method to provide a common logic.

Change-Id: Id9512a14be9f20dbd5ebd63d446570c7b7c825ff
2020-10-15 14:37:20 +09:00
wondernath 47d14a46f5 integration test fixes
* updated admin user case navigation to admin - overview page on login
* updated test_update_compute_defaults making it specific to compute
* defined test_update_volume_defaults & updated defaults page module
* removed skip decorator for test_create_delete_project as bug 1777359
  is resolved
* cleaned up test_flavors and updated flavors page module

Change-Id: If529bfd7bc7fd0e29b42b12e601824ec6d684fca
2018-07-02 17:16:45 +00:00
panneer.smn 15574cad5c Integration test fixes
* fixed 37 tests in total
* restructured and renamed test modules as per horizon
* fixed page navigation & updated method calls
* fixed css selector and xpaths as per horizon
* Removed decorators.skip for working tests
* included decorators.skip for non - working tests
* updated description for tests as per horizon navigation
* removed *update flavor info* and *update flavor access* test, as feature unavailable on horizon
* updated table column name references in page modules
* updated bind table action names as per horizon
* included help page navigation checkpoint
* fixed rc file download drop down selection
* updated page titles in test modules
* included calls as required for spinner disappearance
* updated form fields as per test needs
* updated default ipv4 and subnet for router interfaces
* included string conversion as required for comparisons
* updated cirros image name in horizon.conf

Change-Id: I9fdc810b37443b616bbb82956d1c90a0fa5ebd6b
2018-06-21 10:59:31 +03:00
Akihiro Motoki b9d0243c33 Fix H405 (multi line docstring) warnings (openstack_dashboard)
H405: multi line docstring summary not separated with an empty line

Closes-Bug: #1696996

Change-Id: Id895695663b19522d9cdc22f8b012e49680d708b
2017-06-09 16:05:31 +00:00
Matt Borland e8e84c2db4 Flavors panel can switch to Angular
This patch enables all of the features for the Flavors panel to use Angular but
disables it, so that it is easy to switch on/off.

Note that we add integration test switches since it can't read the Django
conf.

Note that I changed the common tests to allow for testing of api calls that
don't produce error toasts, because we needed better branch coverage, and
the deleteFlavor api wasn't fully branch-tested.

Change-Id: I92b1b57bd486e5eb87179cb8d44b7551e9de2e0f
Partially-Implements: blueprint ng-flavors
2016-10-11 15:49:55 -07:00
gecong1973 0854bb9962 Fix some spelling mistakes in horizon
intermittantly should be intermittently
  finctionality should be  functionality
  funcionalities should be functionalities

  Closes-Bug: #1595439

Change-Id: If04aa2170a0c27ebfa89a1e3fa1539ea0e52f7b6
2016-06-23 17:04:35 +08:00
Luis Daniel Castellanos 9468222929 Flavors row level actions integration tests
Added integration tests to cover the row level actions
functionality for the Admin>Flavors panel:
Added test to verify update flavor info functionality
Added test to verify update access functionality

Implements blueprint: horizon-integration-tests-coverage

Change-Id: If126f9ed74e899276b1021e1a8cb39c82bb683c5
2016-06-02 13:43:06 -05:00
Timur Sufiev edcfca1ab2 Improve working with messages in integration tests
Check for presence of expected messages in integration tests (and
absense of unexpected) and dismiss expected messages at once. The
latter change should make tests to pass a bit faster.

Implements blueprint: integration-tests-improvements-part1

Change-Id: I78fe771d8d650145080b68d14ac9ef91640d0f80
2016-01-22 09:35:41 +00:00
Jenkins 0bf58f63af Merge "Add general function for generating random names" 2015-02-21 01:00:44 +00:00
lin-hua-cheng 0cde6aa055 Move to hacking 0.10
Release notes:
http://git.openstack.org/cgit/openstack-dev/hacking/tag/?id=0.10.0

Per the release notes, H307, H803 and H904 has been removed.

Fix code issues with H238 and W292.

Change-Id: I747ebb64db5825bc70f1ae19c1c1f5ca2089c06d
2015-02-04 20:27:07 -08:00
Tomáš Nováčik ee8bc19159 Add general function for generating random names
Adding function gen_random_resource_name for generation random resources
that should be used in the integration tests. Mentioned method
automatically adds horizon string into the resource name in order to clearly
distinguish resource origin.

Also timestamp is added for better debugging of the tests in more
complex testcases.

uuid4 function is used to minimize resource name collisions.

Closes-Bug: #1399219
Partially implements blueprint: selenium-integration-testing

Change-Id: Id5cb26e50b7b442af69798a2928be514adf7d8fe
2015-01-27 12:41:15 +01:00
dkorn 504bc18c1b Flavors page and basic create flavor test
Added the flavorspage under the admin tab and test_flavor_create
that checks basic flavor creation and deletion.

Partially implements blueprint: selenium-integration-testing
Closes-Bug: #1403397

Change-Id: I9841c34b27d61195c4603109cdb7cc0d7e8633ae
2015-01-14 21:11:35 +02:00