-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
introduce ImageModifier #32876
introduce ImageModifier #32876
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
Before Merging a Connector Pull RequestWow! What a great pull request you have here! 🎉 To merge this PR, ensure the following has been done/considered for each connector added or updated:
If the checklist is complete, but the CI check is failing,
|
ec394c4
to
b34a64a
Compare
4360a3f
to
e40bba3
Compare
709a565
to
42cbb0b
Compare
b34a64a
to
9c55439
Compare
6c20b52
to
e8694b2
Compare
9c55439
to
1d1c6d8
Compare
01d903c
to
0e5a21f
Compare
@@ -36,8 +36,27 @@ public static enum BaseImage { | |||
|
|||
} | |||
|
|||
static public PostgresTestDatabase in(BaseImage imageName, String... methods) { | |||
final var container = new PostgresContainerFactory().shared(imageName.reference, methods); | |||
public static enum ImageModifier { |
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.
This might be pedantic but this should be named ContainerModifier. We're not modifying the image.
ImageModifier(String methodName) { | ||
this.methodName = methodName; | ||
} | ||
|
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.
Suggestion: add a method apply
(or whatever) which actually does the thing instead of naming a method in PostgresContainerFactory. You could pass a Consumer<GenericContainer<?>> to the constructor instead. This way you get rid of an unnecessary level of indirection. It's not like the Factory object will ever be stateful anyway.
|
||
String methodName; | ||
|
||
ImageModifier(String methodName) { |
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.
private?
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 only blocker on my end is s/ImageModifier/ContainerModifier/
0e5a21f
to
5b538b4
Compare
1d1c6d8
to
d0ab8c4
Compare
5b538b4
to
ee7be9a
Compare
e44faee
to
f3fb57a
Compare
4a4d2b4
to
90597c4
Compare
f3fb57a
to
8d01d2a
Compare
30a7d4a
to
9ec7ab8
Compare
8d01d2a
to
e291199
Compare
9ec7ab8
to
f85604b
Compare
e291199
to
d64b3f9
Compare
f85604b
to
1408f56
Compare
2981166
to
d8f738c
Compare
7ca9aaf
to
7496370
Compare
90780e5
to
08b4ae1
Compare
7496370
to
d108773
Compare
08b4ae1
to
a0b2b49
Compare
d108773
to
7aa296c
Compare
a0b2b49
to
f8673f9
Compare
7aa296c
to
1995d70
Compare
d1cbe9f
to
42021c4
Compare
b93ad8e
to
b89abae
Compare
Merge activity
|
b89abae
to
460d08d
Compare
Coverage report for source-postgres
|
using enum instead of strings for postgres container modifiers
using enum instead of strings for postgres container modifiers