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

chore(fips): update endpoint overwrite method #435

Merged
merged 1 commit into from
Aug 9, 2024
Merged

chore(fips): update endpoint overwrite method #435

merged 1 commit into from
Aug 9, 2024

Conversation

yitingb
Copy link
Member

@yitingb yitingb commented Aug 9, 2024

Issue #, if available:

Description of changes:

  1. Updating the dependencies
  2. Update method to provide ggv2dataclient endpoint
  3. Ignoring device offline exceptions in unit testing since we're targeting authentication and the device offline related exceptions are expected

Why is this change necessary:
It's used to support fips feature where the endpoint should be override earlier than built-in useFips function
How was this change tested:
With UAT
Any additional information or context required to review the change:

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

@yitingb yitingb force-pushed the fips branch 2 times, most recently from b4ba0a7 to 46aff56 Compare August 9, 2024 01:15
@saranyailla saranyailla changed the title chore(fips): Update endpoint overwrite method chore(fips): update endpoint overwrite method Aug 9, 2024
junfuchen99
junfuchen99 previously approved these changes Aug 9, 2024
@@ -260,6 +266,8 @@ void GIVEN_clientConnectsWhileOnline_WHEN_offlineAndCertificateRevoked_THEN_back
void GIVEN_clientConnectsWhileOnline_WHEN_offlineAndCertDetachedFromThing_THEN_backOnlineAndClientRejected(
ExtensionContext context) throws Exception {
ignoreExceptionOfType(context, NoSuchFileException.class);
ignoreExceptionOfType(context, MqttRequestException.class);
ignoreExceptionOfType(context, ExecutionException.class);
Copy link
Member

Choose a reason for hiding this comment

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

Nit: we can assert the exception as well.

saranyailla
saranyailla previously approved these changes Aug 9, 2024
Copy link

github-actions bot commented Aug 9, 2024

Code Coverage Report

File Coverage
All files 74%

Minimum allowed coverage is 50%

Generated by 🐒 cobertura-action against 3c20354

Copy link

github-actions bot commented Aug 9, 2024

Benchmark Results

Benchmark Score
com.aws.greengrass.clientdevices.auth.benchmark.AuthorizationBenchmarks.GIVEN_policy_with_thing_name_variable_WHEN_auth_request_THEN_successful_auth 1285585.67 ops/s
com.aws.greengrass.clientdevices.auth.benchmark.AuthorizationBenchmarks.GIVEN_policy_with_wildcards_WHEN_auth_request_THEN_successful_auth 222453.71 ops/s
com.aws.greengrass.clientdevices.auth.benchmark.AuthorizationBenchmarks.GIVEN_single_group_permission_WHEN_simple_auth_request_THEN_successful_auth 2492861.50 ops/s

@junfuchen99 junfuchen99 merged commit 27ef646 into main Aug 9, 2024
6 checks passed
@junfuchen99 junfuchen99 deleted the fips branch August 9, 2024 04:38
junfuchen99 pushed a commit that referenced this pull request Aug 9, 2024
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