summaryrefslogtreecommitdiffstats
path: root/ansible
ModeNameSize
-rw-r--r--ansible.cfg93logstatsplain
-rw-r--r--build_yardstick_image.yml8020logstatsplain
-rw-r--r--check_openstack.yml779logstatsplain
-rw-r--r--clean_images.yml760logstatsplain
-rw-r--r--clone_repos.yml1207logstatsplain
-rw-r--r--cpu_pin_setup.yaml699logstatsplain
-rw-r--r--cpu_pin_teardown.yaml712logstatsplain
-rw-r--r--create_node_pod_yaml.yml666logstatsplain
-rw-r--r--exec_tests.yml813logstatsplain
d---------filter_plugins82logstatsplain
-rw-r--r--gen_scale_out_test.yml776logstatsplain
d---------group_vars35logstatsplain
d---------image_uploaders156logstatsplain
-rw-r--r--infra_deploy.yml1438logstatsplain
-rw-r--r--install-inventory.ini1122logstatsplain
-rw-r--r--install.yaml2952logstatsplain
-rw-r--r--install_collectd.yml1073logstatsplain
-rw-r--r--install_trex_standalone.yml2123logstatsplain
-rw-r--r--install_yardstick.yml733logstatsplain
-rw-r--r--inventory.ini434logstatsplain
d---------library223logstatsplain
-rw-r--r--list_stacks.yml668logstatsplain
-rw-r--r--load_images.yml1342logstatsplain
-rw-r--r--migrate_pinning_setup.yaml1432logstatsplain
-rw-r--r--migrate_pinning_teardown.yaml875logstatsplain
-rw-r--r--multi_port_baremetal_ixia_correlated_test.yaml3341logstatsplain
-rw-r--r--multi_port_baremetal_ixia_correlated_test_templates.yml2464logstatsplain
-rw-r--r--multi_port_baremetal_ixia_test.yaml2702logstatsplain
-rw-r--r--multi_port_baremetal_ixia_test_templates.yml2456logstatsplain
-rw-r--r--multi_port_baremetal_test.yaml2365logstatsplain
-rw-r--r--multi_port_baremetal_test_templates.yml2409logstatsplain
-rw-r--r--nsb_setup.yml1627logstatsplain
-rw-r--r--numa_pin_setup.yaml700logstatsplain
-rw-r--r--numa_pin_teardown.yaml713logstatsplain
-rw-r--r--ovs_scale_out_test_ixia_correlated_templates.yml2421logstatsplain
-rw-r--r--ovs_scale_out_test_ixia_templates.yml2454logstatsplain
-rw-r--r--ovs_scale_out_test_templates.yml2366logstatsplain
-rw-r--r--post_build_yardstick_image.yml1222logstatsplain
-rw-r--r--prepare_env.yml1823logstatsplain
-rw-r--r--prepare_openstack.yml1116logstatsplain
d---------roles4329logstatsplain
-rw-r--r--run_yardstick_tests.yml835logstatsplain
-rw-r--r--scale_out_test_templates.yml2326logstatsplain
-rw-r--r--spec_cpu2006_install.yaml526logstatsplain
-rw-r--r--spec_cpu2006_uninstall.yaml690logstatsplain
-rw-r--r--sriov_scale_out_test_ixia_correlated_templates.yml2635logstatsplain
-rw-r--r--sriov_scale_out_test_ixia_templates.yml2470logstatsplain
-rw-r--r--sriov_scale_out_test_templates.yml2375logstatsplain
-rw-r--r--standalone_ovs_scale_out_ixia_correlated_test.yaml3619logstatsplain
-rw-r--r--standalone_ovs_scale_out_ixia_test.yaml2953logstatsplain
-rw-r--r--standalone_ovs_scale_out_test.yaml2564logstatsplain
-rw-r--r--standalone_sriov_scale_out_ixia_correlated_test.yaml3433logstatsplain
-rw-r--r--standalone_sriov_scale_out_ixia_test.yaml2794logstatsplain
-rw-r--r--standalone_sriov_scale_out_test.yaml2397logstatsplain
-rw-r--r--ubuntu_server_baremetal_deploy_samplevnfs.yml1726logstatsplain
-rw-r--r--ubuntu_server_cloudimg_modify.yml1191logstatsplain
-rw-r--r--ubuntu_server_cloudimg_modify_dpdk.yml1166logstatsplain
-rw-r--r--ubuntu_server_cloudimg_modify_samplevnfs.yml1967logstatsplain
-rw-r--r--yardstick_config.yml1674logstatsplain
-rw-r--r--yardstick_verify.yml747logstatsplain
'bs': '4k', 'rw': 'rw', 'ramp_time': 10 } args = { 'options': options, 'sla': {'read_iops': 20000} } p = fio.Fio(args, self.ctx) result = {} p.client = mock_ssh.SSH() sample_output = self._read_sample_output(self.sample_output['rw']) mock_ssh.SSH().execute.return_value = (0, sample_output, '') p.run(result) expected_result = '{"read_bw": 83888, "read_iops": 20972,' \ '"read_lat": 236.8, "write_bw": 84182, "write_iops": 21045,'\ '"write_lat": 233.55}' expected_result = json.loads(expected_result) self.assertEqual(result, expected_result) def test_fio_unsuccessful_bw_iops_sla(self, mock_ssh): options = { 'filename': '/home/ubuntu/data.raw', 'bs': '4k', 'rw': 'rw', 'ramp_time': 10 } args = { 'options': options, 'sla': {'read_iops': 30000} } p = fio.Fio(args, self.ctx) result = {} p.client = mock_ssh.SSH() sample_output = self._read_sample_output(self.sample_output['rw']) mock_ssh.SSH().execute.return_value = (0, sample_output, '') self.assertRaises(AssertionError, p.run, result) def test_fio_unsuccessful_script_error(self, mock_ssh): options = { 'filename': '/home/ubuntu/data.raw', 'bs': '4k', 'rw': 'rw', 'ramp_time': 10 } args = {'options': options} p = fio.Fio(args, self.ctx) result = {} p.client = mock_ssh.SSH() mock_ssh.SSH().execute.return_value = (1, '', 'FOOBAR') self.assertRaises(RuntimeError, p.run, result) def _read_sample_output(self, file_name): curr_path = os.path.dirname(os.path.abspath(__file__)) output = os.path.join(curr_path, file_name) with open(output) as f: sample_output = f.read() return sample_output def main(): unittest.main() if __name__ == '__main__': main()