Skip to content

Commit a6c45be

Browse files
committed
Bumping versions
1 parent 3f63b43 commit a6c45be

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

+8-8
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void testSupportedStrategy() {
5555
SecretManagerServiceClient mock = mock(SecretManagerServiceClient.class);
5656
properties.setVersion(1);
5757
assertThat(GoogleSecretManagerAccessStrategyFactory.forVersion(null, null, properties,
58-
mock) instanceof GoogleSecretManagerV1AccessStrategy).isTrue();
58+
mock) instanceof GoogleSecretManagerV1AccessStrategy).isTrue();
5959
}
6060

6161
@Test
@@ -76,7 +76,7 @@ public void testGetSecrets() throws IOException {
7676
when(provider.getValue(HttpHeaderGoogleConfigProvider.PROJECT_ID_HEADER, true)).thenReturn("test-project");
7777
SecretManagerServiceClient mock = mock(SecretManagerServiceClient.class);
7878
SecretManagerServiceClient.ListSecretsPagedResponse response = mock(
79-
SecretManagerServiceClient.ListSecretsPagedResponse.class);
79+
SecretManagerServiceClient.ListSecretsPagedResponse.class);
8080
Secret secret = Secret.newBuilder().setName("projects/test-project/secrets/test").build();
8181
List<Secret> secrets = new ArrayList<Secret>();
8282
secrets.add(secret);
@@ -94,15 +94,15 @@ public void testGetSecretValues() {
9494
when(provider.getValue(HttpHeaderGoogleConfigProvider.PROJECT_ID_HEADER, true)).thenReturn("test-project");
9595
SecretManagerServiceClient mock = mock(SecretManagerServiceClient.class);
9696
SecretManagerServiceClient.ListSecretVersionsPagedResponse response = mock(
97-
SecretManagerServiceClient.ListSecretVersionsPagedResponse.class);
97+
SecretManagerServiceClient.ListSecretVersionsPagedResponse.class);
9898
SecretVersion secret1 = SecretVersion.newBuilder().setName("projects/test-project/secrets/test/versions/1")
99-
.setState(SecretVersion.State.ENABLED).build();
99+
.setState(SecretVersion.State.ENABLED).build();
100100
SecretVersion secret2 = SecretVersion.newBuilder().setName("projects/test-project/secrets/test/versions/4")
101-
.setState(SecretVersion.State.ENABLED).build();
101+
.setState(SecretVersion.State.ENABLED).build();
102102
SecretVersion secret3 = SecretVersion.newBuilder().setName("projects/test-project/secrets/test/versions/9")
103-
.setState(SecretVersion.State.ENABLED).build();
103+
.setState(SecretVersion.State.ENABLED).build();
104104
SecretVersion secret4 = SecretVersion.newBuilder().setName("projects/test-project/secrets/test/versions/12")
105-
.setState(SecretVersion.State.ENABLED).build();
105+
.setState(SecretVersion.State.ENABLED).build();
106106
List<SecretVersion> secrets = new ArrayList<SecretVersion>();
107107
secrets.add(secret1);
108108
secrets.add(secret2);
@@ -128,7 +128,7 @@ public boolean matches(AccessSecretVersionRequest accessSecretVersionRequest) {
128128
};
129129
Mockito.doReturn(accessSecretVersionResponse).when(mock).accessSecretVersion(ArgumentMatchers.argThat(matcher));
130130
assertThat(strategy.getSecretValue(Secret.newBuilder().setName("projects/test-project/secrets/test").build(),
131-
new GoogleSecretComparatorByVersion())).isEqualTo("test-value");
131+
new GoogleSecretComparatorByVersion())).isEqualTo("test-value");
132132
}
133133

134134
}

0 commit comments

Comments
 (0)