diff options
author | rameshiyer27 <ramesh.murugan.iyer@est.tech> | 2022-05-17 12:04:03 +0100 |
---|---|---|
committer | rameshiyer27 <ramesh.murugan.iyer@est.tech> | 2022-05-17 12:49:12 +0100 |
commit | b77b61847ddd169da9a71b05742ed51bc826f5f6 (patch) | |
tree | 9f8ef7d8cae38dbaf11d0838a9ce70b4887eb004 /participant/participant-impl/participant-impl-kubernetes/src/test | |
parent | 9fa11a0b5ef61399598cc84950209bd8b38eed82 (diff) |
Add user configurable parameter for permitted helm repo protocols
User can configure the permitted helm repository protocols http/https
based on the requirement.
Issue-ID: POLICY-4113
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: Ib7c91413babd15d0bd22ceffe10cdc1c3a6a0fd0
Diffstat (limited to 'participant/participant-impl/participant-impl-kubernetes/src/test')
-rw-r--r-- | participant/participant-impl/participant-impl-kubernetes/src/test/java/org/onap/policy/clamp/acm/participant/kubernetes/service/ChartServiceTest.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/participant/participant-impl/participant-impl-kubernetes/src/test/java/org/onap/policy/clamp/acm/participant/kubernetes/service/ChartServiceTest.java b/participant/participant-impl/participant-impl-kubernetes/src/test/java/org/onap/policy/clamp/acm/participant/kubernetes/service/ChartServiceTest.java index d83d43f20..669ca3fe3 100644 --- a/participant/participant-impl/participant-impl-kubernetes/src/test/java/org/onap/policy/clamp/acm/participant/kubernetes/service/ChartServiceTest.java +++ b/participant/participant-impl/participant-impl-kubernetes/src/test/java/org/onap/policy/clamp/acm/participant/kubernetes/service/ChartServiceTest.java @@ -123,6 +123,7 @@ class ChartServiceTest { List<HelmRepository> helmRepositoryList = new ArrayList<>(); helmRepositoryList.add(HelmRepository.builder().address("https://localhost:8080").build()); doReturn(helmRepositoryList).when(helmRepositoryConfig).getRepos(); + doReturn(List.of("http", "https")).when(helmRepositoryConfig).getProtocols(); assertDoesNotThrow(() -> chartService.installChart(charts.get(0))); doThrow(ServiceException.class).when(helmClient).installChart(any()); assertThatThrownBy(() -> chartService.installChart(charts.get(0))).isInstanceOf(ServiceException.class); |