forked from hyperledger/besu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow dashes in ethstats password (hyperledger#5090)
Signed-off-by: Simon Dudley <[email protected]>
- Loading branch information
1 parent
21a3524
commit 5e4c7b6
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
|
||
public class NetstatsUrlTest { | ||
|
||
private final String VALID_NETSTATS_URL = "Dev-Node-1:[email protected]:3001"; | ||
private final String VALID_NETSTATS_URL = "Dev-Node-1:secret-with-dashes@127.0.0.1:3001"; | ||
|
||
private final String CONTACT = "[email protected]"; | ||
|
||
|
@@ -34,7 +34,7 @@ public void buildWithValidParams() { | |
assertThat(netstatsUrl.getHost()).isEqualTo("127.0.0.1"); | ||
assertThat(netstatsUrl.getNodeName()).isEqualTo("Dev-Node-1"); | ||
assertThat(netstatsUrl.getPort()).isEqualTo(3001); | ||
assertThat(netstatsUrl.getSecret()).isEqualTo("secret"); | ||
assertThat(netstatsUrl.getSecret()).isEqualTo("secret-with-dashes"); | ||
assertThat(netstatsUrl.getContact()).isEqualTo(CONTACT); | ||
} | ||
|
||
|