Module tests.test_support_bundle
Functions
def check_bundled_nodes_matches(node_names, zip, temp_dir)
def create_failed_support_bundles(client, apps_api, number=1)
def test_support_bundle_agent_with_node_selector(client, core_api, request)
-
Scenario: support bundle agent should respect node selector
Issue: https://github.com/longhorn/longhorn/issues/5614
Given there are some nodes labeled And "system-managed-components-node-selector" is set with node label
When a support bundle is generated
Then should be able to download the support bundle successfully And support bundle should include only the labeled nodes in node collection
def test_support_bundle_agent_with_taint_toleration(client, taint_nodes_exclude_self)
-
Scenario: support bundle agent should respect taint toleration
Issue: https://github.com/longhorn/longhorn/issues/5614
Given there are some tainted nodes in the cluster And Longhorn tolerates the tainted nodes with setting "taint-toleration"
When a support bundle is generated
Then should be able to download the support bundle successfully And support bundle should include all tainted nodes in node collection
def test_support_bundle_failed_limit(client, apps_api)
-
Scenario: test support bundle failed limit
Issue: https://github.com/longhorn/longhorn/issues/2759
Given support-bundle-failed-history-limit setting is 2 And 2 failed support bundle created
When create support bundle Then should fail to create
def test_support_bundle_purge(client, apps_api)
-
Scenario: test support bundle
Issue: https://github.com/longhorn/longhorn/issues/2759
Given support-bundle-failed-history-limit setting is 2 And 2 failed support bundle created
When set support-bundle-failed-history-limit setting to 0 Then failed support bundles should be deleted And support bundle managers should be deleted
When create a failed support bundle Then failed support bundle should be deleted And support bundle manager should be deleted
def test_support_bundle_should_delete_after_download(client)
-
Scenario: test support bundle should delete after download
Issue: https://github.com/longhorn/longhorn/issues/2759
Given support bundle created And support bundle is in ReadyToDownload state
When download support bundle Then support bundle is downloaded And support bundle should be deleted And support bundle manager should be deleted
def test_support_bundle_should_error_when_failed(client, apps_api)
-
Scenario: test support bundle should error when failed
Issue: https://github.com/longhorn/longhorn/issues/2759
Given support-bundle-failed-history-limit setting is 1 And support bundle created And support bundle is in Generating state
When delete support bundle manager deployment Then support bundle should be in state Error
def test_support_bundle_should_not_timeout(client, core_api)
-
Scenario: test support bundle should not timeout
Issue: https://github.com/longhorn/longhorn/issues/6256
Given support bundle created And support bundle state is (ReadyForDownload) And replace support bundle zip file with a large file (5GB) And support bundle file size is updated to the size of the large file
When download support bundle
Then support bundle should be downloaded successfully And support bundle should be deleted And support bundle manager should be deleted
def test_support_bundle_should_replace_existing_ready_support_bundle(client)
-
Scenario: test support bundle should replace existing ready support bundle
Issue: https://github.com/longhorn/longhorn/issues/5882
Given support bundle created And support bundle is in ReadyToDownload state And support bundle is not downloaded
When new support bundle created
Then download new support bundle And new support bundle is downloaded And new support bundle should be deleted And old support bundle should be deleted And new support bundle manager should be deleted And old support bundle manager should be deleted