Skip to content

Commit

Permalink
integration-tests: implement network state dumping verification
Browse files Browse the repository at this point in the history
  • Loading branch information
RaitoBezarius committed May 19, 2023
1 parent 75550de commit aca0b86
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nix/tests/sable.nix
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,14 @@ in {
remote_weechat(f" */connect {name}")
remote_weechat(f"irc.server.{name} */nick {nick}")
remote_weechat(f"irc.server.{name} */join #{channel_to_join}")
def get_network_state(server):
return server.succeed("curl --trace dump --verbose https://localhost:8888/dump-network --cacert ${../../configs/ca_cert.pem} --cert ${../../configs/mgmt.pem} --key ${../../configs/mgmt.key}")
test_server("server-a", "server1", "test-from-a")
test_server("server-b", "server1", "test-from-b")
print(get_network_state(server1))
print(get_network_state(server2))
'';
};
}

0 comments on commit aca0b86

Please sign in to comment.