Exemple #1
0
 def test_preset(self):
     preset = Preset.origin_master
     self.run_test(
         TestCaseParameters(args=['prepare', 'golang', '--for', preset],
                            expected_calls=[{
                                'playbook_relative_path': 'prepare/golang',
                                'playbook_variables': {
                                    'origin_ci_golang_version':
                                    golang_version_for_preset(preset)
                                }
                            }]))
Exemple #2
0
 def test_preset(self):
     preset = Preset.origin_master
     self.run_test(
         TestCaseParameters(
             args=['prepare', 'golang', '--for', preset],
             expected_calls=[
                 PlaybookRunCallSpecification(
                     playbook_relative_path='prepare/golang',
                     playbook_variables={'origin_ci_golang_version': golang_version_for_preset(preset), },
                 )
             ],
         )
     )
Exemple #3
0
 def test_preset(self):
     self.run_test(
         TestCaseParameters(
             args=['prepare', 'all', '--for', 'ose/master'],
             expected_calls=[{
                 'playbook_relative_path': 'prepare/main',
                 'playbook_variables': {
                     'origin_ci_docker_version':
                     docker_version_for_preset(Preset.ose_master),
                     'origin_ci_golang_version':
                     golang_version_for_preset(Preset.ose_master),
                 }
             }]))
Exemple #4
0
 def test_preset(self):
     self.run_test(
         TestCaseParameters(
             args=['prepare', 'all', '--for', 'ose/master'],
             expected_calls=[
                 PlaybookRunCallSpecification(
                     playbook_relative_path='prepare/main',
                     playbook_variables={
                         'origin_ci_docker_version':
                         docker_version_for_preset(Preset.ose_master),
                         'origin_ci_golang_version':
                         golang_version_for_preset(Preset.ose_master),
                     },
                 )
             ],
         ))