Skip to content

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
neil-yechenwei committed Apr 25, 2024
1 parent e09ad00 commit 9734f3f
Showing 1 changed file with 59 additions and 59 deletions.
118 changes: 59 additions & 59 deletions internal/services/network/network_watcher_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,67 +28,67 @@ func TestAccNetworkWatcher(t *testing.T) {
// which will invoke a `go test` for each test function, which effectively making them to be in parallel, even if they are intended
// to be run in sequential.
testCases := map[string]map[string]func(t *testing.T){
"basic": {
"basic": testAccNetworkWatcher_basic,
"requiresImport": testAccNetworkWatcher_requiresImport,
"complete": testAccNetworkWatcher_complete,
"update": testAccNetworkWatcher_update,
"disappears": testAccNetworkWatcher_disappears,
},
"DataSource": {
"basic": testAccDataSourceNetworkWatcher_basic,
},
//"basic": {
// "basic": testAccNetworkWatcher_basic,
// "requiresImport": testAccNetworkWatcher_requiresImport,
// "complete": testAccNetworkWatcher_complete,
// "update": testAccNetworkWatcher_update,
// "disappears": testAccNetworkWatcher_disappears,
//},
//"DataSource": {
// "basic": testAccDataSourceNetworkWatcher_basic,
//},
"ConnectionMonitor": {
"addressBasic": testAccNetworkConnectionMonitor_addressBasic,
"addressComplete": testAccNetworkConnectionMonitor_addressComplete,
"addressUpdate": testAccNetworkConnectionMonitor_addressUpdate,
"vmBasic": testAccNetworkConnectionMonitor_vmBasic,
"vmComplete": testAccNetworkConnectionMonitor_vmComplete,
"vmUpdate": testAccNetworkConnectionMonitor_vmUpdate,
"destinationUpdate": testAccNetworkConnectionMonitor_destinationUpdate,
"missingDestinationInvalid": testAccNetworkConnectionMonitor_missingDestination,
"bothDestinationsInvalid": testAccNetworkConnectionMonitor_conflictingDestinations,
"requiresImport": testAccNetworkConnectionMonitor_requiresImport,
"httpConfiguration": testAccNetworkConnectionMonitor_httpConfiguration,
"icmpConfiguration": testAccNetworkConnectionMonitor_icmpConfiguration,
"bothAddressAndVirtualMachineId": testAccNetworkConnectionMonitor_withAddressAndVirtualMachineId,
"updateEndpoint": testAccNetworkConnectionMonitor_updateEndpointIPAddressAndCoverageLevel,
"azureArcVM": testAccNetworkConnectionMonitor_azureArcVM,
},
"PacketCapture": {
"localDisk": testAccNetworkPacketCapture_localDisk,
"storageAccount": testAccNetworkPacketCapture_storageAccount,
"storageAccountAndLocalDisk": testAccNetworkPacketCapture_storageAccountAndLocalDisk,
"withFilters": testAccNetworkPacketCapture_withFilters,
"requiresImport": testAccNetworkPacketCapture_requiresImport,
},
"VMPacketCapture": {
"localDisk": testAccVirtualMachinePacketCapture_localDisk,
"storageAccount": testAccVirtualMachinePacketCapture_storageAccount,
"storageAccountAndLocalDisk": testAccVirtualMachinePacketCapture_storageAccountAndLocalDisk,
"withFilters": testAccVirtualMachinePacketCapture_withFilters,
"requiresImport": testAccVirtualMachinePacketCapture_requiresImport,
},
"VMSSPacketCapture": {
"localDisk": testAccVirtualMachineScaleSetPacketCapture_localDisk,
"storageAccount": testAccVirtualMachineScaleSetPacketCapture_storageAccount,
"storageAccountAndLocalDisk": testAccVirtualMachineScaleSetPacketCapture_storageAccountAndLocalDisk,
"withFilters": testAccVirtualMachineScaleSetPacketCapture_withFilters,
"requiresImport": testAccVirtualMachineScaleSetPacketCapture_requiresImport,
"machineScope": testAccVirtualMachineScaleSetPacketCapture_machineScope,
},
"FlowLog": {
"basic": testAccNetworkWatcherFlowLog_basic,
"requiresImport": testAccNetworkWatcherFlowLog_requiresImport,
"disabled": testAccNetworkWatcherFlowLog_disabled,
"reenabled": testAccNetworkWatcherFlowLog_reenabled,
"retentionPolicy": testAccNetworkWatcherFlowLog_retentionPolicy,
"updateStorageAccount": testAccNetworkWatcherFlowLog_updateStorageAccount,
"trafficAnalytics": testAccNetworkWatcherFlowLog_trafficAnalytics,
"version": testAccNetworkWatcherFlowLog_version,
"location": testAccNetworkWatcherFlowLog_location,
"tags": testAccNetworkWatcherFlowLog_tags,
//"addressBasic": testAccNetworkConnectionMonitor_addressBasic,
//"addressComplete": testAccNetworkConnectionMonitor_addressComplete,
//"addressUpdate": testAccNetworkConnectionMonitor_addressUpdate,
//"vmBasic": testAccNetworkConnectionMonitor_vmBasic,
//"vmComplete": testAccNetworkConnectionMonitor_vmComplete,
//"vmUpdate": testAccNetworkConnectionMonitor_vmUpdate,
//"destinationUpdate": testAccNetworkConnectionMonitor_destinationUpdate,
//"missingDestinationInvalid": testAccNetworkConnectionMonitor_missingDestination,
//"bothDestinationsInvalid": testAccNetworkConnectionMonitor_conflictingDestinations,
//"requiresImport": testAccNetworkConnectionMonitor_requiresImport,
//"httpConfiguration": testAccNetworkConnectionMonitor_httpConfiguration,
//"icmpConfiguration": testAccNetworkConnectionMonitor_icmpConfiguration,
//"bothAddressAndVirtualMachineId": testAccNetworkConnectionMonitor_withAddressAndVirtualMachineId,
//"updateEndpoint": testAccNetworkConnectionMonitor_updateEndpointIPAddressAndCoverageLevel,
"azureArcVM": testAccNetworkConnectionMonitor_azureArcVM,
},
//"PacketCapture": {
// "localDisk": testAccNetworkPacketCapture_localDisk,
// "storageAccount": testAccNetworkPacketCapture_storageAccount,
// "storageAccountAndLocalDisk": testAccNetworkPacketCapture_storageAccountAndLocalDisk,
// "withFilters": testAccNetworkPacketCapture_withFilters,
// "requiresImport": testAccNetworkPacketCapture_requiresImport,
//},
//"VMPacketCapture": {
// "localDisk": testAccVirtualMachinePacketCapture_localDisk,
// "storageAccount": testAccVirtualMachinePacketCapture_storageAccount,
// "storageAccountAndLocalDisk": testAccVirtualMachinePacketCapture_storageAccountAndLocalDisk,
// "withFilters": testAccVirtualMachinePacketCapture_withFilters,
// "requiresImport": testAccVirtualMachinePacketCapture_requiresImport,
//},
//"VMSSPacketCapture": {
// "localDisk": testAccVirtualMachineScaleSetPacketCapture_localDisk,
// "storageAccount": testAccVirtualMachineScaleSetPacketCapture_storageAccount,
// "storageAccountAndLocalDisk": testAccVirtualMachineScaleSetPacketCapture_storageAccountAndLocalDisk,
// "withFilters": testAccVirtualMachineScaleSetPacketCapture_withFilters,
// "requiresImport": testAccVirtualMachineScaleSetPacketCapture_requiresImport,
// "machineScope": testAccVirtualMachineScaleSetPacketCapture_machineScope,
//},
//"FlowLog": {
// "basic": testAccNetworkWatcherFlowLog_basic,
// "requiresImport": testAccNetworkWatcherFlowLog_requiresImport,
// "disabled": testAccNetworkWatcherFlowLog_disabled,
// "reenabled": testAccNetworkWatcherFlowLog_reenabled,
// "retentionPolicy": testAccNetworkWatcherFlowLog_retentionPolicy,
// "updateStorageAccount": testAccNetworkWatcherFlowLog_updateStorageAccount,
// "trafficAnalytics": testAccNetworkWatcherFlowLog_trafficAnalytics,
// "version": testAccNetworkWatcherFlowLog_version,
// "location": testAccNetworkWatcherFlowLog_location,
// "tags": testAccNetworkWatcherFlowLog_tags,
//},
}

for group, m := range testCases {
Expand Down

0 comments on commit 9734f3f

Please sign in to comment.