Skip to content

chore: Refactor test setup utils#15

Merged
lucasmcdonald3 merged 4 commits into
fireegg-test-serversfrom
renames
Sep 26, 2025
Merged

chore: Refactor test setup utils#15
lucasmcdonald3 merged 4 commits into
fireegg-test-serversfrom
renames

Conversation

@lucasmcdonald3

@lucasmcdonald3 lucasmcdonald3 commented Sep 25, 2025

Copy link
Copy Markdown

Issue #, if available:

Description of changes:

Refactor setup utils into a new file to be re-used by exhaustive tests.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@lucasmcdonald3 lucasmcdonald3 changed the title chore: Refactor chore: Refactor test setup utils Sep 25, 2025
Comment on lines +53 to +57
public static final Set<String> ENCRYPTION_CONTEXT_ON_DECRYPT_UNSUPPORTED =
Set.of(GO_V3, PHP_V2, PHP_V3, NET_V2, NET_V3);

public static final Set<String> ENCRYPTION_CONTEXT_ON_ENCRYPT_UNSUPPORTED =
Set.of(NET_V2, NET_V3);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

what do you think about possibly making a separate class for "UnsupportedTestConfiguration" or similar?

reason being I think it should as obvious as possible that these library versions don't support these tests, and is worth keeping separate from the rest of the more general utilities

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I will extend this later -- this was just step 1 in a series of refactors I've made for the exhaustive tests

Comment on lines +53 to +57
S3ECTestServerClient encClient = TestUtils.testServerClientFor(encLang);
final String objectKey = "cross-lang-test-key-" + encLang;
final String input = "simple-test-input";
KeyMaterial kmsKeyArn = KeyMaterial.builder()
.kmsKeyId(KMS_KEY_ARN)
.kmsKeyId(TestUtils.KMS_KEY_ARN)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: I normally hate star imports, but I believe we can * import TestUtils and not have to prefix everything in this file?

@lucasmcdonald3 lucasmcdonald3 Sep 25, 2025

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I'm on board this is a PITA to have all over the place

Lucas McDonald added 2 commits September 25, 2025 15:08
@lucasmcdonald3 lucasmcdonald3 merged commit 2fa579b into fireegg-test-servers Sep 26, 2025
2 checks passed
@lucasmcdonald3 lucasmcdonald3 deleted the renames branch September 26, 2025 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants