diff options
author | kurczews <krzysztof.kurczewski@nokia.com> | 2019-04-08 12:12:46 +0200 |
---|---|---|
committer | kurczews <krzysztof.kurczewski@nokia.com> | 2019-04-08 12:25:45 +0200 |
commit | 69d689ac904c2874beed030e1c7ff3e5e7e4c78c (patch) | |
tree | 70ff68ada5b9a9efbe267c39cbe21e7432d6829b /tests/dcaegen2/prh-testcases | |
parent | 291ef2740ad345ab61fa13b0d13cf62dae4cfd82 (diff) |
Fix AAI simulator
Issue-ID: INT-989
Change-Id: I533d64e04eb57929357483a60e8b1208905e3a0e
Signed-off-by: kurczews <krzysztof.kurczewski@nokia.com>
Diffstat (limited to 'tests/dcaegen2/prh-testcases')
-rw-r--r-- | tests/dcaegen2/prh-testcases/resources/simulator/AAI.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/dcaegen2/prh-testcases/resources/simulator/AAI.py b/tests/dcaegen2/prh-testcases/resources/simulator/AAI.py index 27883655..baa81651 100644 --- a/tests/dcaegen2/prh-testcases/resources/simulator/AAI.py +++ b/tests/dcaegen2/prh-testcases/resources/simulator/AAI.py @@ -29,10 +29,10 @@ class AAISetup(BaseHTTPRequestHandler): def do_PUT(self): logger.info('AAI SIM Setup Put execution') - if re.search('/set_pnf', self.path): + if re.search('/set_pnf$', self.path): # to avoid regex collisions '$' must be added global pnf_name content_length = self._get_content_length() - pnf_name = self.rfile.read(content_length) + pnf_name = self.rfile.read(content_length).decode() _mark_response_as_http_ok(self) if re.search('/set_pnf_entry',self.path): @@ -94,4 +94,4 @@ def _main_(handler_class=AAIHandler, protocol="HTTP/1.0"): if __name__ == '__main__': - _main_() + _main_()
\ No newline at end of file |