Skip to content

Commit ff1abb9

Browse files
review changes
1 parent 22ac5d2 commit ff1abb9

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

framework/config/src/main/java/org/apache/cloudstack/framework/config/ConfigKey.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,8 @@ protected T valueInGlobalOrAvailableParentScope(Scope scope, Long id) {
401401
}
402402

403403
/**
404-
* Use {@link ConfigKey#valueInScope(Scope, Long)} instead.
404+
* @deprecated
405+
* Still used by some external code, but use {@link ConfigKey#valueInScope(Scope, Long)} instead.
405406
*/
406407
public T valueInDomain(Long domainId) {
407408
return valueInScope(Scope.Domain, domainId);

plugins/storage/volume/scaleio/src/main/java/org/apache/cloudstack/storage/datastore/manager/ScaleIOSDCManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,9 +439,9 @@ public boolean isHostSdcConnected(String sdcId, DataStore dataStore, int waitTim
439439
}
440440
boolean isConnected = isHostSdcConnected(sdcId, poolId);
441441
if (isConnected) {
442-
logger.debug("Final attempt succeeded the SDC {} of the pool {} to connect", sdcId, dataStore);
442+
logger.debug("Final attempt to connect the SDC {} of the pool {} succeeded", sdcId, dataStore);
443443
} else {
444-
logger.debug("Final attempt failed the SDC {} of the pool {} to connect", sdcId, dataStore);
444+
logger.debug("Final attempt to connect the SDC {} of the pool {} failed", sdcId, dataStore);
445445
}
446446
return isConnected;
447447
}

plugins/storage/volume/scaleio/src/test/java/org/apache/cloudstack/storage/datastore/client/ScaleIOGatewayClientImplTest.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,6 @@ public void testClientAuthFailure() throws Exception {
125125
.withBody("")));
126126

127127
client.listStoragePools();
128-
129-
wireMockRule.verify(getRequestedFor(urlEqualTo("/api/login"))
130-
.withBasicAuth(new BasicCredentials(username, password)));
131128
}
132129

133130
@Test(expected = ServerApiException.class)
@@ -142,9 +139,6 @@ public void testRequestTimeout() {
142139
.withBody("")));
143140

144141
client.listStoragePools();
145-
146-
wireMockRule.verify(getRequestedFor(urlEqualTo("/api/login"))
147-
.withBasicAuth(new BasicCredentials(username, password)));
148142
}
149143

150144
@Test

0 commit comments

Comments
 (0)