-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
add aws_appfabric_ingestion resource #37291
Conversation
Community NoteVoting for Prioritization
For Submitters
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome @davelemons 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTOR guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good code, excellent start. Couple of minor things
- Update Function
- Tests -- hard coding needs to be removed and more tests need to be added.
- change log file is required.
Thank you for your contribution! 🚀 A new usage of AWS SDK for Go V1 was detected. Please prefer AWS SDK for Go V2 for all net-new services. If this is an enhancement or bug fix to an existing AWS SDK Go V1 based resource, this comment can be safely ignored. For additional information refer to the AWS SDK for Go Versions page in the contributor guide. |
I believe I have all of the items addressed. There is no update API, so I changed it to a no-op, let me know if there is anything else I should do there. It's a pretty simple service and I'm struggling to think of other tests to add at this point and open to some suggestions/pointers of additional tests to add. Also, I'm not sure why it's seeing GO V1 usage...I should be using V2 for everything. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Code is good to go. some minor edit
- html pages -- refer to AWS documentation for list of values
- Import statements needs tidy up - refer to other examples
Looks like more CI tests are failing. In addition, I'm getting these errors when running:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution!! It's great to see framework and AWS SDK Go v2!
This probably needs a little bit more love but hopefully not too much:
- Acceptance tests passing
- Add gates to acctests if they require regions, env vars, etc.
- CI tests passing
@YakDriver your comments have been addressed, could you check in and see if anything else is required from our side? |
# Conflicts: # internal/service/appfabric/appfabric_test.go # internal/service/appfabric/exports_test.go
% AWS_DEFAULT_REGION=us-east-1 make testacc TESTARGS='-run=TestAccAppFabric_serial/Ingestion/basic' PKG=appfabric
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.2 test ./internal/service/appfabric/... -v -count 1 -parallel 20 -run=TestAccAppFabric_serial/Ingestion/basic -timeout 360m
=== RUN TestAccAppFabric_serial
=== PAUSE TestAccAppFabric_serial
=== CONT TestAccAppFabric_serial
=== RUN TestAccAppFabric_serial/Ingestion
=== RUN TestAccAppFabric_serial/Ingestion/basic
ingestion_test.go:28: Step 1/2 error: Error running apply: exit status 1
Error: creating AppFabric Ingestion
with aws_appfabric_ingestion.test,
on terraform_plugin_test.tf line 39, in resource "aws_appfabric_ingestion" "test":
39: resource "aws_appfabric_ingestion" "test" {
operation error AppFabric: CreateIngestion, https response error StatusCode:
400, RequestID: f0076af6-0e3f-4c8d-a7d9-108849755089, ValidationException:
The app authorization for the specified application and tenant was not
connected. Connect the app authorization for the application and tenant
before creating an ingestion.
--- FAIL: TestAccAppFabric_serial (7.62s)
--- FAIL: TestAccAppFabric_serial/Ingestion (7.62s)
--- FAIL: TestAccAppFabric_serial/Ingestion/basic (7.62s)
FAIL
FAIL github.com/hashicorp/terraform-provider-aws/internal/service/appfabric 11.967s
FAIL
make: *** [testacc] Error 1 We need a way to call |
@ewbankkit wee have a cli command to do it. How do we include this in the tests? any examples? |
@ewbankkit we had a huddle and the "gap" is we haven't got a resource for app_connect. what are the options here? when we tested - we used a manual way to auth make our tests pass locally. We can run a local-exec and run a cli command -- is this accepted? Appreciate if you have other suggestions. |
@meetreks I am thinking that we should add |
@ewbankkit we like your suggestion but it still leaves a gap for oauth2 use cases (its because of the way the work flow is). Let us huddle more and see a way forward. Will keep you posted. |
Hi @ewbankkit one resource that is missing at the moment that i plan to work this weekend is https://docs.aws.amazon.com/appfabric/latest/api/API_ConnectAppAuthorization.html not sure if thats the one that will solve the issue |
@markoskandylis Yes, I think it would. Thanks. |
@ewbankkit I will have that ready at the start of next week and i will run some tests |
# Conflicts: # internal/service/appfabric/appfabric_test.go # internal/service/appfabric/exports_test.go
…ction' in acceptance tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% AWS_APPFABRIC_TERRAFORMCLOUD_TENANT_ID=... AWS_APPFABRIC_TERRAFORMCLOUD_SERVICE_ACCOUNT_TOKEN=... AWS_DEFAULT_REGION=us-east-1 make testacc TESTARGS='-run=TestAccAppFabric_serial/Ingestion' PKG=appfabric
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.4 test ./internal/service/appfabric/... -v -count 1 -parallel 20 -run=TestAccAppFabric_serial/Ingestion -timeout 360m
=== RUN TestAccAppFabric_serial
=== PAUSE TestAccAppFabric_serial
=== CONT TestAccAppFabric_serial
=== RUN TestAccAppFabric_serial/Ingestion
=== RUN TestAccAppFabric_serial/Ingestion/tags
=== RUN TestAccAppFabric_serial/Ingestion/basic
=== RUN TestAccAppFabric_serial/Ingestion/disappears
--- PASS: TestAccAppFabric_serial (73.72s)
--- PASS: TestAccAppFabric_serial/Ingestion (73.71s)
--- PASS: TestAccAppFabric_serial/Ingestion/tags (33.24s)
--- PASS: TestAccAppFabric_serial/Ingestion/basic (20.81s)
--- PASS: TestAccAppFabric_serial/Ingestion/disappears (19.66s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/appfabric 78.184s
@davelemons Thanks for the contribution 🎉 👏. |
Many thanks @YakDriver and @ewbankkit for your kind help & support. |
This functionality has been released in v5.56.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
This PR adds a resource for aws_appfabric_ingestion
Relations
Relates #34549.
Requires #37542.
Requires #37468.
Requires #38084.
References
AppFabric Ingestion Docs
Output from Acceptance Testing