-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new regression files for
mila init
tests
Signed-off-by: Fabrice Normandin <[email protected]>
- Loading branch information
Showing
8 changed files
with
382 additions
and
0 deletions.
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
...h_existing_entries_has_mila_compute_entry_has_mila_cpu_entry_has_mila_entry_.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
Running the `mila init` command with this initial content: | ||
|
||
``` | ||
Host mila | ||
HostName login.server.mila.quebec | ||
User bob | ||
Host mila-cpu | ||
HostName login.server.mila.quebec | ||
Host *.server.mila.quebec !*login.server.mila.quebec | ||
HostName foooobar.com | ||
``` | ||
|
||
and these user inputs: ['y'] | ||
resulted in creating the following ssh config file: | ||
|
||
``` | ||
Host mila | ||
HostName login.server.mila.quebec | ||
User bob | ||
PreferredAuthentications publickey,keyboard-interactive | ||
Port 2222 | ||
ServerAliveInterval 120 | ||
ServerAliveCountMax 5 | ||
ControlMaster auto | ||
ControlPath ~/.cache/ssh/%r@%h:%p | ||
ControlPersist 600 | ||
Host mila-cpu | ||
HostName login.server.mila.quebec | ||
User bob | ||
Port 2222 | ||
ForwardAgent yes | ||
StrictHostKeyChecking no | ||
LogLevel ERROR | ||
UserKnownHostsFile /dev/null | ||
RequestTTY force | ||
ConnectTimeout 600 | ||
ServerAliveInterval 120 | ||
ProxyCommand ssh mila "/cvmfs/config.mila.quebec/scripts/milatools/slurm-proxy.sh mila-cpu --mem=8G" | ||
RemoteCommand /cvmfs/config.mila.quebec/scripts/milatools/entrypoint.sh mila-cpu | ||
Host *.server.mila.quebec !*login.server.mila.quebec | ||
HostName %h | ||
User bob | ||
ProxyJump mila | ||
ControlMaster auto | ||
ControlPath ~/.cache/ssh/%r@%h:%p | ||
ControlPersist 600 | ||
``` |
49 changes: 49 additions & 0 deletions
49
...th_existing_entries_has_mila_compute_entry_has_mila_cpu_entry_no_mila_entry_.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
Running the `mila init` command with this initial content: | ||
|
||
``` | ||
Host mila-cpu | ||
HostName login.server.mila.quebec | ||
Host *.server.mila.quebec !*login.server.mila.quebec | ||
HostName foooobar.com | ||
``` | ||
|
||
and these user inputs: ['bob\r', 'y'] | ||
resulted in creating the following ssh config file: | ||
|
||
``` | ||
Host mila-cpu | ||
HostName login.server.mila.quebec | ||
User bob | ||
Port 2222 | ||
ForwardAgent yes | ||
StrictHostKeyChecking no | ||
LogLevel ERROR | ||
UserKnownHostsFile /dev/null | ||
RequestTTY force | ||
ConnectTimeout 600 | ||
ServerAliveInterval 120 | ||
ProxyCommand ssh mila "/cvmfs/config.mila.quebec/scripts/milatools/slurm-proxy.sh mila-cpu --mem=8G" | ||
RemoteCommand /cvmfs/config.mila.quebec/scripts/milatools/entrypoint.sh mila-cpu | ||
Host *.server.mila.quebec !*login.server.mila.quebec | ||
HostName %h | ||
User bob | ||
ProxyJump mila | ||
ControlMaster auto | ||
ControlPath ~/.cache/ssh/%r@%h:%p | ||
ControlPersist 600 | ||
Host mila | ||
HostName login.server.mila.quebec | ||
User bob | ||
PreferredAuthentications publickey,keyboard-interactive | ||
Port 2222 | ||
ServerAliveInterval 120 | ||
ServerAliveCountMax 5 | ||
ControlMaster auto | ||
ControlPath ~/.cache/ssh/%r@%h:%p | ||
ControlPersist 600 | ||
``` |
49 changes: 49 additions & 0 deletions
49
...th_existing_entries_has_mila_compute_entry_no_mila_cpu_entry_has_mila_entry_.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
Running the `mila init` command with this initial content: | ||
|
||
``` | ||
Host mila | ||
HostName login.server.mila.quebec | ||
User bob | ||
Host *.server.mila.quebec !*login.server.mila.quebec | ||
HostName foooobar.com | ||
``` | ||
|
||
and these user inputs: ['y'] | ||
resulted in creating the following ssh config file: | ||
|
||
``` | ||
Host mila | ||
HostName login.server.mila.quebec | ||
User bob | ||
PreferredAuthentications publickey,keyboard-interactive | ||
Port 2222 | ||
ServerAliveInterval 120 | ||
ServerAliveCountMax 5 | ||
ControlMaster auto | ||
ControlPath ~/.cache/ssh/%r@%h:%p | ||
ControlPersist 600 | ||
Host *.server.mila.quebec !*login.server.mila.quebec | ||
HostName %h | ||
User bob | ||
ProxyJump mila | ||
ControlMaster auto | ||
ControlPath ~/.cache/ssh/%r@%h:%p | ||
ControlPersist 600 | ||
Host mila-cpu | ||
User bob | ||
Port 2222 | ||
ForwardAgent yes | ||
StrictHostKeyChecking no | ||
LogLevel ERROR | ||
UserKnownHostsFile /dev/null | ||
RequestTTY force | ||
ConnectTimeout 600 | ||
ServerAliveInterval 120 | ||
ProxyCommand ssh mila "/cvmfs/config.mila.quebec/scripts/milatools/slurm-proxy.sh mila-cpu --mem=8G" | ||
RemoteCommand /cvmfs/config.mila.quebec/scripts/milatools/entrypoint.sh mila-cpu | ||
``` |
46 changes: 46 additions & 0 deletions
46
...ith_existing_entries_has_mila_compute_entry_no_mila_cpu_entry_no_mila_entry_.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
Running the `mila init` command with this initial content: | ||
|
||
``` | ||
Host *.server.mila.quebec !*login.server.mila.quebec | ||
HostName foooobar.com | ||
``` | ||
|
||
and these user inputs: ['bob\r', 'y'] | ||
resulted in creating the following ssh config file: | ||
|
||
``` | ||
Host *.server.mila.quebec !*login.server.mila.quebec | ||
HostName %h | ||
User bob | ||
ProxyJump mila | ||
ControlMaster auto | ||
ControlPath ~/.cache/ssh/%r@%h:%p | ||
ControlPersist 600 | ||
Host mila | ||
HostName login.server.mila.quebec | ||
User bob | ||
PreferredAuthentications publickey,keyboard-interactive | ||
Port 2222 | ||
ServerAliveInterval 120 | ||
ServerAliveCountMax 5 | ||
ControlMaster auto | ||
ControlPath ~/.cache/ssh/%r@%h:%p | ||
ControlPersist 600 | ||
Host mila-cpu | ||
User bob | ||
Port 2222 | ||
ForwardAgent yes | ||
StrictHostKeyChecking no | ||
LogLevel ERROR | ||
UserKnownHostsFile /dev/null | ||
RequestTTY force | ||
ConnectTimeout 600 | ||
ServerAliveInterval 120 | ||
ProxyCommand ssh mila "/cvmfs/config.mila.quebec/scripts/milatools/slurm-proxy.sh mila-cpu --mem=8G" | ||
RemoteCommand /cvmfs/config.mila.quebec/scripts/milatools/entrypoint.sh mila-cpu | ||
``` |
50 changes: 50 additions & 0 deletions
50
...th_existing_entries_no_mila_compute_entry_has_mila_cpu_entry_has_mila_entry_.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
Running the `mila init` command with this initial content: | ||
|
||
``` | ||
Host mila | ||
HostName login.server.mila.quebec | ||
User bob | ||
Host mila-cpu | ||
HostName login.server.mila.quebec | ||
``` | ||
|
||
and these user inputs: ['y'] | ||
resulted in creating the following ssh config file: | ||
|
||
``` | ||
Host mila | ||
HostName login.server.mila.quebec | ||
User bob | ||
PreferredAuthentications publickey,keyboard-interactive | ||
Port 2222 | ||
ServerAliveInterval 120 | ||
ServerAliveCountMax 5 | ||
ControlMaster auto | ||
ControlPath ~/.cache/ssh/%r@%h:%p | ||
ControlPersist 600 | ||
Host mila-cpu | ||
HostName login.server.mila.quebec | ||
User bob | ||
Port 2222 | ||
ForwardAgent yes | ||
StrictHostKeyChecking no | ||
LogLevel ERROR | ||
UserKnownHostsFile /dev/null | ||
RequestTTY force | ||
ConnectTimeout 600 | ||
ServerAliveInterval 120 | ||
ProxyCommand ssh mila "/cvmfs/config.mila.quebec/scripts/milatools/slurm-proxy.sh mila-cpu --mem=8G" | ||
RemoteCommand /cvmfs/config.mila.quebec/scripts/milatools/entrypoint.sh mila-cpu | ||
Host *.server.mila.quebec !*login.server.mila.quebec | ||
HostName %h | ||
User bob | ||
ProxyJump mila | ||
ControlMaster auto | ||
ControlPath ~/.cache/ssh/%r@%h:%p | ||
ControlPersist 600 | ||
``` |
47 changes: 47 additions & 0 deletions
47
...ith_existing_entries_no_mila_compute_entry_has_mila_cpu_entry_no_mila_entry_.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
Running the `mila init` command with this initial content: | ||
|
||
``` | ||
Host mila-cpu | ||
HostName login.server.mila.quebec | ||
``` | ||
|
||
and these user inputs: ['bob\r', 'y'] | ||
resulted in creating the following ssh config file: | ||
|
||
``` | ||
Host mila-cpu | ||
HostName login.server.mila.quebec | ||
User bob | ||
Port 2222 | ||
ForwardAgent yes | ||
StrictHostKeyChecking no | ||
LogLevel ERROR | ||
UserKnownHostsFile /dev/null | ||
RequestTTY force | ||
ConnectTimeout 600 | ||
ServerAliveInterval 120 | ||
ProxyCommand ssh mila "/cvmfs/config.mila.quebec/scripts/milatools/slurm-proxy.sh mila-cpu --mem=8G" | ||
RemoteCommand /cvmfs/config.mila.quebec/scripts/milatools/entrypoint.sh mila-cpu | ||
Host mila | ||
HostName login.server.mila.quebec | ||
User bob | ||
PreferredAuthentications publickey,keyboard-interactive | ||
Port 2222 | ||
ServerAliveInterval 120 | ||
ServerAliveCountMax 5 | ||
ControlMaster auto | ||
ControlPath ~/.cache/ssh/%r@%h:%p | ||
ControlPersist 600 | ||
Host *.server.mila.quebec !*login.server.mila.quebec | ||
HostName %h | ||
User bob | ||
ProxyJump mila | ||
ControlMaster auto | ||
ControlPath ~/.cache/ssh/%r@%h:%p | ||
ControlPersist 600 | ||
``` |
47 changes: 47 additions & 0 deletions
47
...ith_existing_entries_no_mila_compute_entry_no_mila_cpu_entry_has_mila_entry_.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
Running the `mila init` command with this initial content: | ||
|
||
``` | ||
Host mila | ||
HostName login.server.mila.quebec | ||
User bob | ||
``` | ||
|
||
and these user inputs: ['y'] | ||
resulted in creating the following ssh config file: | ||
|
||
``` | ||
Host mila | ||
HostName login.server.mila.quebec | ||
User bob | ||
PreferredAuthentications publickey,keyboard-interactive | ||
Port 2222 | ||
ServerAliveInterval 120 | ||
ServerAliveCountMax 5 | ||
ControlMaster auto | ||
ControlPath ~/.cache/ssh/%r@%h:%p | ||
ControlPersist 600 | ||
Host mila-cpu | ||
User bob | ||
Port 2222 | ||
ForwardAgent yes | ||
StrictHostKeyChecking no | ||
LogLevel ERROR | ||
UserKnownHostsFile /dev/null | ||
RequestTTY force | ||
ConnectTimeout 600 | ||
ServerAliveInterval 120 | ||
ProxyCommand ssh mila "/cvmfs/config.mila.quebec/scripts/milatools/slurm-proxy.sh mila-cpu --mem=8G" | ||
RemoteCommand /cvmfs/config.mila.quebec/scripts/milatools/entrypoint.sh mila-cpu | ||
Host *.server.mila.quebec !*login.server.mila.quebec | ||
HostName %h | ||
User bob | ||
ProxyJump mila | ||
ControlMaster auto | ||
ControlPath ~/.cache/ssh/%r@%h:%p | ||
ControlPersist 600 | ||
``` |
42 changes: 42 additions & 0 deletions
42
...with_existing_entries_no_mila_compute_entry_no_mila_cpu_entry_no_mila_entry_.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
Running the `mila init` command with no initial ssh config file | ||
|
||
and these user inputs: ['bob\r', 'y'] | ||
resulted in creating the following ssh config file: | ||
|
||
``` | ||
Host mila | ||
HostName login.server.mila.quebec | ||
User bob | ||
PreferredAuthentications publickey,keyboard-interactive | ||
Port 2222 | ||
ServerAliveInterval 120 | ||
ServerAliveCountMax 5 | ||
ControlMaster auto | ||
ControlPath ~/.cache/ssh/%r@%h:%p | ||
ControlPersist 600 | ||
Host mila-cpu | ||
User bob | ||
Port 2222 | ||
ForwardAgent yes | ||
StrictHostKeyChecking no | ||
LogLevel ERROR | ||
UserKnownHostsFile /dev/null | ||
RequestTTY force | ||
ConnectTimeout 600 | ||
ServerAliveInterval 120 | ||
ProxyCommand ssh mila "/cvmfs/config.mila.quebec/scripts/milatools/slurm-proxy.sh mila-cpu --mem=8G" | ||
RemoteCommand /cvmfs/config.mila.quebec/scripts/milatools/entrypoint.sh mila-cpu | ||
Host *.server.mila.quebec !*login.server.mila.quebec | ||
HostName %h | ||
User bob | ||
ProxyJump mila | ||
ControlMaster auto | ||
ControlPath ~/.cache/ssh/%r@%h:%p | ||
ControlPersist 600 | ||
``` |