def end(distro): ret = True try: if not Test.end(): return False proc = run("docker kill linux-" + distro, shell=True) if proc.returncode != 0: ret = False except: log("LINUX", "❌", "exception while running LinuxTest.end()\n" + format_exc()) return False return ret
def end(): ret = True try: if not Test.end(): return False proc = run("docker stack rm bunkerweb", shell=True) if proc.returncode != 0: ret = False rmtree("/tmp/swarm") except: log("SWARM", "❌", "exception while running SwarmTest.end()\n" + format_exc()) return False return ret
def end(): ret = True try: if not Test.end(): return False proc = run("docker-compose down -v", cwd="/tmp/autoconf", shell=True) if proc.returncode != 0: ret = False rmtree("/tmp/autoconf") except: log("AUTOCONF", "❌", "exception while running AutoconfTest.end()\n" + format_exc()) return False return ret
def end() : ret = True try : if not Test.end() : return False proc = run("sudo kubectl delete -f bunkerweb.yml", cwd="/tmp/kubernetes", shell=True) if proc.returncode != 0 : ret = False proc = run("sudo kubectl delete -f rbac.yml", cwd="/tmp/kubernetes", shell=True) if proc.returncode != 0 : ret = False proc = run("sudo kubectl delete -f k8s.yml", cwd="/tmp/kubernetes", shell=True) if proc.returncode != 0 : ret = False rmtree("/tmp/kubernetes") except : log("KUBERNETES", "❌", "exception while running KubernetesTest.end()\n" + format_exc()) return False return ret