Implemented oom_score_adj
Signed-off-by: George Lester <glester491@gmail.com>
This commit is contained in:
parent
967dce5807
commit
6fe5d2b543
6 changed files with 30 additions and 1 deletions
|
|
@ -1243,6 +1243,26 @@ class ConfigTest(unittest.TestCase):
|
|||
}
|
||||
]
|
||||
|
||||
def test_oom_score_adj_option(self):
|
||||
|
||||
actual = config.load(build_config_details({
|
||||
'version': '2',
|
||||
'services': {
|
||||
'web': {
|
||||
'image': 'alpine',
|
||||
'oom_score_adj': 500
|
||||
}
|
||||
}
|
||||
}))
|
||||
|
||||
assert actual.services == [
|
||||
{
|
||||
'name': 'web',
|
||||
'image': 'alpine',
|
||||
'oom_score_adj': 500
|
||||
}
|
||||
]
|
||||
|
||||
def test_merge_service_dicts_from_files_with_extends_in_base(self):
|
||||
base = {
|
||||
'volumes': ['.:/app'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue