Skip to content
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

[CORE-178] Fix integration tests #184

Merged
merged 10 commits into from
Nov 25, 2024
Merged

Conversation

samanehsan
Copy link
Contributor

@samanehsan samanehsan force-pushed the se/CORE-178-fix-crl-janitor-secret branch from 5f0c6f7 to 10e5299 Compare November 20, 2024 21:03
@samanehsan samanehsan force-pushed the se/CORE-178-fix-crl-janitor-secret branch from 9a706f1 to 9a6b607 Compare November 21, 2024 15:18
| jq .data > $AZURE_MANAGED_APP_FILE
- name: Write Janitor Client SA file
run: |
JANITOR_SA_B64=${{ secrets.CRL_JANITOR_CLIENT_SA_B64 }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This secret is no longer in vault so it gets handled separately

AZURE_MANAGED_APP_CLIENT_SECRET=$(jq -r '."client-secret"' ${AZURE_MANAGED_APP_CLIENT_FILE})
AZURE_MANAGED_APP_TENANT_ID=$(jq -r '."tenant-id"' ${AZURE_MANAGED_APP_CLIENT_FILE})
cat > ${AZURE_PROPERTIES_FILE} <<EOF
AZURE_MANAGED_APP_CLIENT_ID=$(jq -r '."client-id"' ${AZURE_MANAGED_APP_FILE})
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This step was getting cached by github actions, but I needed it to re-run after updating the client secret so I just renamed some of the env variables.

@@ -24,7 +24,7 @@ public class AzureIntegrationUtils {
"f557c728-871d-408c-a28b-eb6b2141a087",
AzureEnvironment.AZURE);

public static final String DEFAULT_AZURE_RESOURCE_GROUP = "e2e-xmx74y";
public static final String DEFAULT_AZURE_RESOURCE_GROUP = "DefaultResourceGroup-EUS2";
Copy link
Contributor Author

@samanehsan samanehsan Nov 21, 2024

Choose a reason for hiding this comment

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

The "e2e-xmx74y" test resource group no longer exists and was causing AzureResponseLoggerTest.testRecordEvent to fail

@samanehsan samanehsan force-pushed the se/CORE-178-fix-crl-janitor-secret branch from 5a1672d to 6abe557 Compare November 21, 2024 18:20
@samanehsan samanehsan force-pushed the se/CORE-178-fix-crl-janitor-secret branch from 6abe557 to 12a4082 Compare November 21, 2024 18:31
@samanehsan samanehsan changed the title [CORE-178] Get CRL janitor service account secret from GSM [CORE-178] Fix integration tests Nov 21, 2024
Copy link
Contributor

@davidangb davidangb left a comment

Choose a reason for hiding this comment

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

looks good, I see all tests passing, I did not do any testing myself

@davidangb davidangb merged commit 3b68510 into master Nov 25, 2024
2 checks passed
@davidangb davidangb deleted the se/CORE-178-fix-crl-janitor-secret branch November 25, 2024 19:25
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.

3 participants