Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

[RFR] Fix log collection tests. #10172

Merged
merged 4 commits into from
Jul 1, 2020
Merged

[RFR] Fix log collection tests. #10172

merged 4 commits into from
Jul 1, 2020

Conversation

jarovo
Copy link
Contributor

@jarovo jarovo commented Jun 6, 2020

There is an incident in our lab preventing the tests to pass as they cannot connect ssh. This happens only with certain sprout vm provider. This was worked-around.

Test appeared to be wrongly trying to match appliance.server.sid as a zone id. I believe this is not correct. I made the tests passing by using the server's zone every time.

{{ py.test: -sv 'cfme/tests/configure/test_log_depot_operation.py::test_collect_multiple_servers' -v --use-provider 'complete' --long-running cfme/utils/tests/test_connect_ssh.py cfme/tests/configure/test_proxy.py cfme/tests/cli/test_appliance_console_db_restore.py cfme/tests/infrastructure/test_snapshot.py::test_verify_revert_snapshot }}

There is one test failed with [Errno 104] Connection reset by peer which is the same failure I have seen before. Not related

@jarovo jarovo changed the title Signoff [WIPTEST] Signoff Jun 6, 2020
Jaroslav Henner added 2 commits June 26, 2020 15:47
The getattr seems unecessary as when the all_ips is not present in the
object, it probably never will be. Better to fail fast in that case.

Also add typing to make more clear what is the expected input.
@jarovo jarovo changed the title [WIPTEST] Signoff [WIPTEST] Fix log collection tests. Jun 26, 2020
Jaroslav Henner added 2 commits June 26, 2020 15:58
Also, remove unused function.
@dajoRH
Copy link
Contributor

dajoRH commented Jun 26, 2020

I detected some fixture changes in commit 513a35b

The global fixture depot_machine_ip is used in the following files:

  • cfme/tests/configure/test_db_backup_schedule.py
    • test_db_backup_schedule
  • cfme/tests/configure/test_log_depot_operation.py
    • configured_depot
    • test_collect_multiple_servers
    • test_collect_single_servers

Please, consider creating a PRT run to make sure your fixture changes do not break existing usage 😃

@jarovo jarovo changed the title [WIPTEST] Fix log collection tests. [RFR] Fix log collection tests. Jul 1, 2020
@jawatts jawatts merged commit 43f72bd into ManageIQ:master Jul 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants