summaryrefslogtreecommitdiffstats
path: root/jjb/vswitchperf
AgeCommit message (Expand)AuthorFilesLines
2016-08-22Create project jobs for colorado branchFatih Degirmenci1-1/+9
2016-06-30Add Project Option to Throttle PropertyTrevor Bramwell1-0/+2
2016-06-15Tie all verify/merge/build to opnfv-build-ubuntuFatih Degirmenci1-2/+2
2016-01-12Update deprecated pollscm usageThanh Ha1-1/+2
2016-01-07Enable verify and merge jobs for stable/brahmaputra branchFatih Degirmenci1-5/+4
2016-01-05Vsperf CI: Fix setting of Python3 environmentRadek Zetik1-3/+1
2015-12-22CI: Modify jjb in releng to use vsperf build script for the nightly buildRadek Zetik1-8/+0
2015-12-19CI: Modify jjb in releng to use vsperf build script for the nightly buildRadek Zetik1-1/+13
2015-12-17Update vswitch perf jjb to use pod-params fileFatih Degirmenci1-45/+22
2015-12-07jjb: use default logrotate setting in all projectsRyota MIBU1-6/+0
2015-12-01jjb: add default logrotate to releng-defaults.yamlRyota MIBU1-12/+0
2015-12-01jjb: move project-style to releng-defaults.yamlRyota MIBU1-2/+0
2015-11-27jjb: move ssh wrappers to releng-defaults.yamlRyota MIBU1-12/+0
2015-11-27Move vswitchperf jobs to build server pool and enable concurrent buildsFatih Degirmenci1-22/+25
2015-10-18Do not run verify or merge jobs if changes are made to docs/**Aric Gardner1-0/+6
2015-10-14vswitchperf: add make clobber to all the jobsMaryam Tahhan1-0/+2
2015-10-13vswitchperf: add make clobberMaryam Tahhan1-0/+1
2015-04-08Fix {branch} parameter not foundThanh Ha1-2/+2
2015-03-26Tired, left in genesis as the project nameAric Gardner1-3/+3
2015-03-26Need to clone from http from ericsson serverAric Gardner1-0/+9
2015-03-26Back to ericsson nodeAric Gardner1-3/+3
2015-03-26Fix GIT_BASE for genesis and move vswitchperf to fuel nodeFatih Degirmenci1-1/+1
2015-03-23Move vswitchperf-verify job to Ericsson serverFatih Degirmenci2-1/+1
2015-03-23Move vswitchperf jobs to fuel node (Debian7 with docker)Aric Gardner1-0/+3
2015-03-16JIRA: VSPERF-29 - Add build elements for JenkinsGene Snider1-12/+10
2015-03-06Add merge and verify jobs for all projects that lack said jobsAric Gardner1-1/+120
2015-03-01Remove unnecessary CFG filesThanh Ha1-3/+0
2015-02-18Inital commit for jenkins job builderAric Gardner3-0/+69
class="n">assert_called_with(cmd) @mock.patch('functest.cli.commands.cli_testcase.os.path.isfile', return_value=True) @mock.patch('functest.cli.commands.cli_testcase.ft_utils.execute_command') def test_prepare_missing_status(self, mock_ft_utils, mock_os): with mock.patch('__builtin__.raw_input', return_value="y"), \ mock.patch('functest.cli.commands.cli_testcase.os.remove') \ as mock_os_remove: cmd = ("python %s/functest/ci/prepare_env.py start" % CONST.dir_repo_functest) self.cli_environ.prepare() mock_os_remove.assert_called_once_with(CONST.env_active) mock_ft_utils.assert_called_with(cmd) def _test_show_missing_env_var(self, var, *args): if var == 'INSTALLER_TYPE': CONST.INSTALLER_TYPE = None reg_string = "| INSTALLER: Unknown, \S+\s*|" elif var == 'INSTALLER_IP': CONST.INSTALLER_IP = None reg_string = "| INSTALLER: \S+, Unknown\s*|" elif var == 'SCENARIO': CONST.DEPLOY_SCENARIO = None reg_string = "| SCENARIO: Unknown\s*|" elif var == 'NODE': CONST.NODE_NAME = None reg_string = "| POD: Unknown\s*|" elif var == 'BUILD_TAG': CONST.BUILD_TAG = None reg_string = "| BUILD TAG: None|" elif var == 'DEBUG': CONST.CI_DEBUG = None reg_string = "| DEBUG FLAG: false\s*|" elif var == 'STATUS': reg_string = "| STATUS: not ready\s*|" with mock.patch('functest.cli.commands.cli_env.click.echo') \ as mock_click_echo: self.cli_environ.show() mock_click_echo.assert_called_with(test_utils. RegexMatch(reg_string)) @mock.patch('functest.cli.commands.cli_env.git.Repo') def test_show_missing_ci_installer_type(self, *args): self._test_show_missing_env_var('INSTALLER_TYPE', *args) @mock.patch('functest.cli.commands.cli_env.git.Repo') def test_show_missing_ci_installer_ip(self, *args): self._test_show_missing_env_var('INSTALLER_IP', *args) @mock.patch('functest.cli.commands.cli_env.git.Repo') def test_show_missing_ci_scenario(self, *args): self._test_show_missing_env_var('SCENARIO', *args) @mock.patch('functest.cli.commands.cli_env.git.Repo') def test_show_missing_ci_node(self, *args): self._test_show_missing_env_var('NODE', *args) @mock.patch('functest.cli.commands.cli_env.git.Repo') def test_show_missing_ci_build_tag(self, *args): self._test_show_missing_env_var('BUILD_TAG', *args) @mock.patch('functest.cli.commands.cli_env.git.Repo') def test_show_missing_ci_debug(self, *args): self._test_show_missing_env_var('DEBUG', *args) @mock.patch('functest.cli.commands.cli_env.git.Repo') @mock.patch('functest.cli.commands.cli_env.os.path.isfile', return_value=False) def test_show_missing_environment(self, *args): self._test_show_missing_env_var('STATUS', *args) @mock.patch('functest.cli.commands.cli_env.os.path.exists', return_value=False) def test_show_missing_git_repo_dir(self, *args): CONST.dir_repo_functest = None self.assertRaises(NoSuchPathError, lambda: self.cli_environ.show()) @mock.patch('functest.cli.commands.cli_env.click.echo') @mock.patch('functest.cli.commands.cli_env.os.path.isfile', return_value=True) def test_status_environment_present(self, mock_path, mock_click_echo): self.assertEqual(self.cli_environ.status(), 0) mock_click_echo.assert_called_with("Functest environment" " ready to run tests.\n") @mock.patch('functest.cli.commands.cli_env.click.echo') @mock.patch('functest.cli.commands.cli_env.os.path.isfile', return_value=False) def test_status_environment_absent(self, mock_path, mock_click_echo): self.assertEqual(self.cli_environ.status(), 1) mock_click_echo.assert_called_with("Functest environment" " is not installed.\n") if __name__ == "__main__": unittest.main(verbosity=2)