Beispiel #1
0
    def setUp(self):
        os_creds = OSCreds(
            username='******', password='******',
            auth_url='http://foo.com:5000/v3', project_name='bar')

        with mock.patch('functest.opnfv_tests.openstack.tempest.tempest.'
                        'conf_utils.get_verifier_id',
                        return_value='test_deploy_id'), \
            mock.patch('functest.opnfv_tests.openstack.tempest.tempest.'
                       'conf_utils.get_verifier_deployment_id',
                       return_value='test_deploy_id'), \
            mock.patch('functest.opnfv_tests.openstack.tempest.tempest.'
                       'conf_utils.get_verifier_repo_dir',
                       return_value='test_verifier_repo_dir'), \
            mock.patch('functest.opnfv_tests.openstack.tempest.tempest.'
                       'conf_utils.get_verifier_deployment_dir',
                       return_value='test_verifier_deploy_dir'), \
            mock.patch('snaps.openstack.tests.openstack_tests.get_credentials',
                       return_value=os_creds):
            self.tempestcommon = tempest.TempestCommon()
            self.tempestsmoke_serial = tempest.TempestSmokeSerial()
            self.tempestsmoke_parallel = tempest.TempestSmokeParallel()
            self.tempestfull_parallel = tempest.TempestFullParallel()
            self.tempestcustom = tempest.TempestCustom()
            self.tempestdefcore = tempest.TempestDefcore()
Beispiel #2
0
 def setUp(self):
     with mock.patch('functest.opnfv_tests.openstack.tempest.tempest.'
                     'conf_utils.get_verifier_id',
                     return_value='test_deploy_id'), \
         mock.patch('functest.opnfv_tests.openstack.tempest.tempest.'
                    'conf_utils.get_verifier_deployment_id',
                    return_value='test_deploy_id'), \
         mock.patch('functest.opnfv_tests.openstack.tempest.tempest.'
                    'conf_utils.get_verifier_repo_dir',
                    return_value='test_verifier_repo_dir'), \
         mock.patch('functest.opnfv_tests.openstack.tempest.tempest.'
                    'conf_utils.get_verifier_deployment_dir',
                    return_value='test_verifier_deploy_dir'):
         self.tempestcommon = tempest.TempestCommon()
Beispiel #3
0
 def setUp(self):
     with mock.patch('functest.opnfv_tests.openstack.tempest.tempest.'
                     'conf_utils.get_verifier_id',
                     return_value='test_deploy_id'), \
             mock.patch('functest.opnfv_tests.openstack.tempest.tempest.'
                        'conf_utils.get_verifier_deployment_id',
                        return_value='test_deploy_id'), \
             mock.patch('functest.opnfv_tests.openstack.tempest.tempest.'
                        'conf_utils.get_verifier_repo_dir',
                        return_value='test_verifier_repo_dir'), \
             mock.patch('functest.opnfv_tests.openstack.tempest.tempest.'
                        'conf_utils.get_verifier_deployment_dir',
                        return_value='test_verifier_deploy_dir'), \
             mock.patch('os_client_config.make_shade'):
         self.tempestcommon = tempest.TempestCommon()
         self.tempestsmoke_serial = tempest.TempestSmokeSerial()
         self.tempestsmoke_parallel = tempest.TempestSmokeParallel()
         self.tempestfull_parallel = tempest.TempestFullParallel()
         self.tempestcustom = tempest.TempestCustom()
         self.tempestdefcore = tempest.TempestDefcore()
         self.tempestneutrontrunk = tempest.TempestNeutronTrunk()
Beispiel #4
0
 def setUp(self):
     with mock.patch('os_client_config.get_config'), \
             mock.patch('shade.OpenStackCloud'), \
             mock.patch('functest.core.tenantnetwork.NewProject'), \
             mock.patch('functest.opnfv_tests.openstack.rally.rally.'
                        'RallyBase.create_rally_deployment'), \
             mock.patch('functest.opnfv_tests.openstack.tempest.tempest.'
                        'TempestCommon.create_verifier'), \
             mock.patch('functest.opnfv_tests.openstack.tempest.tempest.'
                        'TempestCommon.get_verifier_id',
                        return_value='test_deploy_id'), \
             mock.patch('functest.opnfv_tests.openstack.rally.rally.'
                        'RallyBase.get_verifier_deployment_id',
                        return_value='test_deploy_id'), \
             mock.patch('functest.opnfv_tests.openstack.tempest.tempest.'
                        'TempestCommon.get_verifier_repo_dir',
                        return_value='test_verifier_repo_dir'), \
             mock.patch('functest.opnfv_tests.openstack.tempest.tempest.'
                        'TempestCommon.get_verifier_deployment_dir',
                        return_value='test_verifier_deploy_dir'), \
             mock.patch('os_client_config.make_shade'):
         self.tempestcommon = tempest.TempestCommon()
Beispiel #5
0
 def setUp(self):
     with mock.patch('functest.opnfv_tests.openstack.tempest.tempest.'
                     'conf_utils.get_verifier_id',
                     return_value='test_deploy_id'), \
         mock.patch('functest.opnfv_tests.openstack.tempest.tempest.'
                    'conf_utils.get_verifier_deployment_id',
                    return_value='test_deploy_id'), \
         mock.patch('functest.opnfv_tests.openstack.tempest.tempest.'
                    'conf_utils.get_verifier_repo_dir',
                    return_value='test_verifier_repo_dir'), \
         mock.patch('functest.opnfv_tests.openstack.tempest.tempest.'
                    'conf_utils.get_verifier_deployment_dir',
                    return_value='test_verifier_deploy_dir'):
         self.tempestcommon = tempest.TempestCommon()
         self.tempestsmoke_serial = tempest.TempestSmokeSerial()
         self.tempestsmoke_parallel = tempest.TempestSmokeParallel()
         self.tempestfull_parallel = tempest.TempestFullParallel()
         with mock.patch('functest.opnfv_tests.openstack.tempest.tempest.'
                         'conf_utils.install_verifier_ext'):
             self.tempestmultisite = tempest.TempestMultisite()
         self.tempestcustom = tempest.TempestCustom()
         self.tempestdefcore = tempest.TempestDefcore()