Skip to content

Commit fe1a8d9

Browse files
--vhost does not make sense in this test
1 parent 7b07e30 commit fe1a8d9

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

src/commands.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ pub fn list_permissions(client: APIClient) -> ClientResult<Vec<responses::Permis
166166

167167
pub fn list_all_parameters(client: APIClient) -> ClientResult<Vec<responses::RuntimeParameter>> {
168168
client.list_runtime_parameters()
169-
}
169+
}
170170

171171
pub fn list_parameters(
172172
client: APIClient,

src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,8 +624,7 @@ fn dispatch_common_subcommand(
624624
res_handler.no_output_on_success(result);
625625
}
626626
("parameters", "list_all") => {
627-
let result =
628-
commands::list_all_parameters(client);
627+
let result = commands::list_all_parameters(client);
629628
res_handler.tabular_result(result)
630629
}
631630
("parameters", "list") => {

tests/runtime_parameters_tests.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,8 @@ fn test_runtime_parameters_cmd_group() -> Result<(), Box<dyn std::error::Error>>
8787
"{\"uri\":\"amqp://target.hostname\",\"expires\":3600000}",
8888
]);
8989

90-
run_succeeds([
91-
"-V",
92-
vh,
93-
"parameters",
94-
"list_all"
95-
]).stdout(predicate::str::contains("my-upstream").and(predicate::str::contains("3600000")));
90+
run_succeeds(["parameters", "list_all"])
91+
.stdout(predicate::str::contains("my-upstream").and(predicate::str::contains("3600000")));
9692

9793
run_succeeds([
9894
"-V",
@@ -101,7 +97,8 @@ fn test_runtime_parameters_cmd_group() -> Result<(), Box<dyn std::error::Error>>
10197
"list",
10298
"--component",
10399
"federation-upstream",
104-
]).stdout(predicate::str::contains("my-upstream").and(predicate::str::contains("3600000")));
100+
])
101+
.stdout(predicate::str::contains("my-upstream").and(predicate::str::contains("3600000")));
105102

106103
run_succeeds([
107104
"-V",
@@ -110,7 +107,8 @@ fn test_runtime_parameters_cmd_group() -> Result<(), Box<dyn std::error::Error>>
110107
"list_in",
111108
"--component",
112109
"federation-upstream",
113-
]).stdout(predicate::str::contains("my-upstream").and(predicate::str::contains("3600000")));
110+
])
111+
.stdout(predicate::str::contains("my-upstream").and(predicate::str::contains("3600000")));
114112

115113
run_succeeds([
116114
"-V",

0 commit comments

Comments
 (0)