aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Expand)AuthorFilesLines
2016-08-18cuse: Remove vHost Cuse supportMartin Klozik3-9/+1
2016-07-26dpdk: Support of DPDK16.07-rc5 and newerMartin Klozik1-6/+7
2016-07-12ovs/ofctl: Fix validation method for complex flows.Antonio Fischetti1-0/+15
2016-07-11Merge "Enable BURST_MODE for l2fwd"Maryam Tahhan1-1/+37
2016-07-07rstp-stp: Add basic functions for stp/rstp enable on ovsChristian Trautman1-0/+31
2016-06-16src: update dpdk, ovs and qemu versionsMaryam Tahhan1-3/+3
2016-06-08Enable BURST_MODE for l2fwdMesut Ali Ergin1-1/+37
2016-05-12dpdk: Support of DPDK v16.04Martin Klozik1-10/+40
2016-05-11Merge "ovs: update to OVS 2.5"Maryam Tahhan1-1/+3
2016-05-11ovs: update to OVS 2.5Maryam Tahhan1-1/+3
2016-05-11qemu: add python path to configureMaryam Tahhan1-1/+1
2016-05-06dpdk: Support new way of DPDK configuration in ovs-vswitchdMartin Klozik3-165/+7
2016-05-04Merge "makefile: Remove obsolete copy operations"Maryam Tahhan2-12/+0
2016-05-04bugfix: Graceful shutdown of VM - improvementMartin Klozik1-5/+12
2016-04-29makefile: Remove obsolete copy operationsMartin Klozik2-12/+0
2016-04-27integration: Support of PVP and PVVP integration TCsMartin Klozik2-11/+11
2016-04-14sriov: Support of SRIOV and Qemu PCI passthroughMartin Klozik1-34/+22
2016-03-21bugfix: Fix errors related to removal of kernel modulesMartin Klozik1-2/+3
2016-03-21integration: Support of integration testcasesMartin Klozik1-0/+24
2016-03-12bugfix: Eliminate error and warning messagesMartin Klozik1-7/+2
2016-03-08dpdk: enable vfio_pci supportMaryam Tahhan1-113/+56
2016-02-16src: update make install for DPDKMaryam Tahhan1-1/+1
2016-02-03Add OVS tunnel encapsulation performance testDino Simeon Madarang1-3/+47
2016-01-26src: dpdk and ovs version update.Maryam Tahhan1-2/+2
2016-01-21bugfix: mount hugepages for PVP and PVVP scenariosMartin Klozik1-77/+1
2016-01-21Add testpmd as vswitch classRobert Wojciechowicz2-0/+115
2016-01-21testcase: scalability - configurable installation of flows to the vswitchMartin Klozik1-6/+28
2016-01-12vswitches: Remove datapath after stopping OVSDino Simeon Madarang2-0/+72
2016-01-07src: fix ovs and qemu versionMaryam Tahhan1-2/+2
2015-12-14bugfix: Support paths with user's home shortcutMartin Klozik1-1/+1
2015-12-02vnfs: configurable loopback application support inside VMMartin Klozik1-20/+0
2015-11-10Enable OVS master and DPDK 2.1Martin Klozik1-2/+2
2015-11-03bugfix of Vanilla OVS testing scenariosMartin Klozik2-4/+2
2015-10-29Fix Make, Make clean and when the src directories are clonedRadek Zetik8-13/+19
2015-10-28Stop OVS from generating misleading add-br errorsDino Simeon Madarang1-4/+10
2015-10-21Add Pylint to VSPERF commit gateMartin Klozik2-12/+9
2015-10-20Implement support of 'insmod' and 'modprobe' commands into ModuleManagerMartin Klozik1-2/+2
2015-10-07src: add appropriate build flags for OVS dpdkMaryam Tahhan1-0/+1
2015-10-07Enable PVVP deployment for DPDK Vhost User and Vhost CuseMartin Klozik2-23/+26
2015-10-07The 'make' creates all required variants of vSwitchRadek Zetik6-11/+109
2015-09-09Add DNAT/SNAT supportGene Snider1-10/+218
2015-09-01src/dpdk: Rebind DPDK ports to the original driverMaryam Tahhan1-3/+32
2015-08-25vnfs: Enable PVP using vhost-cuseDino Simeon Madarang1-0/+3
2015-08-18vnfs: Enable PVP using vhost-userDino Simeon Madarang2-2/+4
2015-08-12Merge "src: Add QEMU makefile"Maryam Tahhan3-0/+86
2015-08-06Vanilla OVS support implementationMichal Weglicki2-29/+29
2015-08-05src/ovs: Add support for building vanilla OVS with kernel moduleMartin Klozik2-8/+22
2015-08-05src/dpdk: Enable building of vhost-user in src/dpdk.Martin Klozik2-3/+11
2015-08-04src: Add QEMU makefileDino Simeon Madarang3-0/+86
2015-07-27testcase: Add frame modification configBilly O'Mahony1-1/+1
an class="s2">"%s/releng/utils/fetch_os_creds.sh -d %s -i %s -a %s" % (CONST.dir_repos, self.openstack_creds, installer_type, installer_ip)) self.cli_os.openstack_creds = self.openstack_creds self.cli_os.fetch_credentials() mock_click_echo.assert_any_call("The environment variable " "'INSTALLER_TYPE' is not" "defined. Please export it") mock_click_echo.assert_any_call("Fetching credentials from " "installer node '%s' with " "IP=%s.." % (installer_type, installer_ip)) mock_ftutils_execute.assert_called_once_with(cmd, verbose=False) @mock.patch('functest.cli.commands.cli_os.ft_utils.execute_command') @mock.patch('functest.cli.commands.cli_os.os.path.isfile', return_value=False) @mock.patch('functest.cli.commands.cli_os.click.echo') def test_fetch_credentials_missing_installer_ip(self, mock_click_echo, mock_os_path, mock_ftutils_execute): installer_type = self.installer_type installer_ip = None CONST.INSTALLER_TYPE = installer_type CONST.INSTALLER_IP = installer_ip cmd = ("%s/releng/utils/fetch_os_creds.sh -d %s -i %s -a %s" % (CONST.dir_repos, self.openstack_creds, installer_type, installer_ip)) self.cli_os.openstack_creds = self.openstack_creds self.cli_os.fetch_credentials() mock_click_echo.assert_any_call("The environment variable " "'INSTALLER_IP' is not" "defined. Please export it") mock_click_echo.assert_any_call("Fetching credentials from " "installer node '%s' with " "IP=%s.." % (installer_type, installer_ip)) mock_ftutils_execute.assert_called_once_with(cmd, verbose=False) @mock.patch('functest.cli.commands.cli_os.ft_utils.execute_command') def test_check(self, mock_ftutils_execute): with mock.patch.object(self.cli_os, 'ping_endpoint'): CONST.dir_repo_functest = self.dir_repo_functest cmd = CONST.dir_repo_functest + "/functest/ci/check_os.sh" self.cli_os.check() mock_ftutils_execute.assert_called_once_with(cmd, verbose=False) @mock.patch('functest.cli.commands.cli_os.os.path.isfile', return_value=False) @mock.patch('functest.cli.commands.cli_os.click.echo') def test_snapshot_create(self, mock_click_echo, mock_os_path): with mock.patch.object(self.cli_os, 'ping_endpoint'), \ mock.patch('functest.cli.commands.cli_os.os_snapshot.main') \ as mock_os_snapshot: self.cli_os.snapshot_create() mock_click_echo.assert_called_once_with("Generating Openstack " "snapshot...") self.assertTrue(mock_os_snapshot.called) @mock.patch('functest.cli.commands.cli_os.os.path.isfile', return_value=True) @mock.patch('functest.cli.commands.cli_os.click.echo') def test_snapshot_create_overwrite(self, mock_click_echo, mock_os_path): with mock.patch('__builtin__.raw_input', return_value="y") \ as mock_raw_input, \ mock.patch.object(self.cli_os, 'ping_endpoint'), \ mock.patch('functest.cli.commands.cli_os.os_snapshot.main') \ as mock_os_snapshot: self.cli_os.snapshot_create() mock_click_echo.assert_called_once_with("Generating Openstack " "snapshot...") mock_raw_input.assert_any_call("It seems there is already an " "OpenStack snapshot. Do you want " "to overwrite it with the current " "OpenStack status? [y|n]\n") self.assertTrue(mock_os_snapshot.called) @mock.patch('functest.cli.commands.cli_os.os.path.isfile', return_value=False) @mock.patch('functest.cli.commands.cli_os.click.echo') def test_snapshot_show_missing_snap(self, mock_click_echo, mock_os_path): self.cli_os.snapshot_show() mock_click_echo.assert_called_once_with("There is no OpenStack " "snapshot created. To create " "one run the command " "'functest openstack " "snapshot-create'") @mock.patch('functest.cli.commands.cli_os.os.path.isfile', return_value=True) @mock.patch('functest.cli.commands.cli_os.click.echo') def test_snapshot_show_default(self, mock_click_echo, mock_os_path): with mock.patch('__builtin__.open', mock.mock_open(read_data='0')) \ as m: self.cli_os.snapshot_file = self.snapshot_file self.cli_os.snapshot_show() m.assert_called_once_with(self.snapshot_file, 'r') mock_click_echo.assert_called_once_with("\n0") @mock.patch('functest.cli.commands.cli_os.os.path.isfile', return_value=True) @mock.patch('functest.cli.commands.cli_os.click.echo') def test_clean(self, mock_click_echo, mock_os_path): with mock.patch.object(self.cli_os, 'ping_endpoint'), \ mock.patch('functest.cli.commands.cli_os.os_clean.main') \ as mock_os_clean: self.cli_os.clean() self.assertTrue(mock_os_clean.called) @mock.patch('functest.cli.commands.cli_os.os.path.isfile', return_value=False) @mock.patch('functest.cli.commands.cli_os.click.echo') def test_clean_missing_file(self, mock_click_echo, mock_os_path): with mock.patch.object(self.cli_os, 'ping_endpoint'): self.cli_os.clean() mock_click_echo.assert_called_once_with("Not possible to clean " "OpenStack without a " "snapshot. This could " "cause problems. " "Run first the command " "'functest openstack " "snapshot-create'") @mock.patch('functest.cli.commands.cli_os.click.echo') def test_show_credentials(self, mock_click_echo): key = 'OS_KEY' value = 'OS_VALUE' with mock.patch.dict(os.environ, {key: value}): self.cli_os.show_credentials() mock_click_echo.assert_any_call("{}={}".format(key, value)) if __name__ == "__main__": unittest.main(verbosity=2)