-
Notifications
You must be signed in to change notification settings - Fork 102
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
TF-9268 Add support for POST/DELETE oauth_client/:id/relationships/projects #806
Conversation
d047a02
to
87f5a92
Compare
0084885
to
b6ecdc9
Compare
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.
Minor suggestion but it's nonblocking because I'm not sure when your atlas changes were merged. I ran the tests locally!
@@ -384,6 +427,140 @@ func TestOAuthClientsCreateOptionsValid(t *testing.T) { | |||
}) | |||
} | |||
|
|||
func TestOAuthClientsAddProjects(t *testing.T) { | |||
skipUnlessBeta(t) |
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.
I think it should be possible to remove skipUnlessBeta calls from your new tests because these endpoints are not behind a feature flag and the tests can be run.
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.
@Netra2104 It seems like my suggestion was a bad one. It usually takes a day for the test infrastructure to catch up with the platform nightly release. I take it that the 'Remove' endpoint was added today?
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.
Ohhhhh sorry about that; I didn't notice.
added the project relationship and the post/delete support removed include changelog read with options generate mocks readWithOptions test Update CHANGELOG.md rename
a9064fa
to
c5faa19
Compare
Reminder to the contributor that merged this PR: if your changes have added important functionality or fixed a relevant bug, open a follow-up PR to update CHANGELOG.md with a note on your changes. |
Description
Users should be able to add/remove projects using POST/DELETE oauth_clients/:id/relationships/projects in the oauth_client resource.
Testing plan
Integration test is added to complete the testing plan. The tests are currently set to beta but can be tested locally by removing the beta flag and running the tests.
External links
Output from tests
Including output from tests may require access to a TFE instance. Ignore this section if you have no environment to test against.