Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
Lib
cloud
azure
OS Core Lib Azure
Commits
c7855112
Commit
c7855112
authored
May 26, 2021
by
Ronak Sakhuja
Browse files
Fixed lint
parent
549fff77
Pipeline
#42792
failed with stage
in 1 minute and 46 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/test/java/org/opengroup/osdu/azure/blobstorage/BlobContainerClientFactoryImplTest.java
View file @
c7855112
...
...
@@ -81,6 +81,7 @@ public class BlobContainerClientFactoryImplTest {
PartitionInfoAzure
.
builder
()
.
idConfig
(
Property
.
builder
().
value
(
PARTITION_ID
).
build
())
.
storageAccountNameConfig
(
Property
.
builder
().
value
(
ACCOUNT_NAME
).
build
()).
build
());
BlobContainerClient
containerClient
=
this
.
sut
.
getClient
(
PARTITION_ID
,
STORAGE_CONTAINER_NAME
);
assertNotNull
(
containerClient
);
...
...
src/test/java/org/opengroup/osdu/azure/di/BlobStoreRetryConfigurationTest.java
View file @
c7855112
...
...
@@ -49,7 +49,7 @@ public class BlobStoreRetryConfigurationTest {
Assert
.
isTrue
(
requestRetryOptions
.
getTryTimeoutDuration
().
equals
(
defaultRequestRetryOptions
.
getTryTimeoutDuration
()));
Assert
.
isTrue
(
requestRetryOptions
.
getRetryDelay
().
equals
(
defaultRequestRetryOptions
.
getRetryDelay
()));
Assert
.
isTrue
(
requestRetryOptions
.
getMaxRetryDelay
().
equals
(
defaultRequestRetryOptions
.
getMaxRetryDelay
()));
assertEquals
(
requestRetryOptions
.
getSecondaryHost
(),
defaultRequestRetryOptions
.
getSecondaryHost
());
assertEquals
(
requestRetryOptions
.
getSecondaryHost
(),
defaultRequestRetryOptions
.
getSecondaryHost
());
}
@Test
...
...
@@ -62,7 +62,7 @@ public class BlobStoreRetryConfigurationTest {
Assert
.
isTrue
(
requestRetryOptions
.
getTryTimeoutDuration
().
equals
(
defaultRequestRetryOptions
.
getTryTimeoutDuration
()));
Assert
.
isTrue
(
requestRetryOptions
.
getRetryDelay
().
equals
(
defaultRequestRetryOptions
.
getRetryDelay
()));
Assert
.
isTrue
(
requestRetryOptions
.
getMaxRetryDelay
().
equals
(
defaultRequestRetryOptions
.
getMaxRetryDelay
()));
assertEquals
(
requestRetryOptions
.
getSecondaryHost
(),
defaultRequestRetryOptions
.
getSecondaryHost
());
assertEquals
(
requestRetryOptions
.
getSecondaryHost
(),
defaultRequestRetryOptions
.
getSecondaryHost
());
}
@Test
...
...
@@ -75,13 +75,13 @@ public class BlobStoreRetryConfigurationTest {
Assert
.
isTrue
(
requestRetryOptions
.
getTryTimeoutDuration
().
equals
(
Duration
.
ofSeconds
(
tryTimeoutValue
)));
Assert
.
isTrue
(
requestRetryOptions
.
getRetryDelay
().
equals
(
defaultRequestRetryOptions
.
getRetryDelay
()));
Assert
.
isTrue
(
requestRetryOptions
.
getMaxRetryDelay
().
equals
(
defaultRequestRetryOptions
.
getMaxRetryDelay
()));
assertEquals
(
requestRetryOptions
.
getSecondaryHost
(),
defaultRequestRetryOptions
.
getSecondaryHost
());
assertEquals
(
requestRetryOptions
.
getSecondaryHost
(),
defaultRequestRetryOptions
.
getSecondaryHost
());
}
@Test
public
void
should_set_RetryDelay
()
{
int
retryDelayValue
=
50
;
int
maxRetryDelayValue
=
100
;
int
maxRetryDelayValue
=
100
;
blobStoreRetryConfiguration
.
setRetryDelayInMs
(
retryDelayValue
);
blobStoreRetryConfiguration
.
setMaxRetryDelayInMs
(
maxRetryDelayValue
);
RequestRetryOptions
requestRetryOptions
=
blobStoreRetryConfiguration
.
getRequestRetryOptions
();
...
...
@@ -90,7 +90,7 @@ public class BlobStoreRetryConfigurationTest {
Assert
.
isTrue
(
requestRetryOptions
.
getTryTimeoutDuration
().
equals
(
defaultRequestRetryOptions
.
getTryTimeoutDuration
()));
Assert
.
isTrue
(
requestRetryOptions
.
getRetryDelay
().
equals
(
Duration
.
ofMillis
(
retryDelayValue
)));
Assert
.
isTrue
(
requestRetryOptions
.
getMaxRetryDelay
().
equals
(
Duration
.
ofMillis
(
maxRetryDelayValue
)));
assertEquals
(
requestRetryOptions
.
getSecondaryHost
(),
defaultRequestRetryOptions
.
getSecondaryHost
());
assertEquals
(
requestRetryOptions
.
getSecondaryHost
(),
defaultRequestRetryOptions
.
getSecondaryHost
());
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment