Create an external web server building RESTful API 01/8501/1
authorhalil.cakal <halil.cakal@est.tech>
Fri, 27 May 2022 14:04:29 +0000 (15:04 +0100)
committerhalil.cakal <halil.cakal@est.tech>
Wed, 8 Jun 2022 14:08:35 +0000 (15:08 +0100)
commit5ce1086464f022cfbc673062d3b9a1ec6ed3c7dc
tree74ae5174bfbafefc68b552518603e27b1daf44fa
parent3f519ca2fddb18c6e5a81fc800b9fefc4d3f8f69
Create an external web server building RESTful API

-A Python server building REST supports HTTP/HTTPS protocols
-Reviewed for patchset2
-patch set 3 : Create a secondary docker image and move external server
inside in it
-patch set 4 : Create Open API specs and move base API operations inside
in it, change json schema of the test_message to a basic json file
-patch set 5 : Implement set|reset forced response and forced delay
including negative unit tests as well as get API for a single policy.
Code review cleanup
-patch set 6 : Change API URL of admin functions, add a test case to
check if an request lasts for an amount of time, and  clean-up.
-patch set 7 : Remove container-tag.yaml.
-patch set 8 : Make forced delay test case parametric function which
expected delay time in seconds can be passed in.
-patch set 9 : Fix typo.
-patch set 10: Generate my own certificate and key.

Issue-ID: NONRTRIC-755
Change-Id: I0ee622ad82e18639e4eb2d4a02863904f9bf3201
Signed-off-by: halil.cakal <halil.cakal@est.tech>
19 files changed:
near-rt-ric-simulator/test/EXT_SRV/Dockerfile [new file with mode: 0644]
near-rt-ric-simulator/test/EXT_SRV/api/EXT_SRV_api.yaml [new file with mode: 0644]
near-rt-ric-simulator/test/EXT_SRV/certificate/cert.crt [new file with mode: 0644]
near-rt-ric-simulator/test/EXT_SRV/certificate/generate_cert_and_key.sh [new file with mode: 0644]
near-rt-ric-simulator/test/EXT_SRV/certificate/key.crt [new file with mode: 0644]
near-rt-ric-simulator/test/EXT_SRV/certificate/pass [new file with mode: 0644]
near-rt-ric-simulator/test/EXT_SRV/nginx.conf [new file with mode: 0644]
near-rt-ric-simulator/test/EXT_SRV/src/main.py [new file with mode: 0644]
near-rt-ric-simulator/test/EXT_SRV/src/maincommon.py [new file with mode: 0644]
near-rt-ric-simulator/test/EXT_SRV/src/payload_logging.py [new file with mode: 0644]
near-rt-ric-simulator/test/EXT_SRV/src/server.py [new file with mode: 0644]
near-rt-ric-simulator/test/EXT_SRV/src/start.sh [new file with mode: 0644]
near-rt-ric-simulator/test/EXT_SRV/src/var_declaration.py [new file with mode: 0644]
near-rt-ric-simulator/test/EXT_SRV_TEST/basic_test.sh [new file with mode: 0644]
near-rt-ric-simulator/test/EXT_SRV_TEST/build_and_start.sh [new file with mode: 0644]
near-rt-ric-simulator/test/EXT_SRV_TEST/jsonfiles/alpha_policy.json [new file with mode: 0644]
near-rt-ric-simulator/test/EXT_SRV_TEST/jsonfiles/beta_policy.json [new file with mode: 0644]
near-rt-ric-simulator/test/EXT_SRV_TEST/jsonfiles/forced_response.json [new file with mode: 0644]
near-rt-ric-simulator/test/common/elapse_time_curl.sh [new file with mode: 0644]