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/post opeartion with no inputs #175

Merged
merged 15 commits into from
Oct 29, 2019

Conversation

dikhan
Copy link
Owner

@dikhan dikhan commented Oct 29, 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: #171

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)

dikhan and others added 12 commits October 28, 2019 14:37
…eation) is not considered terraform compatible
…ing post body operation

- test is currently failing, need to get to green state
- updated convey statements to match actual method being called
…on (bodyParameterExists)

- use the first body parameter returned - no longer check for multiple body params
- remove test case checking for multiple body params
- refactor bodyParameterExists to no longer return error
- refactor tests with new bodyParameterExists signature
- add tests for validateResourceSchemaDefWithOptions
- only testing happy path
- moved other test cases to TestValidateResourceSchemaDefWithOptions
…t expect any input) logic into validateRootPath
- added delete operation as the int test fw requires the delete operation
to be implemented...
- fixed type format issue int vs string
@dikhan dikhan added this to Backlog in API Terraform Provider (OpenAPI 2.0) via automation Oct 29, 2019
@codecov
Copy link

codecov bot commented Oct 29, 2019

Codecov Report

Merging #175 into master will increase coverage by 0.06%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #175      +/-   ##
==========================================
+ Coverage   88.84%   88.91%   +0.06%     
==========================================
  Files          51       51              
  Lines        3047     3066      +19     
==========================================
+ Hits         2707     2726      +19     
  Misses        219      219              
  Partials      121      121
Impacted Files Coverage Δ
openapi/openapi_v2_spec_analyser.go 93.1% <100%> (+0.54%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9dcdbcc...bbe1408. Read the comment docs.

API Terraform Provider (OpenAPI 2.0) automation moved this from Backlog to In progress Oct 29, 2019
Copy link
Collaborator

@lillchan lillchan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@dikhan dikhan merged commit f19dc8c into master Oct 29, 2019
API Terraform Provider (OpenAPI 2.0) automation moved this from In progress to Done Oct 29, 2019
@dikhan dikhan deleted the feature/post-opeartion-with-no-inputs branch October 29, 2019 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Support resources where POST operation does not expect any inputs
2 participants