hashicorp / pandora

A suite of single-purpose tools enabling automation for Terraform/Azure
Mozilla Public License 2.0
70 stars 50 forks source link

Chaos Studio Target ListComplete API throws error unsupported protocol scheme #4535

Open neil-yechenwei opened 2 weeks ago

neil-yechenwei commented 2 weeks ago

All test cases about Chaos Studio are failed on Teamcity. After I investigated, I found that ListComplete API generated by Pandora throws error unsupported protocol scheme. I also tried List azure rest api and it works fine. This issue happens since 2024-07-01. I assume it's a regression issue on Pandora. Could you take a look at this issue? Thanks.

API version: 2023-11-01

Request payload:

GET https://management.azure.com/subscriptions/xx-xx-xx-xx/providers/Microsoft.Chaos/locations/westeurope/targetTypes

Error Message:

Error: retrieving list of chaos target types: loading results: Get "": unsupported protocol scheme ""

          with azurerm_chaos_studio_target.test,
          on terraform_plugin_test.tf line 43, in resource "azurerm_chaos_studio_target" "test":
          43: resource "azurerm_chaos_studio_target" "test" {

        retrieving list of chaos target types: loading results: Get "": unsupported
        protocol scheme ""

API response returned by ListComplete API:

{
  "value": [
    {
      "type": "Microsoft.Chaos/locations/targetTypes",
      "id": "/subscriptions/xx-xx-xx-xx/providers/Microsoft.Chaos/locations/westeurope/targetTypes/Microsoft-Agent",
      "name": "Microsoft-Agent",
      "location": "westeurope",
      "properties": {
        "displayName": "",
        "description": "",
        "propertiesSchema": "https://xxxxx/targetTypes/Microsoft-Agent/propertiesSchema.json",
        "resourceTypes": [
          "Microsoft.Compute/virtualMachines",
          "Microsoft.Compute/virtualMachineScaleSets"
        ]
      },
      "systemData": {
        "createdAt": "2024-11-01T18:51:36.8531149+00:00",
        "lastModifiedAt": "2024-11-01T18:51:36.8531149+00:00",
        "createdByType": "Application"
      }
    },
    {
      "type": "Microsoft.Chaos/locations/targetTypes",
      "id": "/subscriptions/xx-xx-xx-xx/providers/Microsoft.Chaos/locations/westeurope/targetTypes/Microsoft-AppService",
      "name": "Microsoft-AppService",
      "location": "westeurope",
      "properties": {
        "displayName": "",
        "description": "",
        "propertiesSchema": "https://xxxxx/targetTypes/Microsoft-AppService/propertiesSchema.json",
        "resourceTypes": [
          "Microsoft.Web/sites"
        ]
      },
      "systemData": {
        "createdAt": "2024-11-01T18:51:36.7926743+00:00",
        "lastModifiedAt": "2024-11-01T18:51:36.7926743+00:00",
        "createdByType": "Application"
      }
    },
    {
      "type": "Microsoft.Chaos/locations/targetTypes",
      "id": "/subscriptions/xx-xx-xx-xx/providers/Microsoft.Chaos/locations/westeurope/targetTypes/Microsoft-AutoscaleSettings",
      "name": "Microsoft-AutoscaleSettings",
      "location": "westeurope",
      "properties": {
        "displayName": "",
        "description": "",
        "propertiesSchema": "https://xxxxx/targetTypes/Microsoft-AutoscaleSettings/propertiesSchema.json",
        "resourceTypes": [
          "Microsoft.Insights/autoscalesettings"
        ]
      },
      "systemData": {
        "createdAt": "2024-11-01T18:51:36.7731771+00:00",
        "lastModifiedAt": "2024-11-01T18:51:36.7731771+00:00",
        "createdByType": "Application"
      }
    },
    {
      "type": "Microsoft.Chaos/locations/targetTypes",
      "id": "/subscriptions/xx-xx-xx-xx/providers/Microsoft.Chaos/locations/westeurope/targetTypes/Microsoft-AzureClusteredCacheForRedis",
      "name": "Microsoft-AzureClusteredCacheForRedis",
      "location": "westeurope",
      "properties": {
        "displayName": "",
        "description": "",
        "propertiesSchema": "https://xxxxx/targetTypes/Microsoft-AzureClusteredCacheForRedis/propertiesSchema.json",
        "resourceTypes": [
          "Microsoft.Cache/Redis"
        ]
      },
      "systemData": {
        "createdAt": "2024-11-01T18:51:36.8712967+00:00",
        "lastModifiedAt": "2024-11-01T18:51:36.8712967+00:00",
        "createdByType": "Application"
      }
    },
    {
      "type": "Microsoft.Chaos/locations/targetTypes",
      "id": "/subscriptions/xx-xx-xx-xx/providers/Microsoft.Chaos/locations/westeurope/targetTypes/Microsoft-AzureKubernetesServiceChaosMesh",
      "name": "Microsoft-AzureKubernetesServiceChaosMesh",
      "location": "westeurope",
      "properties": {
        "displayName": "",
        "description": "",
        "propertiesSchema": "https://xxxxx/targetTypes/Microsoft-AzureKubernetesServiceChaosMesh/propertiesSchema.json",
        "resourceTypes": [
          "Microsoft.ContainerService/managedClusters"
        ]
      },
      "systemData": {
        "createdAt": "2024-11-01T18:51:36.817922+00:00",
        "lastModifiedAt": "2024-11-01T18:51:36.817922+00:00",
        "createdByType": "Application"
      }
    },
    {
      "type": "Microsoft.Chaos/locations/targetTypes",
      "id": "/subscriptions/xx-xx-xx-xx/providers/Microsoft.Chaos/locations/westeurope/targetTypes/Microsoft-AzureLoadTest",
      "name": "Microsoft-AzureLoadTest",
      "location": "westeurope",
      "properties": {
        "displayName": "",
        "description": "",
        "propertiesSchema": "https://xxxxx/targetTypes/Microsoft-AzureLoadTest/propertiesSchema.json",
        "resourceTypes": [
          "Microsoft.LoadTestService/loadtests"
        ]
      },
      "systemData": {
        "createdAt": "2024-11-01T18:51:36.8264836+00:00",
        "lastModifiedAt": "2024-11-01T18:51:36.8264836+00:00",
        "createdByType": "Application"
      }
    },
    {
      "type": "Microsoft.Chaos/locations/targetTypes",
      "id": "/subscriptions/xx-xx-xx-xx/providers/Microsoft.Chaos/locations/westeurope/targetTypes/Microsoft-CosmosDB",
      "name": "Microsoft-CosmosDB",
      "location": "westeurope",
      "properties": {
        "displayName": "",
        "description": "",
        "propertiesSchema": "https://xxxxx/targetTypes/Microsoft-CosmosDB/propertiesSchema.json",
        "resourceTypes": [
          "Microsoft.DocumentDB/databaseAccounts"
        ]
      },
      "systemData": {
        "createdAt": "2024-11-01T18:51:36.7005546+00:00",
        "lastModifiedAt": "2024-11-01T18:51:36.7005546+00:00",
        "createdByType": "Application"
      }
    },
    {
      "type": "Microsoft.Chaos/locations/targetTypes",
      "id": "/subscriptions/xx-xx-xx-xx/providers/Microsoft.Chaos/locations/westeurope/targetTypes/Microsoft-EventHub",
      "name": "Microsoft-EventHub",
      "location": "westeurope",
      "properties": {
        "displayName": "",
        "description": "",
        "propertiesSchema": "https://xxxxx/targetTypes/Microsoft-EventHub/propertiesSchema.json",
        "resourceTypes": [
          "Microsoft.EventHub/namespaces"
        ]
      },
      "systemData": {
        "createdAt": "2024-11-01T18:51:36.7266918+00:00",
        "lastModifiedAt": "2024-11-01T18:51:36.7266918+00:00",
        "createdByType": "Application"
      }
    },
    {
      "type": "Microsoft.Chaos/locations/targetTypes",
      "id": "/subscriptions/xx-xx-xx-xx/providers/Microsoft.Chaos/locations/westeurope/targetTypes/Microsoft-KeyVault",
      "name": "Microsoft-KeyVault",
      "location": "westeurope",
      "properties": {
        "displayName": "",
        "description": "",
        "propertiesSchema": "https://xxxxx/targetTypes/Microsoft-KeyVault/propertiesSchema.json",
        "resourceTypes": [
          "Microsoft.KeyVault/vaults"
        ]
      },
      "systemData": {
        "createdAt": "2024-11-01T18:51:36.756187+00:00",
        "lastModifiedAt": "2024-11-01T18:51:36.756187+00:00",
        "createdByType": "Application"
      }
    },
    {
      "type": "Microsoft.Chaos/locations/targetTypes",
      "id": "/subscriptions/xx-xx-xx-xx/providers/Microsoft.Chaos/locations/westeurope/targetTypes/Microsoft-NetworkSecurityGroup",
      "name": "Microsoft-NetworkSecurityGroup",
      "location": "westeurope",
      "properties": {
        "displayName": "",
        "description": "",
        "propertiesSchema": "https://xxxxx/targetTypes/Microsoft-NetworkSecurityGroup/propertiesSchema.json",
        "resourceTypes": [
          "Microsoft.Network/NetworkSecurityGroups"
        ]
      },
      "systemData": {
        "createdAt": "2024-11-01T18:51:36.8612003+00:00",
        "lastModifiedAt": "2024-11-01T18:51:36.8612003+00:00",
        "createdByType": "Application"
      }
    },
    {
      "type": "Microsoft.Chaos/locations/targetTypes",
      "id": "/subscriptions/xx-xx-xx-xx/providers/Microsoft.Chaos/locations/westeurope/targetTypes/Microsoft-ServiceBus",
      "name": "Microsoft-ServiceBus",
      "location": "westeurope",
      "properties": {
        "displayName": "",
        "description": "",
        "propertiesSchema": "https://xxxxx/targetTypes/Microsoft-ServiceBus/propertiesSchema.json",
        "resourceTypes": [
          "Microsoft.ServiceBus/namespaces"
        ]
      },
      "systemData": {
        "createdAt": "2024-11-01T18:51:33.9886199+00:00",
        "lastModifiedAt": "2024-11-01T18:51:33.9886199+00:00",
        "createdByType": "Application"
      }
    },
    {
      "type": "Microsoft.Chaos/locations/targetTypes",
      "id": "/subscriptions/xx-xx-xx-xx/providers/Microsoft.Chaos/locations/westeurope/targetTypes/Microsoft-ServiceFabricManagedCluster",
      "name": "Microsoft-ServiceFabricManagedCluster",
      "location": "westeurope",
      "properties": {
        "displayName": "",
        "description": "",
        "propertiesSchema": "https://xxxxx/targetTypes/Microsoft-ServiceFabricManagedCluster/propertiesSchema.json",
        "resourceTypes": [
          "Microsoft.ServiceFabric/managedclusters"
        ]
      },
      "systemData": {
        "createdAt": "2024-11-01T18:51:36.782217+00:00",
        "lastModifiedAt": "2024-11-01T18:51:36.782217+00:00",
        "createdByType": "Application"
      }
    },
    {
      "type": "Microsoft.Chaos/locations/targetTypes",
      "id": "/subscriptions/xx-xx-xx-xx/providers/Microsoft.Chaos/locations/westeurope/targetTypes/Microsoft-StorageAccount",
      "name": "Microsoft-StorageAccount",
      "location": "westeurope",
      "properties": {
        "displayName": "",
        "description": "",
        "propertiesSchema": "https://xxxxx/targetTypes/Microsoft-StorageAccount/propertiesSchema.json",
        "resourceTypes": [
          "Microsoft.Storage/storageAccounts"
        ]
      },
      "systemData": {
        "createdAt": "2024-11-01T18:51:36.8097434+00:00",
        "lastModifiedAt": "2024-11-01T18:51:36.8097434+00:00",
        "createdByType": "Application"
      }
    },
    {
      "type": "Microsoft.Chaos/locations/targetTypes",
      "id": "/subscriptions/xx-xx-xx-xx/providers/Microsoft.Chaos/locations/westeurope/targetTypes/Microsoft-VirtualMachine",
      "name": "Microsoft-VirtualMachine",
      "location": "westeurope",
      "properties": {
        "displayName": "",
        "description": "",
        "propertiesSchema": "https://xxxxx/targetTypes/Microsoft-VirtualMachine/propertiesSchema.json",
        "resourceTypes": [
          "Microsoft.Compute/virtualMachines"
        ]
      },
      "systemData": {
        "createdAt": "2024-11-01T18:51:36.7450731+00:00",
        "lastModifiedAt": "2024-11-01T18:51:36.7450731+00:00",
        "createdByType": "Application"
      }
    },
    {
      "type": "Microsoft.Chaos/locations/targetTypes",
      "id": "/subscriptions/xx-xx-xx-xx/providers/Microsoft.Chaos/locations/westeurope/targetTypes/Microsoft-VirtualMachineScaleSet",
      "name": "Microsoft-VirtualMachineScaleSet",
      "location": "westeurope",
      "properties": {
        "displayName": "",
        "description": "",
        "propertiesSchema": "https://xxxxx/targetTypes/Microsoft-VirtualMachineScaleSet/propertiesSchema.json",
        "resourceTypes": [
          "Microsoft.Compute/virtualMachineScaleSets"
        ]
      },
      "systemData": {
        "createdAt": "2024-11-01T18:51:36.8016842+00:00",
        "lastModifiedAt": "2024-11-01T18:51:36.8016842+00:00",
        "createdByType": "Application"
      }
    },
    {
      "type": "Microsoft.Chaos/locations/targetTypes",
      "id": "/subscriptions/xx-xx-xx-xx/providers/Microsoft.Chaos/locations/westeurope/targetTypes/Microsoft-domainName",
      "name": "Microsoft-domainName",
      "location": "westeurope",
      "properties": {
        "displayName": "",
        "description": "",
        "propertiesSchema": "https://xxxxx/targetTypes/Microsoft-domainName/propertiesSchema.json",
        "resourceTypes": [
          "Microsoft.ClassicCompute/domainNames"
        ]
      },
      "systemData": {
        "createdAt": "2024-11-01T18:51:36.764877+00:00",
        "lastModifiedAt": "2024-11-01T18:51:36.764877+00:00",
        "createdByType": "Application"
      }
    }
  ],
  "nextLink": ""
}