Skip to content

Commit b1b38e5

Browse files
committed
DMP-5252-ARM-5-2-Upgrade
Started to move the ARM clients into a service so the current version and new version can be enabled accordingly
1 parent b154c99 commit b1b38e5

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

src/integrationTest/resources/application-intTest.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ darts:
8585
url: http://localhost:${wiremock.server.port}
8686
arm-service-entitlement: some-entitlement
8787
arm-storage-account-name: some-account-name
88-
8988
enable-arm-v5-2-upgrade: false
90-
9189
version5-2:
9290
authentication:
9391
auth-base-url: http://localhost:${wiremock.server.port}

src/main/java/uk/gov/hmcts/darts/arm/service/impl/ArmClientServiceImpl.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,8 @@
3838
* Pre ARM version 5.2 implementation of the ArmClientService.
3939
* This implementation is activated when the property 'darts.storage.arm.arm-api.enable-arm-v5' is set to false.
4040
*/
41-
//@Component
42-
//@ConditionalOnProperty(prefix = "darts.storage.arm", name = "is-mock-arm-rpo-download-csv", havingValue = "false")
43-
//@AllArgsConstructor
4441
@Component
45-
@ConditionalOnProperty(prefix = "darts.storage.arm.arm-api", name = "enable-arm-v5-2-upgrade", havingValue = "false")
46-
//@RequiredArgsConstructor(onConstructor_ = {@Autowired, @Lazy})
42+
@ConditionalOnProperty(prefix = "darts.storage.arm-api", name = "enable-arm-v5-2-upgrade", havingValue = "false")
4743
@AllArgsConstructor
4844
@SuppressWarnings({"PMD.CouplingBetweenObjects", "PMD.UseObjectForClearerAPI"})
4945
public class ArmClientServiceImpl implements ArmClientService {

src/main/java/uk/gov/hmcts/darts/arm/service/impl/ArmClientServiceWrapper.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,8 @@
3737
* Post ARM version 5.2 implementation of the ArmClientService.
3838
* This implementation is activated when the property 'darts.storage.arm.arm-api.enable-arm-v5' is set to true.
3939
*/
40-
//@Component
41-
//@ConditionalOnProperty(prefix = "darts.storage.arm", name = "is-mock-arm-rpo-download-csv", havingValue = "false")
42-
//@AllArgsConstructor
4340
@Component
44-
@ConditionalOnProperty(prefix = "darts.storage.arm.arm-api", name = "enable-arm-v5-2-upgrade", havingValue = "true")
41+
@ConditionalOnProperty(prefix = "darts.storage.arm-api", name = "enable-arm-v5-2-upgrade", havingValue = "true")
4542
@AllArgsConstructor
4643
@SuppressWarnings({"PMD.CouplingBetweenObjects", "PMD.UseObjectForClearerAPI"})
4744
public class ArmClientServiceWrapper implements ArmClientService {

0 commit comments

Comments
 (0)