Skip to content

Commit

Permalink
Switch ndpointproviders back to useSraAuth=false
Browse files Browse the repository at this point in the history
  • Loading branch information
gosar committed Oct 3, 2023
1 parent ffaf8ec commit d665f40
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"skipEndpointTestGeneration": true,
"useSraAuth": true
"skipEndpointTestGeneration": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ public void async_endpointProviderReturnsHeaders_appendedToExistingRequest() {
assertThat(interceptor.context.httpRequest().matchingHeaders("TestHeader")).containsExactly("TestValue", "TestValue0");
}

@Test
// TODO(sra-identity-auth): Enables for useSraAuth=true
// @Test
public void sync_endpointProviderReturnsSignerProperties_overridesV4AuthSchemeResolverProperties() {
RestJsonEndpointProvidersEndpointProvider defaultEndpointProvider =
RestJsonEndpointProvidersEndpointProvider.defaultProvider();
Expand Down Expand Up @@ -231,7 +232,8 @@ public void sync_endpointProviderReturnsSignerProperties_overridesV4AuthSchemeRe
assertThat(signer.request.property(AwsV4HttpSigner.DOUBLE_URL_ENCODE)).isEqualTo(false);
}

@Test
// TODO(sra-identity-auth): Enables for useSraAuth=true
// @Test
public void async_endpointProviderReturnsSignerProperties_overridesV4AuthSchemeResolverProperties() {
RestJsonEndpointProvidersEndpointProvider defaultEndpointProvider =
RestJsonEndpointProvidersEndpointProvider.defaultProvider();
Expand Down Expand Up @@ -261,7 +263,8 @@ public void async_endpointProviderReturnsSignerProperties_overridesV4AuthSchemeR
assertThat(signer.request.property(AwsV4HttpSigner.DOUBLE_URL_ENCODE)).isEqualTo(false);
}

@Test
// TODO(sra-identity-auth): Enables for useSraAuth=true
// @Test
public void sync_endpointProviderReturnsSignerProperties_overridesV4AAuthSchemeResolverProperties() {
RestJsonEndpointProvidersEndpointProvider defaultEndpointProvider =
RestJsonEndpointProvidersEndpointProvider.defaultProvider();
Expand Down Expand Up @@ -298,7 +301,8 @@ public void sync_endpointProviderReturnsSignerProperties_overridesV4AAuthSchemeR
assertThat(signer.request.property(AwsV4aHttpSigner.DOUBLE_URL_ENCODE)).isEqualTo(false);
}

@Test
// TODO(sra-identity-auth): Enables for useSraAuth=true
// @Test
public void async_endpointProviderReturnsSignerProperties_overridesV4AAuthSchemeResolverProperties() {
RestJsonEndpointProvidersEndpointProvider defaultEndpointProvider =
RestJsonEndpointProvidersEndpointProvider.defaultProvider();
Expand Down Expand Up @@ -335,7 +339,8 @@ public void async_endpointProviderReturnsSignerProperties_overridesV4AAuthScheme
assertThat(signer.request.property(AwsV4aHttpSigner.DOUBLE_URL_ENCODE)).isEqualTo(false);
}

@Test
// TODO(sra-identity-auth): Enables for useSraAuth=true
// @Test
public void sync_endpointProviderDoesNotReturnV4SignerProperties_executionAttributesFromAuthSchemeOption() {
RestJsonEndpointProvidersEndpointProvider defaultEndpointProvider =
RestJsonEndpointProvidersEndpointProvider.defaultProvider();
Expand Down Expand Up @@ -363,7 +368,8 @@ public void sync_endpointProviderDoesNotReturnV4SignerProperties_executionAttrib
assertThat(interceptor.executionAttributes.getAttribute(AwsSignerExecutionAttribute.SIGNER_DOUBLE_URL_ENCODE)).isEqualTo(true);
}

@Test
// TODO(sra-identity-auth): Enables for useSraAuth=true
// @Test
public void sync_endpointProviderReturnsV4SignerProperties_executionAttributesFromEndpointProvider() {
RestJsonEndpointProvidersEndpointProvider defaultEndpointProvider =
RestJsonEndpointProvidersEndpointProvider.defaultProvider();
Expand Down Expand Up @@ -398,7 +404,8 @@ public void sync_endpointProviderReturnsV4SignerProperties_executionAttributesFr
assertThat(interceptor.executionAttributes.getAttribute(AwsSignerExecutionAttribute.SIGNER_DOUBLE_URL_ENCODE)).isEqualTo(true);
}

@Test
// TODO(sra-identity-auth): Enables for useSraAuth=true
// @Test
public void sync_endpointProviderDoesNotReturnV4aSignerProperties_executionAttributesFromAuthSchemeOption() {
RestJsonEndpointProvidersEndpointProvider defaultEndpointProvider =
RestJsonEndpointProvidersEndpointProvider.defaultProvider();
Expand Down Expand Up @@ -428,7 +435,8 @@ public void sync_endpointProviderDoesNotReturnV4aSignerProperties_executionAttri
assertThat(interceptor.executionAttributes.getAttribute(AwsSignerExecutionAttribute.SIGNER_DOUBLE_URL_ENCODE)).isEqualTo(true);
}

@Test
// TODO(sra-identity-auth): Enables for useSraAuth=true
// @Test
public void sync_endpointProviderReturnsV4aSignerProperties_executionAttributesFromEndpointProvider() {
RestJsonEndpointProvidersEndpointProvider defaultEndpointProvider =
RestJsonEndpointProvidersEndpointProvider.defaultProvider();
Expand Down

0 comments on commit d665f40

Please sign in to comment.