SNI checking is now supproted in Jersey.
Issue-ID: POLICY-4474
Change-Id: Ifd6aa0718e0d3fcb7eec49f19fac7ab5065f54b5
Signed-off-by: liamfallon <liam.fallon@est.tech>
/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2022 Nordix Foundation.
- * Modifications Copyright (C) 2022 Nordix Foundation.
+ * Modifications Copyright (C) 2022-2023 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*/
public class LifecycleApiAutomationCompositionForwarderParametersTest {
- private static final String AUTOMATION_COMPOSITION_RUNTIME_HOST_NAME = "0.0.0.0";
+ private static final String AUTOMATION_COMPOSITION_RUNTIME_HOST_NAME = "localhost";
private static final int AUTOMATION_COMPOSITION_RUNTIME_PORT = 6969;
private static final String AUTOMATION_COMPOSITION_RUNTIME_USER = "policyadmin";
private static final String AUTOMATION_COMPOSITION_RUNTIME_PASSWORD = "zb!XztG34";
/*-
* ============LICENSE_START=======================================================
- * Copyright (C) 2022 Nordix Foundation.
- * Modifications Copyright (C) 2022 Nordix Foundation.
+ * Copyright (C) 2022-2023 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
LifecycleApiAutomationCompositionForwarderParameters.class);
ParameterService.register(parameterGroup);
simulator.startLifecycycleApiSimulator();
- if (!NetworkUtil.isTcpPortOpen("0.0.0.0", 6969, 50, 200L)) {
+ if (!NetworkUtil.isTcpPortOpen("localhost", 6969, 50, 200L)) {
throw new IllegalStateException("cannot connect to port 6969");
}
}
/*-
* ============LICENSE_START=======================================================
- * Copyright (C) 2019-2021 Nordix Foundation.
+ * Copyright (C) 2019-2021,2023 Nordix Foundation.
* Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
*/
public class LifecycleApiForwarderParametersTest {
- private static final String POLICY_API_HOST_NAME = "0.0.0.0";
+ private static final String POLICY_API_HOST_NAME = "localhost";
private static final int POLICY_API_PORT = 6969;
private static final String POLICY_API_USER = "policyadmin";
private static final String POLICY_API_PASSWORD = "zb!XztG34";
- private static final String POLICY_PAP_HOST_NAME = "0.0.0.0";
+ private static final String POLICY_PAP_HOST_NAME = "localhost";
private static final int POLICY_PAP_PORT = 6969;
private static final String POLICY_PAP_USER = "policyadmin";
private static final String POLICY_PAP_PASSWORD = "zb!XztG34";
/*-
* ============LICENSE_START=======================================================
- * Copyright (C) 2019-2021 Nordix Foundation.
+ * Copyright (C) 2019-2021,2023 Nordix Foundation.
* Modifications Copyright (C) 2020 AT&T Inc.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
LifecycleApiForwarderParameters.class);
ParameterService.register(parameterGroup);
simulator.startLifecycycleApiSimulator();
- if (!NetworkUtil.isTcpPortOpen("0.0.0.0", 6969, 50, 200L)) {
+ if (!NetworkUtil.isTcpPortOpen("localhost", 6969, 50, 200L)) {
throw new IllegalStateException("cannot connect to port 6969");
}
}
{
"automationCompositionRuntimeParameters": {
"clientName": "policy-clamp-runtime-acm",
- "hostname": "0.0.0.0",
+ "hostname": "localhost",
"port": 6969,
"useHttps": false,
"userName": "policyadmin",
{
"apiParameters": {
"clientName": "policy-api",
- "hostname": "0.0.0.0",
+ "hostname": "localhost",
"port": 6969,
"useHttps": false,
"userName": "policyadmin",
},
"papParameters": {
"clientName": "policy-pap",
- "hostname": "0.0.0.0",
+ "hostname": "localhost",
"port": 6969,
"useHttps": false,
"userName": "policyadmin",
{
- "host": "0.0.0.0",
+ "host": "localhost",
"port": 6969,
"userName": "policyadmin",
"password": "zb!XztG34"