From 36945620bc7d82abae2cf76de69c5804f593ed5a Mon Sep 17 00:00:00 2001 From: sasha Date: Thu, 23 Jul 2020 18:41:38 +0300 Subject: [PATCH 1/2] change url to client --- command/ui.go | 2 +- command/ui_test.go | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 command/ui_test.go diff --git a/command/ui.go b/command/ui.go index 8a6c42615..a4f0435a0 100644 --- a/command/ui.go +++ b/command/ui.go @@ -148,7 +148,7 @@ func (c *UiCommand) Run(args []string) int { switch match { case contexts.Nodes: - url.Path = fmt.Sprintf("ui/nodes/%s", fullID) + url.Path = fmt.Sprintf("ui/clients/%s", fullID) case contexts.Allocs: url.Path = fmt.Sprintf("ui/allocations/%s", fullID) case contexts.Jobs: diff --git a/command/ui_test.go b/command/ui_test.go new file mode 100644 index 000000000..f258f118f --- /dev/null +++ b/command/ui_test.go @@ -0,0 +1,6 @@ +package command + + +fucn TestUiCommand(t *testing.T) { + ui := new(cli.MockUi) +} \ No newline at end of file From a00440298dfc410e2e81e18dde84ec27f53d723d Mon Sep 17 00:00:00 2001 From: sasha Date: Thu, 23 Jul 2020 18:44:10 +0300 Subject: [PATCH 2/2] remove test file --- command/ui_test.go | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 command/ui_test.go diff --git a/command/ui_test.go b/command/ui_test.go deleted file mode 100644 index f258f118f..000000000 --- a/command/ui_test.go +++ /dev/null @@ -1,6 +0,0 @@ -package command - - -fucn TestUiCommand(t *testing.T) { - ui := new(cli.MockUi) -} \ No newline at end of file