Пример #1
0
 def test_render_flag_only(self):
     d = DockerOpts()
     d.add('flagonly', None)
     assert "--flagonly" in d.to_s()
Пример #2
0
 def test_strict_options(self):
     d = DockerOpts()
     d.add('strictmode', 'strict-formatting,enabled-because', strict=True)
     assert "--strictmode=strict-formatting,enabled-because" in d.to_s()
Пример #3
0
def configure_docker():
  manager = DockerOpts()
  render('docker.defaults', '/etc/default/docker', {'opts': manager.to_s()})
Пример #4
0
 def test_to_s(self):
     d = DockerOpts()
     d.add('foo', 'bar, baz')
     assert d.to_s() == "--foo=bar --foo=baz"
Пример #5
0
 def test_to_s(self):
     d = DockerOpts()
     d.add('foo', 'bar, baz')
     assert d.to_s() == "--foo=bar --foo=baz"
Пример #6
0
 def test_to_s(self):
     d = DockerOpts()
     d.add("foo", "bar, baz")
     assert d.to_s() == "--foo=bar --foo=baz"
Пример #7
0
def configure_docker():
    manager = DockerOpts()
    render('docker.defaults', '/etc/default/docker', {'opts': manager.to_s()})
Пример #8
0
 def test_strict_options(self):
     d = DockerOpts()
     d.add('strictmode', 'strict-formatting,enabled-because', strict=True)
     assert "--strictmode=strict-formatting,enabled-because" in d.to_s()
Пример #9
0
 def test_render_flag_only(self):
     d = DockerOpts()
     d.add('flagonly', None)
     assert "--flagonly" in d.to_s()