Esempio n. 1
0
    def test_can_get_nodes(self):
        adapter = DockerAdapter()
        containers = adapter.find_all_containers('brady/firefox-node:latest')
        if len(containers) == 0:
            print "Not Found"
            return

        print "Total of Firefox Nodes: " + str(len(containers))
Esempio n. 2
0
    def test_can_get_nodes(self):
        adapter = DockerAdapter()
        containers = adapter.find_all_containers("brady/firefox-node:latest")
        if len(containers) == 0:
            print "Not Found"
            return

        print "Total of Firefox Nodes: " + str(len(containers))
Esempio n. 3
0
    def test_can_restart_node(self):
        adapter = DockerAdapter()
        containers = adapter.find_all_containers('brady/firefox-node:latest')
        if len(containers) == 0:
            print "Not Found"
            return

        container = containers.pop(0)
        adapter.restart(container)
Esempio n. 4
0
    def test_can_restart_node(self):
        adapter = DockerAdapter()
        containers = adapter.find_all_containers("brady/firefox-node:latest")
        if len(containers) == 0:
            print "Not Found"
            return

        container = containers.pop(0)
        adapter.restart(container)