aboutsummaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-02-15 12:36:37 +0700
committerShulhan <ms@kilabit.info>2026-02-15 12:36:37 +0700
commit827a2741e4fcb8e6feb5bf76acb20799c2913451 (patch)
tree468c533edc4bbc3cbe37ed27260ed033ec87cb99 /testdata
parent1aa46846bc1bfe64c1608e8a536b1732cc3d3b1a (diff)
downloadawwan-827a2741e4fcb8e6feb5bf76acb20799c2913451.tar.xz
all: fix integration tests from previous refactoring
When we made the refactoring, we forgot to run the test-integration task which cause some tests are fails.
Diffstat (limited to 'testdata')
-rw-r--r--testdata/http_server/play_ssh_config_changes/test.data20
-rw-r--r--testdata/play/awwanssh.test/play_test.data17
2 files changed, 24 insertions, 13 deletions
diff --git a/testdata/http_server/play_ssh_config_changes/test.data b/testdata/http_server/play_ssh_config_changes/test.data
index 00a6941..f9580b5 100644
--- a/testdata/http_server/play_ssh_config_changes/test.data
+++ b/testdata/http_server/play_ssh_config_changes/test.data
@@ -23,13 +23,17 @@ Host oldhost
"begin_at": "2023-11-26T15:21:00Z",
"end_at": "",
"error": "",
- "output": []
+ "output": [
+ {
+ "Type": "begin",
+ "Data": "2023-11-26T15:21:00Z",
+ "ID": "1"
+ }
+ ]
},
"code": 200
}
-<<< play_on_oldhost:output
-
>>> .ssh/config:newhost
Host oldhost
Hostname 127.0.0.1
@@ -60,9 +64,13 @@ Host newhost
"begin_at": "2023-11-26T15:21:00Z",
"end_at": "",
"error": "",
- "output": []
+ "output": [
+ {
+ "Type": "begin",
+ "Data": "2023-11-26T15:21:00Z",
+ "ID": "1"
+ }
+ ]
},
"code": 200
}
-
-<<< play_on_newhost:output
diff --git a/testdata/play/awwanssh.test/play_test.data b/testdata/play/awwanssh.test/play_test.data
index e67163f..0a0c88d 100644
--- a/testdata/play/awwanssh.test/play_test.data
+++ b/testdata/play/awwanssh.test/play_test.data
@@ -1,11 +1,14 @@
Test on "play" command.
-<<< play_with_local:output
- --- SSH connection: awwanssh@127.0.0.1:10022
- --- SSH identity file: [/home/awwan/.ssh/id_ed25519]
- === BEGIN: play testdata/play/awwanssh.test/play.aww 1-
- --> 2: pwd
+<<< play_with_local:stdout
+ --- SSH connection: awwanssh@127.0.0.1:10022
+ --- SSH identity file: [/home/awwan/.ssh/id_ed25519]
+ === BEGIN: play testdata/play/awwanssh.test/play.aww 1-
+ --> 2: pwd
+ --> 5: #local: pwd
+ === END: play testdata/play/awwanssh.test/play.aww 1-
+
+<<< play_with_local:stderr
/home/awwanssh
- --> 5: #local: pwd
/home/awwan/src
- === END: play testdata/play/awwanssh.test/play.aww 1-
+