Exemple #1
0
 def test_connect_and_upgrade(self):
     server = Server.connect('test', 'ec2-host')
     server.dist_upgrade()
Exemple #2
0
 def test_wsgi_with_default_site(self):
     server = Server.connect('test', 'ec2-host')
     server.add_role('wsgi')
Exemple #3
0
 def test_wsgi_without_www_data_homedir(self):
     server = Server.connect('test', 'ec2-host')
     server.add_role('wsgi')
Exemple #4
0
 def test_try_connect_to_invalid_host(self):
     server = Server.connect('test', 'not-a-host')
     self.assertIs(server, None)
Exemple #5
0
 def test_connect_to_reservation_name(self):
     server = Server.connect("test", "r-reservation")
     self.assertEquals(server.reservation.id, "r-reservation")
Exemple #6
0
 def test_connect_and_restart(self):
     server = Server.connect('test', 'r-reservation')
     server.restart()
Exemple #7
0
 def test_connect_and_add_role(self):
     server = Server.connect('test', 'ec2-host')
     server.add_role('postgres')
     server.add_role('wsgi')
Exemple #8
0
 def test_try_connect_to_invalid_host(self):
     server = Server.connect("test", "not-a-host")
     self.assertIs(server, None)
Exemple #9
0
 def test_server_role_not_found(self):
     server = Server.connect("test", "ec2-host")
     with self.assertRaises(ImportError):
         server.add_role("not-a-role")
Exemple #10
0
 def test_connect_and_add_role(self):
     server = Server.connect("test", "ec2-host")
     server.add_role("postgres")
     server.add_role("wsgi")
Exemple #11
0
 def test_connect_and_configure(self):
     server = Server.connect("test", "ec2-host")
     server.add_role("munin", "monitor.example.com")
     server.add_role("eip", "10.43.56.9")
Exemple #12
0
 def test_connect_and_terminate(self):
     server = Server.connect("test", "ec2-host")
     server.terminate()
Exemple #13
0
 def test_connect_and_restart(self):
     server = Server.connect("test", "r-reservation")
     server.restart()
Exemple #14
0
 def test_connect_and_stop(self):
     server = Server.connect("test", "ec2-host")
     server.stop()
Exemple #15
0
 def test_connect_to_reservation_name(self):
     server = Server.connect('test', 'r-reservation')
     self.assertEquals(server.reservation.id, 'r-reservation')
Exemple #16
0
 def test_munin(self):
     server = Server.connect('test', 'ec2-host')
     server.add_role('munin')
     server.add_role('munin', 'monitor.example.com')
Exemple #17
0
 def test_connect_and_stop(self):
     server = Server.connect('test', 'ec2-host')
     server.stop()
Exemple #18
0
 def test_wsgi_with_default_site(self):
     server = Server.connect('test', 'ec2-host')
     server.add_role('wsgi')
Exemple #19
0
 def test_connect_and_terminate(self):
     server = Server.connect('test', 'ec2-host')
     server.terminate()
Exemple #20
0
 def test_wsgi_without_www_data_homedir(self):
     server = Server.connect('test', 'ec2-host')
     server.add_role('wsgi')
Exemple #21
0
 def test_connect_and_configure(self):
     server = Server.connect('test', 'ec2-host')
     server.add_role('munin', 'monitor.example.com')
     server.add_role('eip', '10.43.56.9')
Exemple #22
0
 def test_munin(self):
     server = Server.connect('test', 'ec2-host')
     server.add_role('munin')
     server.add_role('munin', 'monitor.example.com')
Exemple #23
0
 def test_server_role_not_found(self):
     server = Server.connect('test', 'ec2-host')
     with self.assertRaises(ImportError):
         server.add_role('not-a-role')
Exemple #24
0
 def test_connect_and_upgrade(self):
     server = Server.connect("test", "ec2-host")
     server.dist_upgrade()