Skip to content

Commit cbad2f6

Browse files
nevunNiels Möller
authored andcommitted
cmd/litewitness: fix TestScript/logbastion
1 parent 20f69ef commit cbad2f6

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

cmd/litewitness/testdata/logbastion.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ exec litebastion -listen localhost:9444 -tls-cert localhost.pem -tls-key localho
2828
waitfor localhost:9444
2929

3030
# add a second log and configure it to use the second bastion
31-
exec witnessctl add-sigsum-log -key=7c589ec3432005b91812adef062f4783ce95c6ff502048ce67063c1b84062e34
32-
exec witnessctl add-bastion -origin=example.org/v1/tree/7c589ec3432005b91812adef062f4783ce95c6ff502048ce67063c1b84062e34 -bastion=localhost:9444
31+
exec witnessctl add-sigsum-log -key=018ba3481b45d6d420508e8a081e8e348850bf35549a8452670e2ab488a23ba0
32+
exec witnessctl add-bastion -origin=sigsum.org/v1/tree/7c589ec3432005b91812adef062f4783ce95c6ff502048ce67063c1b84062e34 -bastion=localhost:9444
3333

3434
# reload litewitness to pick up new log and bastion
3535
killall -SIGHUP litewitness
3636
waitfor https://localhost:9444/e933707e0e36c30f01d94b5d81e742da373679d88eb0f85f959ccd80b83b992a/
3737

3838
# test that accessing a log configured for bastion 9444 through bastion 9443 fails with 403
39-
! exec hurl --cacert rootCA.pem --test add-checkpoint-second-log.hurl
39+
exec hurl --cacert rootCA.pem --test add-checkpoint-second-log.hurl
4040

4141
# check that litewitness shut down cleanly
4242
killall
@@ -182,11 +182,11 @@ sigsum.org/v1/tree/7c589ec3432005b91812adef062f4783ce95c6ff502048ce67063c1b84062
182182
1
183183
KgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
184184

185-
— sigsum.org/v1/tree/7c589ec3432005b91812adef062f4783ce95c6ff502048ce67063c1b84062e34
185+
— sigsum.org/v1/tree/7c589ec3432005b91812adef062f4783ce95c6ff502048ce67063c1b84062e34 FT0wb5DnnGeTROo5HF59wmElJqCDyeG7SSE7RekcamqB8ZnuRX88zeGCeQornqgvMB7SNhuwTYn/KsnnK/LDc1pLxw8=
186186
```
187187
HTTP 403
188188
[Asserts]
189-
body contains "wrong bastion"
189+
body contains "bad/missing bastion"
190190

191191
POST https://localhost:9444/e933707e0e36c30f01d94b5d81e742da373679d88eb0f85f959ccd80b83b992a/add-checkpoint
192192
```
@@ -196,6 +196,6 @@ sigsum.org/v1/tree/7c589ec3432005b91812adef062f4783ce95c6ff502048ce67063c1b84062
196196
1
197197
KgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
198198

199-
— sigsum.org/v1/tree/7c589ec3432005b91812adef062f4783ce95c6ff502048ce67063c1b84062e34
199+
— sigsum.org/v1/tree/7c589ec3432005b91812adef062f4783ce95c6ff502048ce67063c1b84062e34 FT0wb5DnnGeTROo5HF59wmElJqCDyeG7SSE7RekcamqB8ZnuRX88zeGCeQornqgvMB7SNhuwTYn/KsnnK/LDc1pLxw8=
200200
```
201201
HTTP 200

0 commit comments

Comments
 (0)