Пример #1
0
 def may_give_Connection_init_kwarg_dicts(self, remote):
     remote.expect_sessions(
         Session("host1", user="******", cmd="nope"),
         Session("host2", cmd="nope"),
     )
     with cd(support):
         _run_fab("hosts-are-init-kwargs")
Пример #2
0
 def may_give_mixed_value_types(self, remote):
     remote.expect_sessions(
         Session("host1", user="******", cmd="nope"),
         Session("host2", cmd="nope"),
     )
     with cd(support):
         _run_fab("hosts-are-mixed-values")
Пример #3
0
 def multiple_strings_is_multiple_host_args(self, remote):
     remote.expect_sessions(Session("host1", cmd="nope"),
                            Session("host2", cmd="nope"))
     with cd(support):
         _run_fab("two-hosts")
Пример #4
0
 def multiple_hosts_works_with_remainder_too(self, remote):
     remote.expect_sessions(Session("host1", cmd="whoami"),
                            Session("host2", cmd="whoami"))
     _run_fab("-H host1,host2 -- whoami")
Пример #5
0
 def comma_separated_string_is_multiple_hosts(self, remote):
     remote.expect_sessions(Session("host1", cmd="nope"),
                            Session("host2", cmd="nope"))
     with cd(support):
         _run_fab("-H host1,host2 basic-run")
Пример #6
0
 def multiple_strings_is_multiple_host_args(self, remote):
     remote.expect_sessions(Session("host1", cmd="nope"),
                            Session("host2", cmd="nope"))
     with cd(support):
         make_program().run("fab two-hosts")
Пример #7
0
 def multiple_hosts_works_with_remainder_too(self, remote):
     remote.expect_sessions(Session("host1", cmd="whoami"),
                            Session("host2", cmd="whoami"))
     make_program().run("fab -H host1,host2 -- whoami")