Merge pull request #3336 from thaJeztah/fix_onbuild_assert

integration: adjust tests for omitted "OnBuild"
This commit is contained in:
Sebastiaan van Stijn 2025-05-22 10:44:55 +02:00 committed by GitHub
commit 526a9db743
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -275,7 +275,7 @@ class BuildTest(BaseAPIIntegrationTest):
pass
info = self.client.inspect_image('build1')
assert not info['Config']['OnBuild']
assert 'OnBuild' not in info['Config'] or not info['Config']['OnBuild']
@requires_api_version('1.25')
def test_build_with_network_mode(self):

View File

@ -266,7 +266,7 @@ class BuildTest(BaseAPIIntegrationTest):
pass
info = self.client.inspect_image('build1')
assert not info['Config']['OnBuild']
assert 'OnBuild' not in info['Config'] or not info['Config']['OnBuild']
@requires_api_version('1.25')
def test_build_with_network_mode(self):