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

Feature/data source instance #155

Merged
merged 12 commits into from
Oct 2, 2019
Merged

Feature/data source instance #155

merged 12 commits into from
Oct 2, 2019

Conversation

FraDiBen
Copy link
Contributor

@FraDiBen FraDiBen commented Oct 2, 2019

Proposed changes

Please add as many details as possible about the change here. Does this Pull Request resolve any open issue? If so, please make sure to link to that issue:

Fixes: #154

Type of change

What type of change does your code introduce to the provider? Please put an x (w/o heading/trailing white spaces)
in the boxes that apply:

  • Bug-fix (change that fixes current functionality)
  • New feature (change that adds new functionality)

Checklist

Please put an x (w/o heading/trailing white spaces) in the boxes that apply:

  • I have read and followed the CONTRIBUTING guidelines
  • I have made sure code compiles correctly
  • I have run 'make test' locally from the terraform_provider_api folder and no errors were found
  • I have added tests that prove my fix is effective or that my feature works
  • I have added/updated necessary documentation (if appropriate)

- added corresponding test coverage
- createTerraformProviderDataSourceInstanceMap only registers as data source
instances the openAPIResources that are terraform resource compatible
…and data source instance

- since createTerraformProviderResourceMap was already looping through the
terraform compatible resources and considering the data source instance is
only registered from already deemed terraform compatible resources, reusing
the logic and returning both maps in one go
- this prevents errors where when converting the property to computed some
swagger properties had a default value which terraform does not allow.
@FraDiBen
Copy link
Contributor Author

FraDiBen commented Oct 2, 2019

till now it looks good to me

@dikhan dikhan merged commit e4dec0c into master Oct 2, 2019
@dikhan dikhan deleted the feature/data-source-instance branch October 31, 2019 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for data source instance
2 participants