-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
HIPP-1777: Stop creating hidden production credentials #220
HIPP-1777: Stop creating hidden production credentials #220
Conversation
b4c98dd
to
ad3d11e
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.
Could you add a test verifying that register application does not create a credential in the production environment?
@@ -355,7 +355,6 @@ class ApplicationEnricherSpec extends AsyncFreeSpec | |||
"credentialCreatingApplicationEnricher" - { | |||
"must create a credential in the hip environments and enrich the application with it" in { | |||
val expected = Seq( | |||
testApplication.setCredentials(FakeHipEnvironments.primaryEnvironment, Seq(testClientResponse1.asNewHiddenCredential(clock))), |
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.
We still need to test creating credentials in the primary environment - why remove this?
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 reason was because I was filtering the credentials creation for production/primary environments on credentialCreatingApplicationEnricher
, that's now done on the ApplicationsLifeCycleService
.
Although as of now, credentialCreatingApplicationEnricher
will never create primary environments credentials.
@@ -366,7 +365,7 @@ class ApplicationEnricherSpec extends AsyncFreeSpec | |||
.thenReturn(Future.successful(Right(testClientResponse2))) | |||
|
|||
val results = Future.sequence( | |||
FakeHipEnvironments.environments.map( | |||
Seq(FakeHipEnvironments.secondaryEnvironment).map( |
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.
We still need to test creating credentials in the primary environment - why remove this?
I thought these lines would cover that? |
ad3d11e
to
5a05fb1
Compare
No description provided.