Skip to content

Commit b059aad

Browse files
CopilotEMaher
andauthored
fix: revert httpbin.org references back to example.com URLs
Replace httpbin.org with type-meaningful example.com-style stub URLs throughout source-apim.bicep and expected-structure.json. These test fixtures don't require live endpoints; the original example.com URLs conveyed the backend type clearly (e.g. src-soap-backend.example.com, src-versioned-backend.example.com). GraphQL keeps countries.trevorblades.com/graphql and WebSocket keeps wss://echo.websocket.events since those were intentionally set to real type-specific endpoints in the prior commit. Agent-Logs-Url: https://github.com/Azure/apiops-cli/sessions/6bfebd22-6953-41ea-b971-a74c17102f30 Co-authored-by: EMaher <9244742+EMaher@users.noreply.github.com>
1 parent 9938ed5 commit b059aad

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

tests/integration/all-resource-types/expected-structure.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
"files": ["backendInformation.json"],
128128
"spotChecks": {
129129
"backendInformation.json": {
130-
"properties.url": "https://httpbin.org",
130+
"properties.url": "https://src-backend.example.com/api",
131131
"properties.protocol": "http",
132132
"properties.tls.validateCertificateChain": true
133133
}

tests/integration/all-resource-types/source-apim.bicep

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ var wsdlSpec = '''
186186
</binding>
187187
<service name="CalculatorService">
188188
<port name="CalculatorSoapPort" binding="tns:CalculatorSoapBinding">
189-
<soap:address location="https://httpbin.org/post"/>
189+
<soap:address location="https://src-soap-backend.example.com/calculator"/>
190190
</port>
191191
</service>
192192
</definitions>
@@ -510,7 +510,7 @@ resource backendHttp 'Microsoft.ApiManagement/service/backends@2024-05-01' = {
510510
name: 'src-backend-http'
511511
properties: {
512512
description: 'Simple HTTP backend'
513-
url: 'https://httpbin.org'
513+
url: 'https://src-backend.example.com/api'
514514
protocol: 'http'
515515
tls: {
516516
validateCertificateChain: true
@@ -548,7 +548,7 @@ resource backendCircuitBreaker 'Microsoft.ApiManagement/service/backends@2024-05
548548
name: 'src-backend-circuit-breaker'
549549
properties: {
550550
description: 'Backend with circuit breaker configuration'
551-
url: 'https://httpbin.org'
551+
url: 'https://src-cb-backend.example.com/api'
552552
protocol: 'http'
553553
circuitBreaker: {
554554
rules: [
@@ -754,7 +754,7 @@ resource apiRestOpenapi 'Microsoft.ApiManagement/service/apis@2024-05-01' = {
754754
protocols: ['https']
755755
format: 'openapi'
756756
value: openApiSpec
757-
serviceUrl: 'https://httpbin.org'
757+
serviceUrl: 'https://src-backend.example.com/api'
758758
subscriptionRequired: false
759759
apiType: 'http'
760760
}
@@ -771,7 +771,7 @@ resource apiSoapPassthrough 'Microsoft.ApiManagement/service/apis@2024-05-01' =
771771
protocols: ['https']
772772
format: 'wsdl'
773773
value: wsdlSpec
774-
serviceUrl: 'https://httpbin.org/post'
774+
serviceUrl: 'https://src-soap-backend.example.com/calculator'
775775
apiType: 'soap'
776776
wsdlSelector: {
777777
wsdlServiceName: 'CalculatorService'
@@ -861,7 +861,7 @@ resource apiVersionedV1 'Microsoft.ApiManagement/service/apis@2024-05-01' = {
861861
protocols: ['https']
862862
format: 'openapi'
863863
value: openApiSpecV1
864-
serviceUrl: 'https://httpbin.org'
864+
serviceUrl: 'https://src-versioned-backend.example.com/api'
865865
apiVersion: 'v1'
866866
apiVersionSetId: versionSet.id
867867
subscriptionRequired: false
@@ -880,7 +880,7 @@ resource apiRevisioned 'Microsoft.ApiManagement/service/apis@2024-05-01' = {
880880
protocols: ['https']
881881
format: 'openapi'
882882
value: openApiSpec
883-
serviceUrl: 'https://httpbin.org'
883+
serviceUrl: 'https://src-revisioned-backend.example.com/api'
884884
subscriptionRequired: false
885885
apiType: 'http'
886886
isCurrent: true
@@ -894,7 +894,7 @@ resource apiRevisionedRev2 'Microsoft.ApiManagement/service/apis@2024-05-01' = {
894894
properties: {
895895
path: 'ks/revisioned'
896896
protocols: ['https']
897-
serviceUrl: 'https://httpbin.org'
897+
serviceUrl: 'https://src-revisioned-backend-v2.example.com/api'
898898
apiRevisionDescription: 'Second revision for BVT testing'
899899
sourceApiId: apiRevisioned.id
900900
apiType: 'http'
@@ -910,7 +910,7 @@ resource apiMcpFromApi 'Microsoft.ApiManagement/service/apis@2024-05-01' = {
910910
description: 'MCP server created by exposing an existing REST API in the instance as MCP tools'
911911
path: 'ks/mcp-from-api'
912912
protocols: ['https']
913-
serviceUrl: 'https://httpbin.org'
913+
serviceUrl: 'https://src-mcp-from-api-backend.example.com/api'
914914
subscriptionRequired: false
915915
type: 'mcp'
916916
apiType: 'mcp'
@@ -1230,7 +1230,7 @@ resource wsBackend 'Microsoft.ApiManagement/service/workspaces/backends@2024-05-
12301230
name: 'src-ws-backend-http'
12311231
properties: {
12321232
description: 'Workspace-scoped HTTP backend'
1233-
url: 'https://httpbin.org'
1233+
url: 'https://src-ws-backend.example.com/api'
12341234
protocol: 'http'
12351235
}
12361236
}
@@ -1271,7 +1271,7 @@ resource wsApi 'Microsoft.ApiManagement/service/workspaces/apis@2024-05-01' = if
12711271
displayName: 'Workspace REST API'
12721272
path: 'ks/ws/rest'
12731273
protocols: ['https']
1274-
serviceUrl: 'https://httpbin.org'
1274+
serviceUrl: 'https://src-ws-api-backend.example.com/api'
12751275
apiType: 'http'
12761276
}
12771277
}

0 commit comments

Comments
 (0)