예제 #1
0
 def test_extra_property_multiple_properties(self):
     test_option_val = '["key=value", "key2=value2"]'
     actual_mvn_command = []
     beam_benchmark_helper.AddExtraProperties(actual_mvn_command,
                                              test_option_val)
     self.assertListEqual(['-Dkey=value', '-Dkey2=value2'],
                          actual_mvn_command)
예제 #2
0
 def test_extra_property_multiple_properties(self):
     testOptionVal = "[\"key=value\", \"key2=value2\"]"
     actual_mvn_command = []
     beam_benchmark_helper.AddExtraProperties(actual_mvn_command,
                                              testOptionVal)
     self.assertListEqual(["-Dkey=value", "-Dkey2=value2"],
                          actual_mvn_command)
예제 #3
0
 def test_extra_property_single_property_quoted(self):
     test_option_val = '["key=value"]'
     actual_mvn_command = []
     beam_benchmark_helper.AddExtraProperties(actual_mvn_command,
                                              test_option_val)
     self.assertListEqual(['-Dkey=value'], actual_mvn_command)
예제 #4
0
 def test_extra_property_empty_property(self):
     test_option_val = ''
     actual_command = []
     beam_benchmark_helper.AddExtraProperties(actual_command,
                                              test_option_val)
     self.assertListEqual([], actual_command)
예제 #5
0
 def test_integrationPipelineOptions_rejection(self):
     test_option_val = '["integrationTestPipelineOptions=..."]'
     actual_mvn_command = []
     with self.assertRaises(ValueError):
         beam_benchmark_helper.AddExtraProperties(actual_mvn_command,
                                                  test_option_val)
예제 #6
0
 def test_extra_property_single_property_quoted(self):
     testOptionVal = "[\"key=value\"]"
     actual_mvn_command = []
     beam_benchmark_helper.AddExtraProperties(actual_mvn_command,
                                              testOptionVal)
     self.assertListEqual(["-Dkey=value"], actual_mvn_command)