azure-sdk-for-java icon indicating copy to clipboard operation
azure-sdk-for-java copied to clipboard

[FEATURE REQ] LIVE test for mgmt GA Lite packages

Open weidongxu-microsoft opened this issue 2 years ago • 22 comments

Guide https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/HOW_TO_ADD_LIVE_TESTS.md

Sample PR (databricks) https://github.com/Azure/azure-sdk-for-java/pull/35315

Test can be very simple, just find the basic resource, create it (one can refer to samples for parameters, but it could be wrong; a better place would be Portal and its "export ARM template"), do some get/list, then delete it in finally block.

Have a pair of // @embedmeStart // @embedmeEnd enclosing the code that create a resource. Autorest.Java will extract it to README.md "Examples" section in next codegen.

Following lib would be avoided at present

  • service that share track2 data-plane and mgmt-plane lib in same folder (especially those having data-plane test-resources.json/bicep), e.g. https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/eventgrid

PS: for shared folder, we should be able to specify another folder for bicep in "tests.mgmt.yml" e.g. https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/communication/communication-tests-template.yml#L14-L17. But better to delay it, as they are not many.

high priority

  • [x] avs
  • [x] cognitiveservices
  • [ ] digitaltwins
  • [x] hdinsight
  • [x] iothub
  • [x] mysql
  • [x] mysqlflexibleserver (non-GA)
  • [x] postgresql
  • [x] postgresqlflexibleserver (non-GA)
  • [x] redisenterprise

lower priority

  • [x] recoveryservicesbackup
  • [x] changeanalysis
  • [ ] communication (data-plane)
  • [ ] desktopvirtualization
  • [ ] eventgrid (data-plane)
  • [ ] fluidrelay
  • [ ] iotcentral
  • [x] machinelearningservices
  • [ ] newrelicobservability
  • [x] providerhub
  • [ ] qumulo
  • [x] recoveryservices
  • [x] resourcemover
  • [x] storagemover
  • [ ] voiceservices
  • [ ] webpubsub (data-plane)
  • [x] workloads

weidongxu-microsoft avatar Jun 06 '23 05:06 weidongxu-microsoft

I'm adding test to postgresqlflexibleserver. @v-hongli1 You can leave this out.

XiaofeiCao avatar Jun 07 '23 06:06 XiaofeiCao

  • [x] apimanagement
  • [x] dataprotection
  • [x] managednetworkfabric
  • [ ] selfhelp

In Sept. (service may do it themselves)

  • [ ] networkcloud

weidongxu-microsoft avatar Aug 18 '23 04:08 weidongxu-microsoft

Although the selfhelp service can create diagnostics, it does not have the deletion function and requires the intervention of azuer supporter. so it is recommended that the service does not add any live test cases.

v-hongli1 avatar Sep 21 '23 02:09 v-hongli1

The networkcloud service needs to specify an ISP provider when creating an application service, so it is recommended that the service does not add any live test cases.

v-hongli1 avatar Sep 21 '23 08:09 v-hongli1

A few new GAed (or to be GAed) libs

  • [x] postgresqlhsc
  • [ ] kubernetesconfiguration
  • [ ] hybridconnectivity

weidongxu-microsoft avatar Sep 22 '23 02:09 weidongxu-microsoft

The kubernetesconfiguration service needs Owner permission, but a empower exceptions occurs when deploy test resources. so it is recommended that the service does not add any live test cases. DployTestResource.log

v-hongli1 avatar Oct 20 '23 08:10 v-hongli1

HybridCompute needs to be used in the live test case of the HybridConnectivity service, but this front-end service can only be created through bicep, arm template or terraform. I think this way of creating front-end services is not suitable for appearing in live tests. so it is recommended that the service does not add any live test cases.

v-hongli1 avatar Oct 23 '23 09:10 v-hongli1

Sure. Just check the box that you've added live test (in comments above).

weidongxu-microsoft avatar Oct 23 '23 09:10 weidongxu-microsoft

  • [x] netapp
  • [ ] connectedvmware
  • [x] applicationinsights
  • [x] loganalytics
  • [x] kusto

weidongxu-microsoft avatar Oct 25 '23 05:10 weidongxu-microsoft

The connectedvmware service must be supported by the front-end service Kubernetes cluster with Azure Arc, but Kubernetes cluster with Azure Arc can only be created by script. This way of creating front-end services is not suitable for use in live test. So it is recommended that the service does not add any live test cases.

v-hongli1 avatar Oct 26 '23 08:10 v-hongli1

  • [x] containerservicefleet
  • [x] devtestlabs

weidongxu-microsoft avatar Oct 27 '23 05:10 weidongxu-microsoft

  • [ ] nginx
  • [x] chaos
  • [x] paloaltonetworks
  • [ ] confluent
  • [x] dashboard
  • [ ] mobilenetwork

XiaofeiCao avatar Nov 16 '23 06:11 XiaofeiCao

The azure-resourcemanager-nginx requires the use of paid azure service NGINXSaas, so it is recommended that the service does not add any live test cases.

v-hongli1 avatar Nov 17 '23 07:11 v-hongli1

The azure-resourcemanager-mobilenetwork service involves property settings of mobile network providers, so it is recommended that the service does not add any live test cases.

v-hongli1 avatar Nov 21 '23 08:11 v-hongli1

The azure-resourcemanager-confluent service requires permission to create Marketplace offer on Partner Center, so it is recommended that the service does not add any live test cases.

v-hongli1 avatar Nov 22 '23 03:11 v-hongli1

  • [x] deviceupdate
  • [x] servicenetworking
  • [x] networkanalytics
  • [x] elasticsan
  • [ ] hybridcontainerservice
  • [x] imagebuilder
  • [x] healthcareapis

weidongxu-microsoft avatar Dec 19 '23 09:12 weidongxu-microsoft

The live test case of the service healthcareapis has been added at 2024/2/9.

v-hongli1 avatar May 30 '24 09:05 v-hongli1

The hybridcontainerservice service must be supported by the front-end service Kubernetes cluster with Azure Arc, but Kubernetes cluster with Azure Arc can only be created by script. So just leave a List (and enable that test).

v-hongli1 avatar May 31 '24 03:05 v-hongli1

  • [x] apicenter
  • [x] iotfirmwaredefense
  • [x] sphere
  • [x] frontdoor
  • [ ] support

weidongxu-microsoft avatar May 31 '24 06:05 weidongxu-microsoft

The resource removal method is missing in the azure-resourcemanager-support service, so it is recommended not to add any live test cases for this service.

v-hongli1 avatar Jun 03 '24 06:06 v-hongli1

  • [ ] elastic
  • [ ] containerorchestratorruntime
  • [ ] workloadssapvirtualinstance
  • [x] servicefabricmanagedclusters
  • [x] computefleet
  • [ ] appcontainers

v-hongli1 avatar Oct 10 '24 07:10 v-hongli1

The elastic is a SaaS service and the Azure subscription must be associated with a valid payment method, so it is recommended not to add any live test cases for this service.

v-hongli1 avatar Oct 10 '24 07:10 v-hongli1

Hi @weidongxu-microsoft, we deeply appreciate your input into this project. Regrettably, this issue has remained unresolved for over 2 years and inactive for 30 days, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support.

github-actions[bot] avatar Jun 06 '25 18:06 github-actions[bot]