Пример #1
0
 def test_endpoint_list(self, mock):
     '''
     Test if it return a list of available endpoints
     (keystone endpoints-list)
     '''
     self.assertDictEqual(keystone.endpoint_list(profile='openstack1'),
                          {'007': {'adminurl': 'adminurl', 'id': '007',
                                   'internalurl': 'internalurl',
                                   'publicurl': 'publicurl',
                                   'region': 'region', 'service_id': '117'}})
Пример #2
0
 def test_endpoint_list(self, mock):
     '''
     Test if it return a list of available endpoints
     (keystone endpoints-list)
     '''
     self.assertDictEqual(keystone.endpoint_list(profile='openstack1'),
                          {'007': {'adminurl': 'adminurl', 'id': '007',
                                   'internalurl': 'internalurl',
                                   'publicurl': 'publicurl',
                                   'region': 'region', 'service_id': '117'}})
Пример #3
0
 def test_endpoint_list(self):
     """
     Test if it return a list of available endpoints
     (keystone endpoints-list)
     """
     self.assertDictEqual(
         keystone.endpoint_list(profile="openstack1"),
         {
             "007": {
                 "adminurl": "adminurl",
                 "id": "007",
                 "internalurl": "internalurl",
                 "publicurl": "publicurl",
                 "region": "RegionOne",
                 "service_id": "117",
             }
         },
     )