def test_results(self):
     defaults = ContainerDeployMixin.step_implementer_config_defaults()
     expected_defaults = {
         'use-container-image-short-addres': False,
         'use-container-image-digest': True
     }
     self.assertEqual(defaults, expected_defaults)
 def test_results(self):
     required_keys = ContainerDeployMixin._required_config_or_result_keys()
     expected_required_keys = [
         'use-container-image-short-addres',
         'use-container-image-digest',
         [
             'container-image-pull-repository',
             'container-image-push-repository',
             'container-image-repository'
         ]
     ]
     self.assertEqual(required_keys, expected_required_keys)
Exemple #3
0
    def step_implementer_config_defaults():
        """Getter for the StepImplementer's configuration defaults.

        Returns
        -------
        dict
            Default values to use for step configuration values.

        Notes
        -----
        These are the lowest precedence configuration values.
        """
        return {**ContainerDeployMixin.step_implementer_config_defaults(), **DEFAULT_CONFIG}
Exemple #4
0
    def _required_config_or_result_keys():
        """Getter for step configuration or previous step result artifacts that are required before
        running this step.

        See Also
        --------
        _validate_required_config_or_previous_step_result_artifact_keys

        Returns
        -------
        array_list
            Array of configuration keys or previous step result artifacts
            that are required before running the step.
        """
        return REQUIRED_CONFIG_OR_PREVIOUS_STEP_RESULT_ARTIFACT_KEYS + \
            ContainerDeployMixin._required_config_or_result_keys()