Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes rpc commands naming from snake case to lower case #144

Merged
merged 1 commit into from
Nov 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion teos/src/cli_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use serde::Deserialize;
use structopt::StructOpt;

#[derive(Debug, StructOpt, Clone)]
#[structopt(rename_all = "snake_case")]
#[structopt(rename_all = "lower_case")]
pub enum Command {
/// Gets information about all appointments stored in the tower
GetAllAppointments,
Expand Down
10 changes: 5 additions & 5 deletions watchtower-plugin/tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_watchtower(node_factory, bitcoind, teosd):
l1, l2 = node_factory.line_graph(2, opts=[{"allow_broken_log": True}, {"plugin": "watchtower-client"}])

# We need to register l2 with the tower
tower_id = teosd.cli.get_tower_info()["tower_id"]
tower_id = teosd.cli.gettowerinfo()["tower_id"]
l2.rpc.registertower(tower_id)

# Force a new commitment
Expand Down Expand Up @@ -94,7 +94,7 @@ def test_unreachable_watchtower(node_factory, bitcoind, teosd):
)

# We need to register l2 with the tower
tower_id = teosd.cli.get_tower_info()["tower_id"]
tower_id = teosd.cli.gettowerinfo()["tower_id"]
l2.rpc.registertower(tower_id)

# Stop the tower
Expand All @@ -120,7 +120,7 @@ def test_retry_watchtower(node_factory, bitcoind, teosd):
)

# We need to register l2 with the tower
tower_id = teosd.cli.get_tower_info()["tower_id"]
tower_id = teosd.cli.gettowerinfo()["tower_id"]
l2.rpc.registertower(tower_id)

# Stop the tower
Expand Down Expand Up @@ -158,7 +158,7 @@ def test_misbehaving_watchtower(node_factory, bitcoind, teosd, directory):
l1, l2 = node_factory.line_graph(2, opts=[{}, {"plugin": "watchtower-client", "allow_broken_log": True}])

# We need to register l2 with the tower
tower_id = teosd.cli.get_tower_info()["tower_id"]
tower_id = teosd.cli.gettowerinfo()["tower_id"]
l2.rpc.registertower(tower_id)

# Restart overwriting the tower private key
Expand All @@ -175,7 +175,7 @@ def test_get_appointment(node_factory, bitcoind, teosd, directory):
l1, l2 = node_factory.line_graph(2, opts=[{"allow_broken_log": True}, {"plugin": "watchtower-client"}])

# We need to register l2 with the tower
tower_id = teosd.cli.get_tower_info()["tower_id"]
tower_id = teosd.cli.gettowerinfo()["tower_id"]
l2.rpc.registertower(tower_id)

# Force a new commitment
Expand Down