improve logging and fix lint issues
This commit is contained in:
1 parent
8c3df0003f
commit
394df46889
35 files changed
+667
-423
No files matched your search
@@ -16,6 +16,7 @@ limitations under the License.
|
||||
|
||||
package objects
|
||||
|
||||
// CommandArgs is a warpper for cmd args
|
||||
type CommandArgs struct {
|
||||
Command string
|
||||
SubCommand string
|
||||
@@ -25,6 +26,7 @@ type CommandArgs struct {
|
||||
EnvironmentVariable []string
|
||||
}
|
||||
|
||||
//CommandOut is a wrapper for cmd out returned after executing command args
|
||||
type CommandOut struct {
|
||||
StdOut string
|
||||
StdErr string
|
||||
|
||||
@@ -18,25 +18,30 @@ package objects
|
||||
|
||||
import "github.com/rook/rook/tests/framework/contracts"
|
||||
|
||||
//DockerContext is wrapperr for docker client
|
||||
type DockerContext struct {
|
||||
containerId string
|
||||
containerID string
|
||||
dockerClient contracts.IDockerClient
|
||||
}
|
||||
|
||||
//SetDockerContext function sets docker context instance
|
||||
func SetDockerContext(dockerClient contracts.IDockerClient) DockerContext {
|
||||
return DockerContext{dockerClient: dockerClient}
|
||||
}
|
||||
|
||||
func (d *DockerContext) Get_ContainerId() string {
|
||||
return d.containerId
|
||||
//GetContainerID gets container Id from dockerContext instance
|
||||
func (d *DockerContext) GetContainerID() string {
|
||||
return d.containerID
|
||||
}
|
||||
|
||||
func (d *DockerContext) Set_ContainerId(containerId string) string {
|
||||
d.containerId = containerId
|
||||
//SetContainerID sets container Id on dockerContext instance
|
||||
func (d *DockerContext) SetContainerID(containerID string) string {
|
||||
d.containerID = containerID
|
||||
|
||||
return containerId
|
||||
return containerID
|
||||
}
|
||||
|
||||
func (d *DockerContext) Get_DockerClient() contracts.IDockerClient {
|
||||
//GetDockerClient returns docker client instance
|
||||
func (d *DockerContext) GetDockerClient() contracts.IDockerClient {
|
||||
return d.dockerClient
|
||||
}
|
||||
@@ -20,6 +20,7 @@ import (
|
||||
"flag"
|
||||
)
|
||||
|
||||
//EnvironmentManifest contains informaton about system under test
|
||||
type EnvironmentManifest struct {
|
||||
K8sVersion string
|
||||
Platform string
|
||||
@@ -29,6 +30,7 @@ type EnvironmentManifest struct {
|
||||
LoadConcurrentRuns int
|
||||
}
|
||||
|
||||
//NewManifest creates a new instance of EnvironmentManifest
|
||||
func NewManifest() EnvironmentManifest {
|
||||
e := EnvironmentManifest{}
|
||||
|
||||
|
||||
Reference in new issue
Block a user