mirror of
https://github.com/docker/compose.git
synced 2026-08-04 14:47:40 +00:00
Merge pull request #4864 from shin-/cred_spec_support
Add partial support for v3.3 credential_spec
This commit is contained in:
commit
9a70db0889
2 changed files with 47 additions and 12 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue