Skip to content

Add e2e tests for listing resources - #8281

Merged
shwstppr merged 8 commits into
apache:mainfrom
shapeblue:e2e-test-resource-listing
Dec 20, 2023
Merged

Add e2e tests for listing resources#8281
shwstppr merged 8 commits into
apache:mainfrom
shapeblue:e2e-test-resource-listing

Conversation

@vishesh92

@vishesh92vishesh92 commented Nov 30, 2023

Copy link
Copy Markdown
Member

Description

This PR adds e2e tests for listing resources

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • build/CI

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

@codecov

codecovBot commented Nov 30, 2023

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (12dcf5c) 28.95% compared to head (26b5aae) 30.83%.
Report is 12 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@## main #8281 +/- ##
============================================
+ Coverage 28.95% 30.83% +1.88% - Complexity 31460 34020 +2560 
============================================
Files 5329 5341 +12 Lines 373523 374759 +1236 Branches 54315 54510 +195 ============================================
+ Hits 108163 115568 +7405 + Misses 250569 243972 -6597 - Partials 14791 15219 +428 
FlagCoverage Δ
simulator-marvin-tests24.75% <ø> (-0.06%)⬇️
uitests4.40% <ø> (-0.03%)⬇️
unit-tests16.44% <ø> (+1.60%)⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vishesh92
vishesh92force-pushed the e2e-test-resource-listing branch from d82e05f to 2294a23CompareNovember 30, 2023 06:33
@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7873

@vishesh92vishesh92 reopened this Nov 30, 2023
@vishesh92
vishesh92force-pushed the e2e-test-resource-listing branch from 2294a23 to 3723613CompareDecember 1, 2023 08:21
@vishesh92
vishesh92force-pushed the e2e-test-resource-listing branch from 3723613 to cff8e1aCompareDecember 1, 2023 16:21
@boring-cyborgboring-cyborgBot added component:integration-test Python Warning... Python code Ahead! labels Dec 1, 2023
@vishesh92vishesh92 reopened this Dec 1, 2023
@vishesh92
vishesh92force-pushed the e2e-test-resource-listing branch from 5c32b76 to 1fc6920CompareDecember 1, 2023 18:26
@vishesh92vishesh92 reopened this Dec 3, 2023
@vishesh92

Copy link
Copy Markdown
MemberAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@vishesh92 a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@vishesh92
vishesh92 marked this pull request as ready for review December 4, 2023 11:14

@DaanHooglandDaanHoogland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests look good, just the UI build failed, which is unrelated (annoying though)

@vishesh92

Copy link
Copy Markdown
MemberAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@vishesh92 a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@vishesh92

Copy link
Copy Markdown
MemberAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@vishesh92 a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7912

@vishesh92

Copy link
Copy Markdown
MemberAuthor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-8615)
Environment: vmware-67u3 (x2), Advanced Networking with Mgmt server r8
Total time taken: 64636 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8281-t8615-vmware-67u3.zip
Smoke tests completed. 60 look OK, 21 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_deploy_vm_start_failureError105.12test_deploy_vm.py
test_deploy_vm_volume_creation_failureError129.25test_deploy_vm.py
test01_template_download_URL_expireError15003.85test_escalations_templates.py
test_vm_haError99.43test_vm_ha.py
test_vm_syncError179.36test_vm_sync.py
test_07_project_resources_account_deleteError5.63test_projects.py
test_08_cleanup_after_project_deleteError7.48test_projects.py
ContextSuite context=TestProjectResources>:teardownError9.69test_projects.py
ContextSuite context=TestProjectSuspendActivate>:teardownError96.37test_projects.py
test_02_list_snapshots_with_removed_data_storeError15.46test_snapshots.py
ContextSuite context=TestDeployVmWithAffinityGroup>:teardownError159.52test_affinity_groups_projects.py
test_UpdateConfigParamWithScopeError0.65test_global_settings.py
test_02_create_template_with_checksum_sha1Error5.20test_templates.py
test_03_create_template_with_checksum_sha256Error5.19test_templates.py
test_04_create_template_with_checksum_md5Error5.19test_templates.py
test_dedicatePublicIpRangeError0.04test_public_ip_range.py
test_create_pvlan_networkError0.04test_pvlan.py
test_03_user_role_dont_see_annotationsFailure3.30test_host_annotations.py
test_03_RVR_Network_check_router_stateFailure145.65test_routers_network_ops.py
test_02_deploy_vm_root_resizeFailure0.11test_deploy_vm_root_resize.py
test_02_vpc_privategw_static_routesFailure225.69test_privategw_acl.py
test_03_vpc_privategw_restart_vpc_cleanupFailure208.86test_privategw_acl.py
test_04_rvpc_privategw_static_routesFailure331.24test_privategw_acl.py
runTestError0.00test_network.py
test_03_migrate_detached_volumeError82.23test_vm_life_cycle.py
test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_ACLFailure327.76test_vpc_redundant.py
test_02_redundant_VPC_default_routesFailure334.51test_vpc_redundant.py
test_03_create_redundant_VPC_1tier_2VMs_2IPs_2PF_ACL_reboot_routersFailure213.45test_vpc_redundant.py
test_04_rvpc_network_garbage_collector_nicsFailure167.69test_vpc_redundant.py
test_05_rvpc_multi_tiersFailure303.81test_vpc_redundant.py
test_05_rvpc_multi_tiersError336.26test_vpc_redundant.py
test_oobm_background_powerstate_syncFailure21.73test_outofbandmanagement.py
test_oobm_enabledisable_across_clusterzonesError31.97test_outofbandmanagement.py
test_oobm_issue_power_cycleError18.75test_outofbandmanagement.py
test_oobm_issue_power_offError19.73test_outofbandmanagement.py
test_oobm_issue_power_onError18.75test_outofbandmanagement.py
test_oobm_issue_power_resetError18.73test_outofbandmanagement.py
test_oobm_issue_power_softError19.76test_outofbandmanagement.py
test_oobm_issue_power_statusError19.74test_outofbandmanagement.py
test_oobm_multiple_mgmt_server_ownershipFailure27.88test_outofbandmanagement.py
test_oobm_zchange_passwordError7.39test_outofbandmanagement.py
test_createPortablePublicIPAcquireError0.03test_portable_publicip.py
test_createPortablePublicIPRangeError0.03test_portable_publicip.py
test_02_cancel_host_maintenace_with_migration_jobsFailure218.07test_host_maintenance.py

@shwstppr

Copy link
Copy Markdown
Contributor

@vishesh92 similar failures in VMware test results. Anything related?

@vishesh92

Copy link
Copy Markdown
MemberAuthor

@vishesh92 similar failures in VMware test results. Anything related?

No. It doesn't have anything related to my changes.

@vishesh92

Copy link
Copy Markdown
MemberAuthor

@shwstppr I checked a few failures and most of them seem related to the environment itself or some error while cleaning up resources.

@vishesh92

Copy link
Copy Markdown
MemberAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@vishesh92 a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@weizhouapache

Copy link
Copy Markdown
Member

@vishesh92 similar failures in VMware test results. Anything related?

No. It doesn't have anything related to my changes.

Considering the current smoke tests are mostly very stable (based on the results of health check PRs), can we revisit this after 4.19 release ?
@shwstppr@vishesh92

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8076

@vishesh92

Copy link
Copy Markdown
MemberAuthor

@blueorangutan test matrix

@blueorangutan

Copy link
Copy Markdown

@vishesh92 a [SL] Trillian-Jenkins matrix job (centos7 mgmt + xenserver71, rocky8 mgmt + vmware67u3, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests

@vishesh92

vishesh92 commented Dec 18, 2023

Copy link
Copy Markdown
MemberAuthor

@vishesh92 similar failures in VMware test results. Anything related?

No. It doesn't have anything related to my changes.

Considering the current smoke tests are mostly very stable (based on the results of health check PRs), can we revisit this after 4.19 release ? @shwstppr@vishesh92

@weizhouapache Just rebuilt the packages again. Last time there was some issues while packaging. Let's wait for the results of the latest test run.

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-8619)
Environment: xenserver-71 (x2), Advanced Networking with Mgmt server 7
Total time taken: 40527 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8281-t8619-xenserver-71.zip
Smoke tests completed. 120 look OK, 8 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_DeployVmAntiAffinityGroup_in_projectError101.04test_affinity_groups_projects.py
test_05_list_volumes_isrecursiveFailure0.03test_list_volumes.py
test_07_list_volumes_listallFailure0.02test_list_volumes.py
test_01_add_primary_storage_disabled_hostError42.16test_primary_storage.py
test_01_non_strict_host_anti_affinityFailure132.10test_nonstrict_affinity_group.py
test_02_non_strict_host_affinityError92.42test_nonstrict_affinity_group.py
test_03_deploy_and_scale_kubernetes_clusterFailure35.78test_kubernetes_clusters.py
test_07_deploy_kubernetes_ha_clusterFailure50.07test_kubernetes_clusters.py
test_08_upgrade_kubernetes_ha_clusterFailure0.04test_kubernetes_clusters.py
test_09_delete_kubernetes_ha_clusterFailure0.04test_kubernetes_clusters.py
test_10_vpc_tier_kubernetes_clusterFailure57.89test_kubernetes_clusters.py
test_10_vpc_tier_kubernetes_clusterError57.90test_kubernetes_clusters.py
test_11_test_unmanaged_cluster_lifecycleError1.21test_kubernetes_clusters.py
ContextSuite context=TestKubernetesCluster>:teardownError43.22test_kubernetes_clusters.py
test_01_sys_vm_startFailure0.07test_secondary_storage.py
test_01_deploy_vm_on_specific_hostError0.07test_vm_deployment_planner.py
test_04_deploy_vm_on_host_override_pod_and_clusterError0.10test_vm_deployment_planner.py
test_08_migrate_vmError0.06test_vm_life_cycle.py

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-8621)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 48738 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8281-t8621-kvm-centos7.zip
Smoke tests completed. 126 look OK, 2 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_05_list_volumes_isrecursiveFailure0.04test_list_volumes.py
test_07_list_volumes_listallFailure0.03test_list_volumes.py
test_08_migrate_vmError0.07test_vm_life_cycle.py

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-8620)
Environment: vmware-67u3 (x2), Advanced Networking with Mgmt server r8
Total time taken: 55870 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8281-t8620-vmware-67u3.zip
Smoke tests completed. 124 look OK, 4 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_DeployVmAntiAffinityGroup_in_projectError103.94test_affinity_groups_projects.py
test_01_browser_migrate_templateFailure5.36test_image_store_object_migration.py
test_08_upgrade_kubernetes_ha_clusterFailure747.14test_kubernetes_clusters.py
test_02_trigger_shutdownFailure336.79test_safe_shutdown.py

@weizhouapache

Copy link
Copy Markdown
Member

smoke tests look ok. the failures might be caused by the busy trillian envs.

@weizhouapache

Copy link
Copy Markdown
Member

@blueorangutan LLtest matrix

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a [LL] Trillian-Jenkins matrix job (centos7 mgmt + xenserver71, rocky8 mgmt + vmware67u3, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

[LL]Trillian test result (tid-6901)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 40484 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8281-t6901-kvm-centos7.zip
Smoke tests completed. 125 look OK, 3 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_05_list_volumes_isrecursiveFailure0.03test_list_volumes.py
test_07_list_volumes_listallFailure0.02test_list_volumes.py
test_01_invalid_upgrade_kubernetes_clusterFailure0.01test_kubernetes_clusters.py
test_02_upgrade_kubernetes_clusterFailure0.00test_kubernetes_clusters.py
test_03_deploy_and_scale_kubernetes_clusterFailure0.00test_kubernetes_clusters.py
test_04_autoscale_kubernetes_clusterFailure0.00test_kubernetes_clusters.py
test_05_basic_lifecycle_kubernetes_clusterFailure0.01test_kubernetes_clusters.py
test_06_delete_kubernetes_clusterFailure0.00test_kubernetes_clusters.py
test_07_deploy_kubernetes_ha_clusterFailure0.00test_kubernetes_clusters.py
test_08_upgrade_kubernetes_ha_clusterFailure0.00test_kubernetes_clusters.py
test_09_delete_kubernetes_ha_clusterFailure0.00test_kubernetes_clusters.py
test_10_vpc_tier_kubernetes_clusterFailure0.00test_kubernetes_clusters.py
test_11_test_unmanaged_cluster_lifecycleError0.00test_kubernetes_clusters.py
test_08_migrate_vmError0.04test_vm_life_cycle.py

@blueorangutan

Copy link
Copy Markdown

[LL]Trillian test result (tid-6900)
Environment: vmware-67u3 (x2), Advanced Networking with Mgmt server r8
Total time taken: 45993 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8281-t6900-vmware-67u3.zip
Smoke tests completed. 125 look OK, 3 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_DeployVmAntiAffinityGroup_in_projectError86.78test_affinity_groups_projects.py
test_01_browser_migrate_templateFailure5.25test_image_store_object_migration.py
test_01_invalid_upgrade_kubernetes_clusterFailure0.01test_kubernetes_clusters.py
test_02_upgrade_kubernetes_clusterFailure0.00test_kubernetes_clusters.py
test_03_deploy_and_scale_kubernetes_clusterFailure0.00test_kubernetes_clusters.py
test_04_autoscale_kubernetes_clusterFailure0.00test_kubernetes_clusters.py
test_05_basic_lifecycle_kubernetes_clusterFailure0.01test_kubernetes_clusters.py
test_06_delete_kubernetes_clusterFailure0.00test_kubernetes_clusters.py
test_07_deploy_kubernetes_ha_clusterFailure0.00test_kubernetes_clusters.py
test_08_upgrade_kubernetes_ha_clusterFailure0.00test_kubernetes_clusters.py
test_09_delete_kubernetes_ha_clusterFailure0.00test_kubernetes_clusters.py
test_10_vpc_tier_kubernetes_clusterFailure0.00test_kubernetes_clusters.py
test_11_test_unmanaged_cluster_lifecycleError0.00test_kubernetes_clusters.py

@shwstppr
shwstppr merged commit 1411da1 into apache:mainDec 20, 2023
@shwstppr
shwstppr deleted the e2e-test-resource-listing branch December 20, 2023 06:25
@shwstpprshwstppr mentioned this pull request Dec 21, 2023
13 tasks
@shwstppr

Copy link
Copy Markdown
Contributor

Based on a discussion with contributors involved in #8392, I'm reverting this for now. We will revisit e2e tests later

shwstppr added a commit that referenced this pull request Dec 21, 2023
@shwstppr
shwstppr restored the e2e-test-resource-listing branch December 21, 2023 12:10
shwstppr added a commit that referenced this pull request Dec 21, 2023
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Dec 27, 2023
This PR adds e2e tests for listing resources
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Dec 27, 2023
@vishesh92vishesh92 mentioned this pull request Dec 28, 2023
13 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@vishesh92@DaanHoogland@blueorangutan@yadvr@weizhouapache@shwstppr