This commit is contained in:
jpic
2020-02-13 05:42:04 +01:00
parent 6e8b2ec2a7
commit 4366ee63f9
14 changed files with 90 additions and 190 deletions
-29
View File
@@ -20,34 +20,5 @@ async def test_pod_story2(pod):
async def test_pod_story(pod):
await pod.script('down')()
await pod.script('build')('ex')
await pod.script('up')()
await pod.script('down')()
async def aoeutest_podctl(host):
from podctl.console_script import console_script
console_script.options['debug'] = 'visit'
console_script.options['debug'] = True
from podctl.podfile import Podfile
pod = Podfile.factory(__file__).pod
from podctl.proc import Proc
#await Proc('podctl', 'down')()
#await Proc('podctl', 'build', 'ex')()
#await Proc('podctl', '-d=cmd,out,visit', 'up', 'ex')()
#assert host.podman('simple-ex').is_running
##import time; time.sleep(5)
#await Proc('podctl', 'down')()
#assert 'simple-ex' not in [c.name for c in host.podman.get_containers()]
#return
await pod.script('down')()
await pod.script('build')('ex')
await pod.script('up')('ex')
assert host.podman('ex').is_running
await pod.script('down')()
assert 'simple-ex' not in [c.name for c in host.podman.get_containers()]