Skip to content

Commit 41c779f

Browse files
committed
Merge remote-tracking branch 'origin/main' into native-image-for-server
2 parents dc3c46b + f9449a2 commit 41c779f

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

docs/modules/ROOT/pages/server/environment-repository/aws-secrets-manager.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Note that if the default label is not set and a request does not define a label,
7878

7979
Note that if the staging label contains a slash (`/`), then the label in the HTTP URL should instead be specified with the special string `(\{special-string})` (to avoid ambiguity with other URL paths) the same way <<_git_backend,Git backend's section>> describes it.
8080

81-
Use `spring.cloud.config.server.aws-secretsmanager.ignore-label` property to ignore the `{label}` parameter of the HTTP resource as well as `spring.cloud.config.server.aws-secretsmanager.default-label` property. The repository will use secrets as if labelled version support is disabled.
81+
Use `spring.cloud.config.server.aws-secretsmanager.ignore-label` property to ignore the `\{label}` parameter of the HTTP resource as well as `spring.cloud.config.server.aws-secretsmanager.default-label` property. The repository will use secrets as if labelled version support is disabled.
8282

8383
[source,yaml]
8484
----

spring-cloud-config-server/src/test/java/org/springframework/cloud/config/server/environment/AwsSecretsManagerEnvironmentRepositoryTests.java

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,11 @@ public class AwsSecretsManagerEnvironmentRepositoryTests {
8888
private final AwsSecretsManagerEnvironmentRepository labeledRepository = new AwsSecretsManagerEnvironmentRepository(
8989
smClient, configServerProperties, labeledEnvironmentProperties);
9090

91-
private final AwsSecretsManagerEnvironmentProperties ignoreLabelEnvironmentProperties = new AwsSecretsManagerEnvironmentProperties() {{
92-
setIgnoreLabel(true);
93-
}};
91+
private final AwsSecretsManagerEnvironmentProperties ignoreLabelEnvironmentProperties = new AwsSecretsManagerEnvironmentProperties() {
92+
{
93+
setIgnoreLabel(true);
94+
}
95+
};
9496

9597
private final AwsSecretsManagerEnvironmentRepository ignoreLabelRepository = new AwsSecretsManagerEnvironmentRepository(
9698
smClient, configServerProperties, ignoreLabelEnvironmentProperties);
@@ -1849,24 +1851,23 @@ public void testFindOneWithExistingApplicationAndExistingProfileAndExistingLabel
18491851

18501852
String fooDefaultPropertiesName = "aws:secrets:/secret/foo-default/";
18511853
PropertySource fooDefaultProperties = new PropertySource(fooDefaultPropertiesName,
1852-
getFooDefaultReleaseProperties());
1854+
getFooDefaultReleaseProperties());
18531855

18541856
String applicationProdPropertiesName = "aws:secrets:/secret/application-prod/";
18551857
PropertySource applicationProdProperties = new PropertySource(applicationProdPropertiesName,
1856-
getApplicationProdReleaseProperties());
1858+
getApplicationProdReleaseProperties());
18571859

18581860
String applicationDefaultPropertiesName = "aws:secrets:/secret/application-default/";
18591861
PropertySource applicationDefaultProperties = new PropertySource(applicationDefaultPropertiesName,
1860-
getApplicationDefaultReleaseProperties());
1862+
getApplicationDefaultReleaseProperties());
18611863

18621864
String applicationPropertiesName = "aws:secrets:/secret/application/";
18631865
PropertySource applicationProperties = new PropertySource(applicationPropertiesName,
1864-
getApplicationReleaseProperties());
1866+
getApplicationReleaseProperties());
18651867

18661868
Environment expectedEnv = new Environment(application, profiles, null, null, null);
1867-
expectedEnv.addAll(Arrays.asList(
1868-
fooProdProperties, applicationProdProperties, fooDefaultProperties,
1869-
applicationDefaultProperties, fooProperties, applicationProperties));
1869+
expectedEnv.addAll(Arrays.asList(fooProdProperties, applicationProdProperties, fooDefaultProperties,
1870+
applicationDefaultProperties, fooProperties, applicationProperties));
18701871

18711872
putSecrets(expectedEnv);
18721873

0 commit comments

Comments
 (0)