@@ -55,7 +55,7 @@ public void testSupportedStrategy() {
55
55
SecretManagerServiceClient mock = mock (SecretManagerServiceClient .class );
56
56
properties .setVersion (1 );
57
57
assertThat (GoogleSecretManagerAccessStrategyFactory .forVersion (null , null , properties ,
58
- mock ) instanceof GoogleSecretManagerV1AccessStrategy ).isTrue ();
58
+ mock ) instanceof GoogleSecretManagerV1AccessStrategy ).isTrue ();
59
59
}
60
60
61
61
@ Test
@@ -76,7 +76,7 @@ public void testGetSecrets() throws IOException {
76
76
when (provider .getValue (HttpHeaderGoogleConfigProvider .PROJECT_ID_HEADER , true )).thenReturn ("test-project" );
77
77
SecretManagerServiceClient mock = mock (SecretManagerServiceClient .class );
78
78
SecretManagerServiceClient .ListSecretsPagedResponse response = mock (
79
- SecretManagerServiceClient .ListSecretsPagedResponse .class );
79
+ SecretManagerServiceClient .ListSecretsPagedResponse .class );
80
80
Secret secret = Secret .newBuilder ().setName ("projects/test-project/secrets/test" ).build ();
81
81
List <Secret > secrets = new ArrayList <Secret >();
82
82
secrets .add (secret );
@@ -94,15 +94,15 @@ public void testGetSecretValues() {
94
94
when (provider .getValue (HttpHeaderGoogleConfigProvider .PROJECT_ID_HEADER , true )).thenReturn ("test-project" );
95
95
SecretManagerServiceClient mock = mock (SecretManagerServiceClient .class );
96
96
SecretManagerServiceClient .ListSecretVersionsPagedResponse response = mock (
97
- SecretManagerServiceClient .ListSecretVersionsPagedResponse .class );
97
+ SecretManagerServiceClient .ListSecretVersionsPagedResponse .class );
98
98
SecretVersion secret1 = SecretVersion .newBuilder ().setName ("projects/test-project/secrets/test/versions/1" )
99
- .setState (SecretVersion .State .ENABLED ).build ();
99
+ .setState (SecretVersion .State .ENABLED ).build ();
100
100
SecretVersion secret2 = SecretVersion .newBuilder ().setName ("projects/test-project/secrets/test/versions/4" )
101
- .setState (SecretVersion .State .ENABLED ).build ();
101
+ .setState (SecretVersion .State .ENABLED ).build ();
102
102
SecretVersion secret3 = SecretVersion .newBuilder ().setName ("projects/test-project/secrets/test/versions/9" )
103
- .setState (SecretVersion .State .ENABLED ).build ();
103
+ .setState (SecretVersion .State .ENABLED ).build ();
104
104
SecretVersion secret4 = SecretVersion .newBuilder ().setName ("projects/test-project/secrets/test/versions/12" )
105
- .setState (SecretVersion .State .ENABLED ).build ();
105
+ .setState (SecretVersion .State .ENABLED ).build ();
106
106
List <SecretVersion > secrets = new ArrayList <SecretVersion >();
107
107
secrets .add (secret1 );
108
108
secrets .add (secret2 );
@@ -128,7 +128,7 @@ public boolean matches(AccessSecretVersionRequest accessSecretVersionRequest) {
128
128
};
129
129
Mockito .doReturn (accessSecretVersionResponse ).when (mock ).accessSecretVersion (ArgumentMatchers .argThat (matcher ));
130
130
assertThat (strategy .getSecretValue (Secret .newBuilder ().setName ("projects/test-project/secrets/test" ).build (),
131
- new GoogleSecretComparatorByVersion ())).isEqualTo ("test-value" );
131
+ new GoogleSecretComparatorByVersion ())).isEqualTo ("test-value" );
132
132
}
133
133
134
134
}
0 commit comments