summaryrefslogtreecommitdiffstats
path: root/ms/py-executor/resource_resolution
diff options
context:
space:
mode:
authorSingal, Kapil (ks220y) <ks220y@att.com>2022-08-07 20:20:06 -0400
committerKAPIL SINGAL <ks220y@att.com>2022-08-22 19:30:33 +0000
commitedd7b5679350130e8cf5b2de01140dc09d01a80c (patch)
tree246b4427ebd76dc378e22ea94b5cd2cbd494c377 /ms/py-executor/resource_resolution
parentcc2dbf6d08840ba0e105e44022568d9afd130273 (diff)
Refactoring to support H2 DB for local run
Updating pom.xml to remove scope test for H2 DB Updating H2DB version to 1.4.200 Updating application-dev.properties DB properties to H2 DB Issue-ID: CCSDK-3740 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com> Change-Id: I57f90a0b0788510ab736d2f9dce28a0cbf3da12d
Diffstat (limited to 'ms/py-executor/resource_resolution')
-rw-r--r--ms/py-executor/resource_resolution/README.md4
-rw-r--r--ms/py-executor/resource_resolution/tests/http_client_test.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/ms/py-executor/resource_resolution/README.md b/ms/py-executor/resource_resolution/README.md
index 3920338ae..275073583 100644
--- a/ms/py-executor/resource_resolution/README.md
+++ b/ms/py-executor/resource_resolution/README.md
@@ -150,7 +150,7 @@ from resource_resolution.resource_resolution import ResourceResolution
if __name__ == "__main__":
# If you want to use only HTTP you don't have to use context manager
r = ResourceResolution(
- http_server_port=8081,
+ http_server_port=8080,
http_auth_user="ccsdkapps",
http_auth_pass="ccsdkapps",
http_use_tls=False
@@ -177,4 +177,4 @@ if __name__ == "__main__":
resolution_key="test",
)
assert another_template.result == "another_value"
-``` \ No newline at end of file
+```
diff --git a/ms/py-executor/resource_resolution/tests/http_client_test.py b/ms/py-executor/resource_resolution/tests/http_client_test.py
index 2279fde7a..2c38457df 100644
--- a/ms/py-executor/resource_resolution/tests/http_client_test.py
+++ b/ms/py-executor/resource_resolution/tests/http_client_test.py
@@ -30,9 +30,9 @@ def test_http_client(request_mock):
assert c.protocol == "http"
assert c.url == "http://127.0.0.1:8080/api/v1"
- c = Client("127.0.0.1", 8081, use_ssl=True)
+ c = Client("127.0.0.1", 8080, use_ssl=True)
assert c.protocol == "https"
- assert c.url == "https://127.0.0.1:8081/api/v1"
+ assert c.url == "https://127.0.0.1:8080/api/v1"
c.send_request("GET", "something")
request_mock.assert_called_once_with(method="GET", url=f"{c.url}/something", verify=False, auth=None)