Merge pull request #4864 from shin-/cred_spec_support

Add partial support for v3.3 credential_spec
This commit is contained in:
Joffrey F 2017-05-25 17:30:44 -07:00 committed by GitHub
commit 9a70db0889
2 changed files with 47 additions and 12 deletions

View file

@ -2033,6 +2033,23 @@ class ConfigTest(unittest.TestCase):
}
}
def test_merge_credential_spec(self):
base = {
'image': 'bb',
'credential_spec': {
'file': '/hello-world',
}
}
override = {
'credential_spec': {
'registry': 'revolution.com',
}
}
actual = config.merge_service_dicts(base, override, V3_3)
assert actual['credential_spec'] == override['credential_spec']
def test_external_volume_config(self):
config_details = build_config_details({
'version': '2',