Skip to content

Commit

Permalink
add subresource root level get operation to reproduce bug found and c…
Browse files Browse the repository at this point in the history
…onfirm fix

- the bug was manifesting when a subresource root path was being treated
as instance path and with a get operation it would be deemed compatible resulting
into the list of compatible resources containing duplicated ones
  • Loading branch information
dikhan committed Oct 31, 2019
1 parent 3a1ae9b commit a654640
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions openapi/openapi_v2_spec_analyser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2923,6 +2923,18 @@ paths:
######################
/v1/cdns/{cdn_id}/v1/firewalls:
get:
summary: List cdns firewalls
parameters:
- name: cdn_id
in: path
required: true
type: string
responses:
'200':
description: OK
schema:
$ref: '#/definitions/ContentDeliveryNetworkFirewallV1Collection'
post:
x-terraform-resource-host: 178.168.3.4
parameters:
Expand Down Expand Up @@ -2997,6 +3009,10 @@ paths:
$ref: "#/definitions/ContentDeliveryNetworkFirewallV1"
definitions:
ContentDeliveryNetworkFirewallV1Collection:
type: array
items:
$ref: '#/definitions/ContentDeliveryNetworkFirewallV1'
ContentDeliveryNetworkFirewallV1:
type: "object"
properties:
Expand Down

0 comments on commit a654640

Please sign in to comment.