Description: The test_reboot_active_controller fails because the stx-openstack is not applied:
...RegionOne host-swact controller-1' failed to execute. Output: Swact action not allowed. stx-openstack apply is in progress.
During reboot of the active controller a swact should be performed which fails.
Story: N/A
Task: N/A
Signed-off-by: Alexandru <alexandru.dimofte@intel.com>
Change-Id: I363a8328159d5ce086e05037997f7f3bdd197207
Description: This changes is needed in order to fix a test failure
Error msg: TypeError: load() missing 1 required positional argument: 'Loader'
Story: N/A
Task: N/A
Signed-off-by: Alexandru <alexandru.dimofte@intel.com>
Change-Id: I4b2537bbb1969bac25ac36c4fa7d1e8b889b992e
Warnings Fixed:
W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
E0702: Raising str while only classes or instances are allowed (raising-bad-type)
Story: 2005892
Task: 43821
Change-Id: I2083fa4f8d994480c79ff557c56cf2f29c56c19f
Signed-off-by: Felipe Desiglo Ferrare <Felipe.DesigloFerrare@windriver.com>
Added test suite Host Management
Story: 2007472
Task: 39173
Patch Set 2:
Added no_duplex fixture in pre_checks_and_configs.py
Added DUPLEX_SYSTEM SkipSysType in reasons.py
Test_host_management:
replaced prints
added skips to tests according to configuration
reworked test_lock_unlock_active_controller
Patch Set 3:
imported ProjVar in test_host_management.py
Patch Set 4:
removed unused imports
added reboot active controller testcase
added reboot standby controller testcase
added reapply openstack testcase
Change-Id: I8bc27e85ce00d8b9bc4dfa1e81c3234f93164836
Signed-off-by: olovaszi <oliver.lovaszi@intel.com>
Signed-off-by: George Postolache <george.postolache@intel.com>
Description:
reasons.py:
added duplex_system reason
heat_helper.py:
replaced 'is' with '=='
host_helper.py :
in modify_host_memory and get_host_memories converted key to str from int
unused variables in string format
network_helper.py:
in add_icmp_and_tcp_rules removed "protocol" and added egress for icmp
unused variables in string format
replaced 'is' with '=='
security_helper.py:
unused variables in string format
storage_helper.py:
replaced 'is' with '=='
unused variables in string format
pytest.ini:
added robotperformance marker
performance:
added performance directory containing performance tests
fixture_resources.py:
added missing ',' in _RESOURCE_TYPES list
pre_checks_and_configs.py:
added no_duplex
telnet.py:
replace 'NotImplemented' with 'NotImplementedError'
parse_log.py:
replaced 'is' with '=='
Signed-off-by: George Postolache <george.postolache@intel.com>
Change-Id: I32e84aac33102e57f4b0eb28d9aca0f6684e6b64
-Remove test cases according to the host-based SNMP removal
-Remove community related test cases
-Remove trapdest related test cases
Story: 2008132
Task: 41393
Change-Id: I5c698fe2b9eca82971f70e4edabf16af702f4f68
Depends-On: https://review.opendev.org/765381
Signed-off-by: Takamasa Takenaka <takamasa.takenaka@windriver.com>
flake8 2.6.2 failed on ubuntu-focal zuul machines running python3.8
with the following error:
AttributeError: 'FlakesChecker' object has no attribute 'CONSTANT'
pylint failed with following error:
ERROR: InvocationError for command /home/zuul/src/opendev.org/starlingx/test/.tox/pylint/bin/pylint
--rcfile=pylint.rc automated-p
upgrade openstackdocstheme to 2.2.1 and update sphinx version
fix releasenotes to use python3
Change-Id: Ie5e11b44a3ff9695a6ec44eaf4a53baababc27ac
Signed-off-by: Yvonne Ding <yvonne.ding@windriver.com>
modified is_cepth_healthy to return both status and output
Change-Id: Iebb903bdc3d3720ae537f3f68e539a347b06693e
Signed-off-by: George Postolache <george.postolache@intel.com>
Include:
-added test case for keystone user password rules under security
-editing set_user definition in keystone_helper
-editing create_user definition in keystone_helper
-adding set_current_user_password definition used by the testcase
-editing add definition for updating user dictionary in auth file
-editing get definition to handle attribute error in auth file
Story: 2007406
Task: 39011
Change-Id: I505519c40aa4fc9f58c11bab7ab39175e1c7098d
Author: Yang Liu <yang.liu@windriver.com>
Co-Authored-By: Hrishit Mazumder <hrishit.mazumder@windriver.com>
Signed-off-by: Hrishit Mazumder <hrishit.mazumder@windriver.com>
Added conftest.py for sanity group which imports the delete_resource
functions from resource_mgmt
Added conftest.py for sanity_openstack group which contains a fixture
for creating netwok and subnet used in the suites
Added suite test_instance_from_image
Story: 2007472
Task: 39164
Patch Set 2:
Fixed following pep8 and pylint errors:
E501 line too long
E225 missing whitespace around operator
E222 multiple spaces after operator
W0106: Expression is assigned to nothing (expression-not-assigned)
Patch Set 3:
added Signed off by
added Story
added Task
Patch Set 4:
Shoortened the lines to under 100 chars
Added apache-2
Added new marker "robotsanity" to pytest.ini
Modified test markers to use robotsanity instead of sanity
Commented evacuate instances test
Patch Set 5:
Commented evacuate instances test, forgot to do it in PS4
Patch Set 6:
Added space after # for comments
Change-Id: Id17e0b65bace265f4bd2166c7bd7258ba76061f4
Signed-off-by: George Postolache <george.postolache@intel.com>
Added boot_vm_openstack simmilar with boot_vm but using
openstack create server instead of nova boot
In boot_vm set source_id into snapshot_id when provided
In resize_vm a formated string was using 2 arguments but 3 were provided
Modified NotImplemented into NotImplementedError in launch_vms and launch_vm_pair
Story: 2007472
Task: 39164
Patch Set 2:
added space around opperator (pep8)
Patch Set 3:
added Signed off by
added Story
added Task
Change-Id: I1ca8d44915f11d8c756561379f8d0bacb57c0946
Signed-off-by: George Postolache <george.postolache@intel.com>
Added LIVE_MIG_MAX_DOWNTIME flavor ('hw:wrs:live_migration_max_downtime')
to FlavorSpec class
Story: 2007472
Task: 39164
Patch Set 2:
added Signed off by
added Story
added Task
Change-Id: Ie7dea0369b4c1dfba3e2f6917480af83ec148230
Signed-off-by: George Postolache <george.postolache@intel.com>
Replaced 'snapshot delete' with 'volume_snapshot_delete' in delete_volume_snapshots
since 'snapshot delete' is deprecated
Added cleanup logic to create_volume_snapshot
- added cleanup param defaulting to None
- added check for valid cleanups
- used ResourceCleanup to add 'vol_snapshot' cleanup after the snapshot is created
Story: 2007472
Task: 39170
Patch Set 2:
added Signed off by
added Story
added Task
Change-Id: I3a87e79f24fc7cc37b387a7b9e50f1a7293c3de1
Signed-off-by: George Postolache <george.postolache@intel.com>
Removed '--is_public' from args_dict inside create_flavor since it is
not a valid argument for openstack create flavor, it is just used to
add either '--public' or '--private' to the comand.
Story: 2007472
Task: 39164
Patch Set 2:
added Signed off by
added Story
added Task
Change-Id: I16cc0d4000ab9313c65a7fa76c66678b4af65956
Signed-off-by: George Postolache <george.postolache@intel.com>
Include:
-added automated test case for admin password change under security
-added fixture for openstack apply required in pre_checks_and_configs
Story: 2007406
Task: 39011
Change-Id: I91013336f8a1ee54aa5b74e007b9457b568781ba
Author: Yang Liu <yang.liu@windriver.com>
Co-Authored-By: Hrishit Mazumder <hrishit.mazumder@windriver.com>
Signed-off-by: Hrishit Mazumder <hrishit.mazumder@windriver.com>
Include:
-added automated test case for pod to pod connectivity
-added pod related yaml files
-fixed test cases dvr, multiple ports, ping vms, and
vm meta data retrieval
Story: 2007406
Task: 39009
Change-Id: Ib20ee48d4a3769da449dc0fe487ea35cd812fb17
Author: Ayyappa Mantri <ayyappa.mantri@windriver.com>
Co-Authored-By: Yvonne Ding <yvonne.ding@windriver.com>
Signed-off-by: Yvonne Ding <yvonne.ding@windriver.com>
Include:
- added automated test cases for k8s hugepage, qos, large amount of
pods on workers
- added openstack check in test_openstack_services
- added test yaml file for k8s kugepage, qos, large amount of pods
on workers
Story: 2007406
Task: 39012
Author: Ayyappa Mantri <ayyappa.mantri@windriver.com>
Co-Authored-By: Yvonne Ding <yvonne.ding@windriver.com>
Signed-off-by: Yvonne Ding <yvonne.ding@windriver.com>
Change-Id: I5f795beec2218afae74b9cba356d74cd34d11295
Most of the v1 mitigation is baked into the kernel and not
optional. The swapgs barriers are, however, optional.
They have a negative performance impact so we disable them
by using the nospectre_v1 kernel bootarg.
Partial-Bug: 1860193
Depends-On: https://review.opendev.org/#/c/704406
Change-Id: I6281166c53b13124800b4061ebe08f85d5175d6a
Signed-off-by: Jim Somerville <Jim.Somerville@windriver.com>
in virtual environment.
When the OAM IPs in the example matches partially with what is specified
in testcase config file, the test framework will get confused and return
an error.
This commit is to put the example into comments so there will be no
conflict with actual system under test.
Change-Id: I112aaca08d8bcc6959ffa295216cb2a4d32feda8
Closes-Bug: 1839383
Signed-off-by: Yang Liu <yang.liu@windriver.com>
Include:
- util modules. such as table_parser, ssh/localhost clients, cli module,
exception, logger, etc. Util modules are mostly used by keywords.
- keywords modules. These are helper functions that are used directly by
test functions.
- platform (with platform or platform_sanity marker) and stx-openstack
(with sanity, sx_sanity, cpe_sanity, or storage_sanity marker) sanity
testcases
- pytest config conftest, and test fixture modules
- test config file template/example
Required packages:
- python3.4 or python3.5
- pytest >=3.10,<4.0
- pexpect
- requests
- pyyaml
- selenium (firefox, ffmpeg, pyvirtualdisplay, Xvfb or Xephyr or Xvnc)
Limitations:
- Anything that requires copying from Test File Server will not work until
a public share is configured to shared test files. Tests skipped for now.
Co-Authored-By: Maria Yousaf <maria.yousaf@windriver.com>
Co-Authored-By: Marvin Huang <marvin.huang@windriver.com>
Co-Authored-By: Yosief Gebremariam <yosief.gebremariam@windriver.com>
Co-Authored-By: Paul Warner <paul.warner@windriver.com>
Co-Authored-By: Xueguang Ma <Xueguang.Ma@windriver.com>
Co-Authored-By: Charles Chen <charles.chen@windriver.com>
Co-Authored-By: Daniel Graziano <Daniel.Graziano@windriver.com>
Co-Authored-By: Jordan Li <jordan.li@windriver.com>
Co-Authored-By: Nimalini Rasa <nimalini.rasa@windriver.com>
Co-Authored-By: Senthil Mukundakumar <senthil.mukundakumar@windriver.com>
Co-Authored-By: Anuejyan Manokeran <anujeyan.manokeran@windriver.com>
Co-Authored-By: Peng Peng <peng.peng@windriver.com>
Co-Authored-By: Chris Winnicki <chris.winnicki@windriver.com>
Co-Authored-By: Joe Vimar <Joe.Vimar@windriver.com>
Co-Authored-By: Alex Kozyrev <alex.kozyrev@windriver.com>
Co-Authored-By: Jack Ding <jack.ding@windriver.com>
Co-Authored-By: Ming Lei <ming.lei@windriver.com>
Co-Authored-By: Ankit Jain <ankit.jain@windriver.com>
Co-Authored-By: Eric Barrett <eric.barrett@windriver.com>
Co-Authored-By: William Jia <william.jia@windriver.com>
Co-Authored-By: Joseph Richard <Joseph.Richard@windriver.com>
Co-Authored-By: Aldo Mcfarlane <aldo.mcfarlane@windriver.com>
Story: 2005892
Task: 33750
Signed-off-by: Yang Liu <yang.liu@windriver.com>
Change-Id: I7a88a47e09733d39f024144530f5abb9aee8cad2