From fd37a3a25b83e839b97d114cce46c776ce6ed870 Mon Sep 17 00:00:00 2001 From: Nick Klauer Date: Sat, 23 Sep 2017 10:11:46 -0500 Subject: [PATCH] rename Weblogic to WebLogic --- wls/client_test.go | 2 +- wls/servers.go | 4 ++-- wls/servers_test.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wls/client_test.go b/wls/client_test.go index f7a27d6..3b4369e 100644 --- a/wls/client_test.go +++ b/wls/client_test.go @@ -80,7 +80,7 @@ func TestServerResourceRelatedCalls(t *testing.T) { {server.ClusterName, ""}, {server.State, "RUNNING"}, {server.CurrentMachine, "machine-0"}, - {server.WeblogicVersion, "WebLogic Server 12.1.1.0.0 Thu May 5 01:17:16 2011 PDT"}, + {server.WebLogicVersion, "WebLogic Server 12.1.1.0.0 Thu May 5 01:17:16 2011 PDT"}, {fmt.Sprint(server.OpenSocketsCurrentCount), "2"}, {server.Health, "HEALTH_OK"}, {fmt.Sprint(server.HeapSizeCurrent), "536870912"}, diff --git a/wls/servers.go b/wls/servers.go index eb39443..caafecf 100644 --- a/wls/servers.go +++ b/wls/servers.go @@ -15,7 +15,7 @@ type Server struct { Health string `json:"health"` ClusterName string `json:"clusterName,omitempty"` CurrentMachine string `json:",omitempty"` - WeblogicVersion string `json:",omitempty"` + WebLogicVersion string `json:",omitempty"` OpenSocketsCurrentCount float64 `json:",omitempty"` HeapSizeCurrent int `json:",omitempty"` HeapFreeCurrent int `json:",omitempty"` @@ -40,7 +40,7 @@ func (s *Server) GoString() string { buffer.WriteString(fmt.Sprintf("Cluster: %-14v| CurrentMachine: %-14v| JVM Load: %-55v\n", s.ClusterName, s.CurrentMachine, s.JvmProcessorLoad)) buffer.WriteString(fmt.Sprintf("Sockets #: %-14v| Heap Sz Cur: %-14v| Heap Free Cur: %-55v\n", s.OpenSocketsCurrentCount, s.HeapSizeCurrent, s.HeapFreeCurrent)) buffer.WriteString(fmt.Sprintf("Java Ver: %-14v| OS Name: %-14v| OS Version: %-55v\n", s.JavaVersion, s.OsName, s.OsVersion)) - buffer.WriteString(fmt.Sprintf("WLS Version: %-14v\n", s.WeblogicVersion)) + buffer.WriteString(fmt.Sprintf("WLS Version: %-14v\n", s.WebLogicVersion)) return buffer.String() } diff --git a/wls/servers_test.go b/wls/servers_test.go index 0182e85..1f30e54 100644 --- a/wls/servers_test.go +++ b/wls/servers_test.go @@ -101,7 +101,7 @@ func TestUnmarshalSingleServer(t *testing.T) { {server.ClusterName, ""}, {server.State, "RUNNING"}, {server.CurrentMachine, "machine-0"}, - {server.WeblogicVersion, "WebLogic Server 12.1.1.0.0 Thu May 5 01:17:16 2011 PDT"}, + {server.WebLogicVersion, "WebLogic Server 12.1.1.0.0 Thu May 5 01:17:16 2011 PDT"}, {fmt.Sprint(server.OpenSocketsCurrentCount), "2"}, {server.Health, "HEALTH_OK"}, {fmt.Sprint(server.HeapSizeCurrent), "536870912"},