Test: add integration tests
This commit is contained in:
parent
96551feaae
commit
b70ee67c0d
22 changed files with 247 additions and 0 deletions
25
tests/all_inclusive/readme_quickstart.in
Normal file
25
tests/all_inclusive/readme_quickstart.in
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
__preamble:
|
||||||
|
ssh_props:
|
||||||
|
Port: 22
|
||||||
|
IdentitiesOnly: yes
|
||||||
|
ForwardX11: no
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
# Uni Computers
|
||||||
|
#############################################################################
|
||||||
|
__uni_template:
|
||||||
|
template: __preamble
|
||||||
|
ssh_props:
|
||||||
|
IdentityFile: ~/.ssh/id_ed25519
|
||||||
|
User: emiliko
|
||||||
|
|
||||||
|
ohaton:
|
||||||
|
template: __uni_template
|
||||||
|
ssh_props:
|
||||||
|
Hostname: ohaton.cs.ualberta.ca
|
||||||
|
|
||||||
|
coronation:
|
||||||
|
# Using __uni_template here would make more sense, but ohaton works too
|
||||||
|
template: ohaton
|
||||||
|
ssh_props:
|
||||||
|
Hostname: coronation.cs.ualberta.ca
|
15
tests/all_inclusive/readme_quickstart.out
Normal file
15
tests/all_inclusive/readme_quickstart.out
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
Host ohaton
|
||||||
|
ForwardX11 false
|
||||||
|
Hostname ohaton.cs.ualberta.ca
|
||||||
|
IdentitiesOnly true
|
||||||
|
IdentityFile ~/.ssh/id_ed25519
|
||||||
|
Port 22
|
||||||
|
User emiliko
|
||||||
|
|
||||||
|
Host coronation
|
||||||
|
ForwardX11 false
|
||||||
|
Hostname coronation.cs.ualberta.ca
|
||||||
|
IdentitiesOnly true
|
||||||
|
IdentityFile ~/.ssh/id_ed25519
|
||||||
|
Port 22
|
||||||
|
User emiliko
|
9
tests/for_loops/for_iter.in
Normal file
9
tests/for_loops/for_iter.in
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
orca:
|
||||||
|
ssh_props:
|
||||||
|
Hostname: 10.42.43.1
|
||||||
|
User: emiliko
|
||||||
|
for:
|
||||||
|
- variable: env
|
||||||
|
iter: ["FOO=bar", "BAR=foo"]
|
||||||
|
property: SendEnv
|
||||||
|
template: ${env}
|
5
tests/for_loops/for_iter.out
Normal file
5
tests/for_loops/for_iter.out
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
Host orca
|
||||||
|
Hostname 10.42.43.1
|
||||||
|
SendEnv BAR=foo
|
||||||
|
SendEnv FOO=bar
|
||||||
|
User emiliko
|
9
tests/for_loops/for_range.in
Normal file
9
tests/for_loops/for_range.in
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
orca:
|
||||||
|
ssh_props:
|
||||||
|
Hostname: 10.42.43.1
|
||||||
|
User: emiliko
|
||||||
|
for:
|
||||||
|
- variable: port
|
||||||
|
range: [9026, 9042]
|
||||||
|
property: LocalForward
|
||||||
|
template: ${port} localhost:${port}
|
19
tests/for_loops/for_range.out
Normal file
19
tests/for_loops/for_range.out
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
Host orca
|
||||||
|
Hostname 10.42.43.1
|
||||||
|
LocalForward 9026 localhost:9026
|
||||||
|
LocalForward 9027 localhost:9027
|
||||||
|
LocalForward 9028 localhost:9028
|
||||||
|
LocalForward 9029 localhost:9029
|
||||||
|
LocalForward 9030 localhost:9030
|
||||||
|
LocalForward 9031 localhost:9031
|
||||||
|
LocalForward 9032 localhost:9032
|
||||||
|
LocalForward 9033 localhost:9033
|
||||||
|
LocalForward 9034 localhost:9034
|
||||||
|
LocalForward 9035 localhost:9035
|
||||||
|
LocalForward 9036 localhost:9036
|
||||||
|
LocalForward 9037 localhost:9037
|
||||||
|
LocalForward 9038 localhost:9038
|
||||||
|
LocalForward 9039 localhost:9039
|
||||||
|
LocalForward 9040 localhost:9040
|
||||||
|
LocalForward 9041 localhost:9041
|
||||||
|
User emiliko
|
13
tests/for_loops/for_range_inc.in
Normal file
13
tests/for_loops/for_range_inc.in
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
orca:
|
||||||
|
ssh_props:
|
||||||
|
Hostname: 10.42.43.1
|
||||||
|
User: emiliko
|
||||||
|
for:
|
||||||
|
- variable: port
|
||||||
|
range: [1026, 2042, 225]
|
||||||
|
property: LocalForward
|
||||||
|
template: ${port} localhost:${port}
|
||||||
|
- variable: port
|
||||||
|
range: [9026, 9042, 2]
|
||||||
|
property: LocalForward
|
||||||
|
template: ${port} localhost:${port}
|
16
tests/for_loops/for_range_inc.out
Normal file
16
tests/for_loops/for_range_inc.out
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
Host orca
|
||||||
|
Hostname 10.42.43.1
|
||||||
|
LocalForward 1026 localhost:1026
|
||||||
|
LocalForward 1251 localhost:1251
|
||||||
|
LocalForward 1476 localhost:1476
|
||||||
|
LocalForward 1701 localhost:1701
|
||||||
|
LocalForward 1926 localhost:1926
|
||||||
|
LocalForward 9026 localhost:9026
|
||||||
|
LocalForward 9028 localhost:9028
|
||||||
|
LocalForward 9030 localhost:9030
|
||||||
|
LocalForward 9032 localhost:9032
|
||||||
|
LocalForward 9034 localhost:9034
|
||||||
|
LocalForward 9036 localhost:9036
|
||||||
|
LocalForward 9038 localhost:9038
|
||||||
|
LocalForward 9040 localhost:9040
|
||||||
|
User emiliko
|
13
tests/for_loops/mixed_for.in
Normal file
13
tests/for_loops/mixed_for.in
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
orca:
|
||||||
|
ssh_props:
|
||||||
|
Hostname: 10.42.43.1
|
||||||
|
User: emiliko
|
||||||
|
for:
|
||||||
|
- variable: i
|
||||||
|
range: [1006, 1020]
|
||||||
|
property: LocalForward
|
||||||
|
template: ${i} localhost:${i}
|
||||||
|
- variable: enV
|
||||||
|
iter: ["FOO=bar", "BAR=foo", "BAZ=baz"]
|
||||||
|
property: SendEnv
|
||||||
|
template: ${enV}
|
20
tests/for_loops/mixed_for.out
Normal file
20
tests/for_loops/mixed_for.out
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
Host orca
|
||||||
|
Hostname 10.42.43.1
|
||||||
|
LocalForward 1006 localhost:1006
|
||||||
|
LocalForward 1007 localhost:1007
|
||||||
|
LocalForward 1008 localhost:1008
|
||||||
|
LocalForward 1009 localhost:1009
|
||||||
|
LocalForward 1010 localhost:1010
|
||||||
|
LocalForward 1011 localhost:1011
|
||||||
|
LocalForward 1012 localhost:1012
|
||||||
|
LocalForward 1013 localhost:1013
|
||||||
|
LocalForward 1014 localhost:1014
|
||||||
|
LocalForward 1015 localhost:1015
|
||||||
|
LocalForward 1016 localhost:1016
|
||||||
|
LocalForward 1017 localhost:1017
|
||||||
|
LocalForward 1018 localhost:1018
|
||||||
|
LocalForward 1019 localhost:1019
|
||||||
|
SendEnv BAR=foo
|
||||||
|
SendEnv BAZ=baz
|
||||||
|
SendEnv FOO=bar
|
||||||
|
User emiliko
|
5
tests/ssh_props/case_insensitive.in
Normal file
5
tests/ssh_props/case_insensitive.in
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
ohaton:
|
||||||
|
ssh_props:
|
||||||
|
port: 22
|
||||||
|
identitiesonly: yes
|
||||||
|
forwardx11: no
|
4
tests/ssh_props/case_insensitive.out
Normal file
4
tests/ssh_props/case_insensitive.out
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
Host ohaton
|
||||||
|
forwardx11 false
|
||||||
|
identitiesonly true
|
||||||
|
port 22
|
6
tests/ssh_props/multivalued.in
Normal file
6
tests/ssh_props/multivalued.in
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
uni:
|
||||||
|
ssh_props:
|
||||||
|
LocalForward:
|
||||||
|
- 3306 localhost:3306
|
||||||
|
- 3302 localhost:3302
|
||||||
|
- 3000 localhost:3000
|
4
tests/ssh_props/multivalued.out
Normal file
4
tests/ssh_props/multivalued.out
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
Host uni
|
||||||
|
LocalForward 3000 localhost:3000
|
||||||
|
LocalForward 3302 localhost:3302
|
||||||
|
LocalForward 3306 localhost:3306
|
8
tests/ssh_props/ssh_props.in
Normal file
8
tests/ssh_props/ssh_props.in
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
github.com:
|
||||||
|
ssh_props:
|
||||||
|
Hostname: github.com
|
||||||
|
IdentityFile: ~/.ssh/github_main
|
||||||
|
LocalForward:
|
||||||
|
- 3306 localhost:3306
|
||||||
|
- 3302 localhost:3302
|
||||||
|
- 3000 localhost:3000
|
6
tests/ssh_props/ssh_props.out
Normal file
6
tests/ssh_props/ssh_props.out
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
Host github.com
|
||||||
|
Hostname github.com
|
||||||
|
IdentityFile ~/.ssh/github_main
|
||||||
|
LocalForward 3000 localhost:3000
|
||||||
|
LocalForward 3302 localhost:3302
|
||||||
|
LocalForward 3306 localhost:3306
|
12
tests/templates/multivalued_overwrite_1.in
Normal file
12
tests/templates/multivalued_overwrite_1.in
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
__uni:
|
||||||
|
ssh_props:
|
||||||
|
LocalForward:
|
||||||
|
- 3306 localhost:3306
|
||||||
|
- 3302 localhost:3302
|
||||||
|
- 3000 localhost:3000
|
||||||
|
|
||||||
|
ohaton:
|
||||||
|
template: __uni
|
||||||
|
ssh_props:
|
||||||
|
LocalForward:
|
||||||
|
- 9000 localhost:9000
|
2
tests/templates/multivalued_overwrite_1.out
Normal file
2
tests/templates/multivalued_overwrite_1.out
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
Host ohaton
|
||||||
|
LocalForward 9000 localhost:9000
|
12
tests/templates/multivalued_overwrite_2.in
Normal file
12
tests/templates/multivalued_overwrite_2.in
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
__uni:
|
||||||
|
ssh_props:
|
||||||
|
LocalForward:
|
||||||
|
- 9000 localhost:9000
|
||||||
|
|
||||||
|
ohaton:
|
||||||
|
template: __uni
|
||||||
|
ssh_props:
|
||||||
|
LocalForward:
|
||||||
|
- 3306 localhost:3306
|
||||||
|
- 3302 localhost:3302
|
||||||
|
- 3000 localhost:3000
|
4
tests/templates/multivalued_overwrite_2.out
Normal file
4
tests/templates/multivalued_overwrite_2.out
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
Host ohaton
|
||||||
|
LocalForward 3000 localhost:3000
|
||||||
|
LocalForward 3302 localhost:3302
|
||||||
|
LocalForward 3306 localhost:3306
|
25
tests/templates/templates.in
Normal file
25
tests/templates/templates.in
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
__preamble:
|
||||||
|
ssh_props:
|
||||||
|
Port: 22
|
||||||
|
IdentitiesOnly: yes
|
||||||
|
ForwardX11: no
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
# Uni Computers
|
||||||
|
#############################################################################
|
||||||
|
__uni_template:
|
||||||
|
template: __preamble
|
||||||
|
ssh_props:
|
||||||
|
IdentityFile: ~/.ssh/id_ed25519
|
||||||
|
User: emiliko
|
||||||
|
|
||||||
|
ohaton:
|
||||||
|
template: __uni_template
|
||||||
|
ssh_props:
|
||||||
|
Hostname: ohaton.cs.ualberta.ca
|
||||||
|
|
||||||
|
coronation:
|
||||||
|
# Using __uni_template here would make more sense, but ohaton works too
|
||||||
|
template: ohaton
|
||||||
|
ssh_props:
|
||||||
|
Hostname: coronation.cs.ualberta.ca
|
15
tests/templates/templates.out
Normal file
15
tests/templates/templates.out
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
Host ohaton
|
||||||
|
ForwardX11 false
|
||||||
|
Hostname ohaton.cs.ualberta.ca
|
||||||
|
IdentitiesOnly true
|
||||||
|
IdentityFile ~/.ssh/id_ed25519
|
||||||
|
Port 22
|
||||||
|
User emiliko
|
||||||
|
|
||||||
|
Host coronation
|
||||||
|
ForwardX11 false
|
||||||
|
Hostname coronation.cs.ualberta.ca
|
||||||
|
IdentitiesOnly true
|
||||||
|
IdentityFile ~/.ssh/id_ed25519
|
||||||
|
Port 22
|
||||||
|
User emiliko
|
Loading…
Reference in a new issue