Ensure creators' constructors cannot raise exceptions. 55/34855/1
authorspisarski <s.pisarski@cablelabs.com>
Tue, 16 May 2017 19:57:26 +0000 (13:57 -0600)
committerspisarski <s.pisarski@cablelabs.com>
Tue, 16 May 2017 19:57:26 +0000 (13:57 -0600)
commit6fd1af82cd7bf41274c4e1620006004b79628759
treee60a9f18c777892f5fe3cb0a8b279cc99b847e20
parentf57080bd2a6412c8fdc50c68111e780f6c36a360
Ensure creators' constructors cannot raise exceptions.

While creating unit tests for vPing that is using SNAPS, exceptions can
be raised when retrieving their respective OpenStack clients with
incorrect credentials. Moved client retrieval to the create() method
which one should expect exceptions to be raised.

JIRA: SNAPS-81

Change-Id: Id8e4279f60b97704b25a89c6312dcf2ebdc3f459
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
snaps/openstack/create_flavor.py
snaps/openstack/create_image.py
snaps/openstack/create_instance.py
snaps/openstack/create_keypairs.py
snaps/openstack/create_network.py
snaps/openstack/create_project.py
snaps/openstack/create_router.py
snaps/openstack/create_security_group.py
snaps/openstack/create_user.py