Skip to content
Snippets Groups Projects
Commit 3aeb2e5c authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Hackfest MockOSM:

- updated default IP address
- corrected error retrieval message
parent 7ad1d40f
No related branches found
No related tags found
2 merge requests!54Release 2.0.0,!43CI pipeline and multiple module fixes
...@@ -73,7 +73,7 @@ class WimconnectorIETFL2VPN(SdnConnectorBase): ...@@ -73,7 +73,7 @@ class WimconnectorIETFL2VPN(SdnConnectorBase):
response = requests.get(endpoint, auth=self.auth) response = requests.get(endpoint, auth=self.auth)
http_code = response.status_code http_code = response.status_code
except requests.exceptions.RequestException as e: except requests.exceptions.RequestException as e:
raise SdnConnectorError(e.message, http_code=503) raise SdnConnectorError(e.response, http_code=503)
if http_code != 200: if http_code != 200:
raise SdnConnectorError("Failed while authenticating", http_code=http_code) raise SdnConnectorError("Failed while authenticating", http_code=http_code)
......
...@@ -18,7 +18,7 @@ from .MockOSM import MockOSM ...@@ -18,7 +18,7 @@ from .MockOSM import MockOSM
LOGGER = logging.getLogger(__name__) LOGGER = logging.getLogger(__name__)
LOGGER.setLevel(logging.DEBUG) LOGGER.setLevel(logging.DEBUG)
WIM_URL = 'http://10.0.2.15:80' WIM_URL = 'http://10.0.2.10:80'
WIM_USERNAME = 'admin' WIM_USERNAME = 'admin'
WIM_PASSWORD = 'admin' WIM_PASSWORD = 'admin'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment