Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Child resources without parents #142

Open
jccisco opened this issue Aug 13, 2019 · 0 comments
Open

Child resources without parents #142

jccisco opened this issue Aug 13, 2019 · 0 comments
Labels

Comments

@jccisco
Copy link
Contributor

jccisco commented Aug 13, 2019

Describe the bug

Given a swagger doc defining a non-compliant parent resource and a compliant sub-resource
When CreateSchemaProviderFromServiceConfiguration is called
Then the resulting provider will have the child resource but not the parent

Scenario: Not compliant parent (2 different URIs for post and put) and a child resource
Given a parent with /v1/cdns/{id} for PUT and /cdn/cdns for POST
When the provider is executed
Then 1 CHILD resource is created --> parent NOT compliant and NOT created but the child IS created and not attached to a GHOST parent
OUTCOME : NOT OK! (BUG)

To Reproduce

Run Test_child_resource_without_parent on https://github.com/dikhan/terraform-provider-openapi/tree/bug/child-resource-with-no-parent

Expected behaviour

The provider should not give access to the child resource if the parent is not terraformable.

@jccisco jccisco added the bug label Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant