summaryrefslogtreecommitdiffstats
path: root/docs/submodules/sdnvpn
AgeCommit message (Expand)AuthorFilesLines
2017-09-14Update git submodulestomsou1-0/+0
2017-09-12Update git submodulestomsou1-0/+0
2017-09-11Update git submodulestomsou1-0/+0
2017-09-07Update git submodulesjose.lausuch1-0/+0
2017-08-28Update git submodulesTim Irnich1-0/+0
2017-08-28Update git submodulesTim Irnich1-0/+0
2017-08-28Update git submodulestomsou1-0/+0
2017-08-14Update git submodulesTim Irnich1-0/+0
2017-08-10Update git submodulesCédric Ollivier1-0/+0
2017-07-26Update git submodulespanageo21-0/+0
2017-07-24Update git submodulesTim Irnich1-0/+0
2017-07-24Update git submodulestomsou1-0/+0
2017-07-13Update git submodulesNikolas Hermanns1-0/+0
2017-07-12Update git submodulesTim Irnich1-0/+0
2017-07-12Update git submodulesNikolas Hermanns1-0/+0
2017-06-30Update git submodulesLinda Wang1-0/+0
2017-06-29Update git submodulesNikolas Hermanns1-0/+0
2017-06-29Update git submodulesNikolas Hermanns1-0/+0
2017-06-29Update git submodulesNikolas Hermanns1-0/+0
2017-06-26Update git submodulesTim Irnich1-0/+0
2017-06-26Update git submodulesTim Irnich1-0/+0
2017-06-26Update git submodulesCédric Ollivier1-0/+0
2017-06-01Update git submodulestomsou1-0/+0
2017-05-29Update git submodulesNikolas Hermanns1-0/+0
2017-05-29Update git submodulestomsou1-0/+0
2017-05-23Update git submoduleshelenyao1-0/+0
2017-05-19Update git submodulesJose Lausuch1-0/+0
2017-05-17Update git submodulesLinda Wang1-0/+0
2017-05-11Update git submodulestomsou1-0/+0
2017-05-04Update git submodulesNikolas Hermanns1-0/+0
2017-05-04Update git submodulesNikolas Hermanns1-0/+0
2017-05-04Update git submodulesNikolas Hermanns1-0/+0
2017-05-04Update git submodulesNikolas Hermanns1-0/+0
2017-05-04Update git submodulesNikolas Hermanns1-0/+0
2017-05-03Update git submodulesNikolas Hermanns1-0/+0
2017-05-03Update git submodulesNikolas Hermanns1-0/+0
2017-05-03Update git submodulestomsou1-0/+0
2017-04-27Update git submodulesNikolas Hermanns1-0/+0
2017-04-27Update git submodulesNikolas Hermanns1-0/+0
2017-04-06Update git submodulesNikolas Hermanns1-0/+0
2017-04-05Update git submodulesNikolas Hermanns1-0/+0
2017-04-04Update git submodulesNikolas Hermanns1-0/+0
2017-04-03Update git submodulesNikolas Hermanns1-0/+0
2017-04-03Update git submodulesNikolas Hermanns1-0/+0
2017-04-03Update git submodulesNikolas Hermanns1-0/+0
2017-03-31Update git submodulesNikolas Hermanns1-0/+0
2017-03-31Update git submodulesNikolas Hermanns1-0/+0
2017-03-30Update git submodulestomsou1-0/+0
2017-03-29Update git submodulesJose Lausuch1-0/+0
2017-03-29Update git submodulesNikolas Hermanns1-0/+0
an>client) mock_logger_debug.assert_called_once_with("Getting images...") self.assertDictEqual(resp, {'images': {}}) @mock.patch('functest.utils.openstack_snapshot.logger.debug') def test_get_volumes(self, mock_logger_debug): with mock.patch('functest.utils.openstack_snapshot.os_utils' '.get_volumes', return_value=self.test_list): resp = openstack_snapshot.get_volumes(self.client) mock_logger_debug.assert_called_once_with("Getting volumes...") self.assertDictEqual(resp, {'volumes': self.update_list}) @mock.patch('functest.utils.openstack_snapshot.logger.debug') def test_get_volumes_missing_volumes(self, mock_logger_debug): with mock.patch('functest.utils.openstack_snapshot.os_utils' '.get_volumes', return_value=[]): resp = openstack_snapshot.get_volumes(self.client) mock_logger_debug.assert_called_once_with("Getting volumes...") self.assertDictEqual(resp, {'volumes': {}}) @mock.patch('functest.utils.openstack_snapshot.logger.debug') def test_get_networks(self, mock_logger_debug): with mock.patch('functest.utils.openstack_snapshot.os_utils' '.get_network_list', return_value=self.test_dict_list): resp = openstack_snapshot.get_networks(self.client) mock_logger_debug.assert_called_once_with("Getting networks") self.assertDictEqual(resp, {'networks': self.update_list}) @mock.patch('functest.utils.openstack_snapshot.logger.debug') def test_get_networks_missing_networks(self, mock_logger_debug): with mock.patch('functest.utils.openstack_snapshot.os_utils' '.get_network_list', return_value=[]): resp = openstack_snapshot.get_networks(self.client) mock_logger_debug.assert_called_once_with("Getting networks") self.assertDictEqual(resp, {'networks': {}}) @mock.patch('functest.utils.openstack_snapshot.logger.debug') def test_get_routers(self, mock_logger_debug): with mock.patch('functest.utils.openstack_snapshot.os_utils' '.get_router_list', return_value=self.test_dict_list): resp = openstack_snapshot.get_routers(self.client) mock_logger_debug.assert_called_once_with("Getting routers") self.assertDictEqual(resp, {'routers': self.update_list}) @mock.patch('functest.utils.openstack_snapshot.logger.debug') def test_get_routers_missing_routers(self, mock_logger_debug): with mock.patch('functest.utils.openstack_snapshot.os_utils' '.get_router_list', return_value=[]): resp = openstack_snapshot.get_routers(self.client) mock_logger_debug.assert_called_once_with("Getting routers") self.assertDictEqual(resp, {'routers': {}}) @mock.patch('functest.utils.openstack_snapshot.logger.debug') def test_get_secgroups(self, mock_logger_debug): with mock.patch('functest.utils.openstack_snapshot.os_utils' '.get_security_groups', return_value=self.test_dict_list): resp = openstack_snapshot.get_security_groups(self.client) mock_logger_debug.assert_called_once_with("Getting Security " "groups...") self.assertDictEqual(resp, {'secgroups': self.update_list}) @mock.patch('functest.utils.openstack_snapshot.logger.debug') def test_get_secgroups_missing_secgroups(self, mock_logger_debug): with mock.patch('functest.utils.openstack_snapshot.os_utils' '.get_security_groups', return_value=[]): resp = openstack_snapshot.get_security_groups(self.client) mock_logger_debug.assert_called_once_with("Getting Security " "groups...") self.assertDictEqual(resp, {'secgroups': {}}) @mock.patch('functest.utils.openstack_snapshot.logger.debug') def test_get_floatingips(self, mock_logger_debug): with mock.patch('functest.utils.openstack_snapshot.os_utils' '.get_floating_ips', return_value=self.test_list): resp = openstack_snapshot.get_floatinips(self.client) mock_logger_debug.assert_called_once_with("Getting Floating " "IPs...") self.assertDictEqual(resp, {'floatingips': self.update_floatingips}) @mock.patch('functest.utils.openstack_snapshot.logger.debug') def test_get_floatingips_missing_floatingips(self, mock_logger_debug): with mock.patch('functest.utils.openstack_snapshot.os_utils' '.get_floating_ips', return_value=[]): resp = openstack_snapshot.get_floatinips(self.client) mock_logger_debug.assert_called_once_with("Getting Floating " "IPs...") self.assertDictEqual(resp, {'floatingips': {}}) @mock.patch('functest.utils.openstack_snapshot.logger.debug') def test_get_users(self, mock_logger_debug): with mock.patch('functest.utils.openstack_snapshot.os_utils' '.get_users', return_value=self.test_list): resp = openstack_snapshot.get_users(self.client) mock_logger_debug.assert_called_once_with("Getting users...") self.assertDictEqual(resp, {'users': self.update_list}) @mock.patch('functest.utils.openstack_snapshot.logger.debug') def test_get_users_missing_users(self, mock_logger_debug): with mock.patch('functest.utils.openstack_snapshot.os_utils' '.get_users', return_value=[]): resp = openstack_snapshot.get_users(self.client) mock_logger_debug.assert_called_once_with("Getting users...") self.assertDictEqual(resp, {'users': {}}) @mock.patch('functest.utils.openstack_snapshot.logger.debug') def test_get_tenants(self, mock_logger_debug): with mock.patch('functest.utils.openstack_snapshot.os_utils' '.get_tenants', return_value=self.test_list): resp = openstack_snapshot.get_tenants(self.client) mock_logger_debug.assert_called_once_with("Getting tenants...") self.assertDictEqual(resp, {'tenants': self.update_list}) @mock.patch('functest.utils.openstack_snapshot.logger.debug') def test_get_tenants_missing_tenants(self, mock_logger_debug): with mock.patch('functest.utils.openstack_snapshot.os_utils' '.get_tenants', return_value=[]): resp = openstack_snapshot.get_tenants(self.client) mock_logger_debug.assert_called_once_with("Getting tenants...") self.assertDictEqual(resp, {'tenants': {}}) @mock.patch('functest.utils.openstack_snapshot.os_utils.get_cinder_client') @mock.patch('functest.utils.openstack_snapshot.os_utils' '.get_keystone_client') @mock.patch('functest.utils.openstack_snapshot.os_utils' '.get_neutron_client') @mock.patch('functest.utils.openstack_snapshot.os_utils.get_nova_client') @mock.patch('functest.utils.openstack_snapshot.os_utils.check_credentials') @mock.patch('functest.utils.openstack_snapshot.logger.info') @mock.patch('functest.utils.openstack_snapshot.logger.debug') def test_main_default(self, mock_logger_debug, mock_logger_info, mock_creds, mock_nova, mock_neutron, mock_keystone, mock_cinder): with mock.patch('functest.utils.openstack_snapshot.get_instances', return_value=self.update_list), \ mock.patch('functest.utils.openstack_snapshot.get_images', return_value=self.update_list), \ mock.patch('functest.utils.openstack_snapshot.get_images', return_value=self.update_list), \ mock.patch('functest.utils.openstack_snapshot.get_volumes', return_value=self.update_list), \ mock.patch('functest.utils.openstack_snapshot.get_networks', return_value=self.update_list), \ mock.patch('functest.utils.openstack_snapshot.get_routers', return_value=self.update_list), \ mock.patch('functest.utils.openstack_snapshot.get_security_groups', return_value=self.update_list), \ mock.patch('functest.utils.openstack_snapshot.get_floatinips', return_value=self.update_floatingips), \ mock.patch('functest.utils.openstack_snapshot.get_users', return_value=self.update_list), \ mock.patch('functest.utils.openstack_snapshot.get_tenants', return_value=self.update_list), \ mock.patch('__builtin__.open', mock.mock_open()) as m: openstack_snapshot.main() mock_logger_info.assert_called_once_with("Generating OpenStack " "snapshot...") m.assert_called_once_with(openstack_snapshot.OS_SNAPSHOT_FILE, 'w+') mock_logger_debug.assert_any_call("NOTE: These objects will " "NOT be deleted after " + "running the test.") if __name__ == "__main__": unittest.main(verbosity=2)