def test__required_config_or_result_keys(self): required_keys = Buildah._required_config_or_result_keys() expected_required_keys = [ 'containers-config-auth-file', 'imagespecfile', 'context', 'tls-verify', 'format', 'service-name', 'application-name' ] self.assertEqual(required_keys, expected_required_keys)
def test_result(self): defaults = Buildah.step_implementer_config_defaults() expected_defaults = { 'imagespecfile': 'Containerfile', 'context': '.', 'tls-verify': True, 'format': 'oci' } self.assertEqual(defaults, expected_defaults)
def test_step_implementer_config_defaults(self): defaults = Buildah.step_implementer_config_defaults() expected_defaults = { 'containers-config-auth-file': os.path.join(Path.home(), '.buildah-auth.json'), 'imagespecfile': 'Containerfile', 'context': '.', 'tls-verify': True, 'format': 'oci' } self.assertEqual(defaults, expected_defaults)