Issue with Amulet testing
Suchitra Venugopal1
suchvenu at in.ibm.com
Thu Mar 2 11:15:03 UTC 2017
Hi
I am trying to run the following amulet test on my charm where it
verifies a particular url.
self.assertTrue(self.d.deployed)
unit = self.d.sentry['ibm-mobilefirst-server'][0]
url = 'http://%s:9081/appcenterconsole' %
unit.info['public-address']
https_url = 'https://%s:9443/appcenterconsole' %
unit.info['public-address']
print('Url is %s' % url)
response = requests.get(url, verify=False)
response = requests.get(https_url, verify=False)
# Raise an exception if the url was not a valid web page.
response.raise_for_status()
While running amulet, it throws an error as "InsecureRequestWarning:
Unverified HTTPS request is being made". Can anyone please let me know how
to resolve this ?
E2017-03-02 01:00:38 Starting deployment of lxd-testing:admin/default
2017-03-02 01:00:38 Deploying applications...
2017-03-02 01:00:43 Config specifies num units for subordinate:
ibm-mobilefirst-server
2017-03-02 01:00:44 Adding relations...
2017-03-02 01:00:44 Deployment complete in 6.19 seconds
Url is http://<ip>:9081/appcenterconsole
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:794:
InsecureRequestWarning: Unverified HTTPS request is being made. Adding
certificate verification is strongly advised. See:
https://urllib3.readthedocs.org/en/latest/security.html
InsecureRequestWarning)
I tried to install some additional packages as mentioned in the link
https://urllib3.readthedocs.org/en/latest/security.html. But that doesn't
help.
Suchitra Venugopal
Project Manager
Juju Charms
Phone: +91-80-494-93581
Mobile: +91-966-312-6000
E-mail: suchvenu at in.ibm.com
Product Transformation Centre
INDIA SOFTWARE LABS, IBM SYSTEMS,
EGL C, 6th FLOOR, BANGALORE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20170302/c8ae94ec/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 26994 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/juju/attachments/20170302/c8ae94ec/attachment.jpe>
More information about the Juju
mailing list