cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

cleanup test resources

Open DaanHoogland opened this issue 6 years ago • 11 comments

This is to clean-up tests that create resources and do not clean-up after themselves. The idea is that the entire test-suite should be able to be run in a production environment without harming or messing up. In smoke tests running in Trillian we found the following tests to leave stuff around (the checks fixed in scope of this pr are just for simulator):

  • [X] test_accounts #3657 #4473
  • [x] test_affinity_groups_projects #4473
  • [x] test_async_job #4473
  • [ ] test_deploy_vm_iso
  • [x] test_deploy_vms_with_varied_deploymentplanners #4289
  • [ ] test_deploy_vm_with_userdata
  • [x] test_diagnostics #4289
  • [ ] test_domain_service_offerings
  • [x] test_internal_lb #4727
  • [ ] test_list_ids_parameter
  • [ ] test_loadbalance
  • [ ] test_metrics_api
  • [ ] test_multipleips_per_nic
  • [ ] test_nested_virtualization
  • [ ] test_network_acl
  • [ ] test_network
  • [ ] test_nic_adapter_type
  • [ ] test_password_server
  • [ ] test_portforwardingrules
  • [ ] test_privategw_acl
  • [x] test_projects #3657
  • [ ] test_reset_vm_on_reboot
  • [ ] test_resource_accounting
  • [ ] test_router_dhcphosts #5562
  • [ ] test_router_dns
  • [ ] test_router_dnsservice
  • [ ] test_routers_iptables_default_policy
  • [ ] test_routers_network_ops
  • [x] test_routers #4289
  • [ ] test_service_offerings
  • [ ] test_snapshots
  • [ ] test_templates
  • [ ] test_vm_deployment_planner
  • [ ] test_vpc_redundant
  • [ ] test_vpc_router_nics
  • [x] test_vpc_vpn #4289
  • [ ] test_hostha_kvm
ISSUE TYPE
  • Bug Report
  • Other: test improvements
COMPONENT NAME

CLOUDSTACK VERSION

CONFIGURATION
OS / ENVIRONMENT
SUMMARY
STEPS TO REPRODUCE

EXPECTED RESULTS

ACTUAL RESULTS

DaanHoogland avatar Nov 19 '19 14:11 DaanHoogland

@DaanHoogland is this still valid or can be closed?

rohityadavcloud avatar Aug 12 '20 09:08 rohityadavcloud

no @rhtyd , it is still very valid. It is also limited to simulator tests and should be expanded to all tests. I will expand on this the coming weeks (given 4.15 is not asking more attention)

DaanHoogland avatar Sep 18 '20 11:09 DaanHoogland

@DaanHoogland is this still valid?

nvazquez avatar Jul 27 '21 04:07 nvazquez

yes it is, there is a lot of antiquated code in the smoke tests still, as they are all fixed/passing it is low priority.

DaanHoogland avatar Jul 27 '21 14:07 DaanHoogland

also it has been touched since a year ago, so removing the 1year old label

DaanHoogland avatar Jul 27 '21 14:07 DaanHoogland

Maybe review/close or update this issue @DaanHoogland ?

rohityadavcloud avatar Aug 09 '21 09:08 rohityadavcloud

@rhtyd @nvazquez this will be open for a long time unless it's getting priority, which it won't as it concerned data and entities being left around in test environments when running smoke tests. I've updated the list and am addressing some for component tests and will address any further I encounter during other work. Maybe there should be a milestone "ongoing" or something?

DaanHoogland avatar Aug 17 '21 10:08 DaanHoogland

Thanks @DaanHoogland, I've added the 'work in-progress' tag and moved it for next milestone

nvazquez avatar Sep 07 '21 17:09 nvazquez

Hi @DaanHoogland any plans to work on this on 4.17?

nvazquez avatar Feb 05 '22 17:02 nvazquez

Maybe given time I will pick up a few files again, @nvazquez

DaanHoogland avatar Feb 05 '22 17:02 DaanHoogland

@DaanHoogland do you have any work planned for 4.17.1 or should this be moved to the next milestone?

shwstppr avatar Aug 12 '22 04:08 shwstppr

moving to the next milestone @shwstppr even if I may do some files. I will attach the PR to a feasible milestone.

DaanHoogland avatar Aug 12 '22 07:08 DaanHoogland