Пример #1
0
 def test_sync_no_matches_wrong_name(self):
     sync('ssh',
          'notdummy',
          compute_driver_override="dummy_driver",
          compute_conn_override="dummy_conn")
     self.assertTrue(self.dummy_node.matches_called)
     self.assertFalse(self.dummy_node.ssh_called)
Пример #2
0
def main():

	execfile("environment.py", locals(), globals())

	command = sys.argv[1]
	if len(sys.argv) > 2:
		tag = sys.argv[2]
		print "Blitzing nodes named/tagged '%s' %s\n\n" % (tag, command)
	else:
		tag = ""
		print "Blitzing all nodes %s\n\n" % command

	sync(command, tag)
Пример #3
0
def main():

    execfile("environment.py", locals(), globals())

    command = sys.argv[1]
    if len(sys.argv) > 2:
        tag = sys.argv[2]
        print "Blitzing nodes named/tagged '%s' %s\n\n" % (tag, command)
    else:
        tag = ""
        print "Blitzing all nodes %s\n\n" % command

    sync(command, tag)
Пример #4
0
	def test_sync_no_matches_wrong_name(self):
		sync('ssh','notdummy', compute_driver_override="dummy_driver", compute_conn_override="dummy_conn")
		self.assertTrue(self.dummy_node.matches_called)
		self.assertFalse(self.dummy_node.ssh_called)