Update VID in docker-compose to 4.0-STAGING-latest
Added AAI simulator for new enrichCloudConfigurationWithCloudOwner
feature:
- Add AAI response
- Update Dockerfile with FROM python, and parametrized config
- Add aai-simulator to docker-compose file
BTW, modified SO.py to log to stdio. This enable running `docker logs
so-simulator` to see the rolling output.
Issue-ID: VID-453
Change-Id: Icd1ee2dd51d404261c3e0484b22a4d32b8e4aad8
Signed-off-by: Ittay Stern <ittay.stern@att.com>
diff --git a/tests/vid/resources/simulators/SO.py b/tests/vid/resources/simulators/SO.py
index c119939..fa481b3 100644
--- a/tests/vid/resources/simulators/SO.py
+++ b/tests/vid/resources/simulators/SO.py
@@ -103,7 +103,7 @@
def init_so_simulator():
expected_so_requests = JsonFileToDictReader.read_expected_test_data(argv[1])
expected_so_responses = JsonFileToDictReader.read_expected_test_data(argv[2])
- logging.basicConfig(filename='output.log', level=logging.INFO)
+ logging.basicConfig(level=logging.INFO)
handler = partial(SOHandler, expected_so_requests, expected_so_responses)
handler.protocol_version = "HTTP/1.0"
httpd = HTTPServer(('', DEFAULT_PORT), handler)