def test_ContainerSpec_util_smoke(): s1 = ContainerSpec() s2 = s1.clone() assert s1 != s2 assert s1.equals(s2) s1.LogConfig = LogConfigSpec() s2.LogConfig = LogConfigSpec() s1.LogConfig.Type = 'syslogd' assert not s1.equals(s2)
def test_ContainerSpec_verify_params_smoke(): s = ContainerSpec() assert not s.verify_params() s.Image = 'hello/release-123-456' assert s.verify_params() s.LogConfig = LogConfigSpec() assert s.verify_params()
def test_LogConfigSpec_verify_params_smoke(): l = LogConfigSpec() l.Type = None assert not l.verify_params() l.Type = 'logd' l.Config = {} assert l.verify_params()
def test_LogConfigSpec_smoke(): l = LogConfigSpec() assert l.Type == '' assert l.Config == {}