-
Notifications
You must be signed in to change notification settings - Fork 260
Circleci #220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Circleci #220
Conversation
| hostQueryForProgrammedVersionResponse = `{"httpStatusCode":"200","networkContainerId":"eab2470f-test-test-test-b3cd316979d5","version":"1"}` | ||
| hostQueryResponse = xmlDocument{ | ||
| XMLName: xml.Name{Local: "Interfaces"}, | ||
| Interface: []Interface{Interface{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
create some variables to avoid deep nesting for readability.
cns/dockerclient/dockerclient.go
Outdated
| return &DockerClient{ | ||
| connectionURL: url, | ||
| imdsClient: &imdsclient.ImdsClient{}, | ||
| imdsClient: &imdsclient.ImdsClient{HostQueryURL: imdsclient.HostQueryURL, HostQueryURLForProgrammedVersion: imdsclient.HostQueryURLForProgrammedVersion}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line break
saiyan86
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
create flag for const string
| fmt.Println(err.Error()) | ||
| } | ||
|
|
||
| nmAgentServer.AddHandler("/getInterface", getInterfaceInfo) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
create flag for const string
| } | ||
|
|
||
| nmAgentServer.AddHandler("/getInterface", getInterfaceInfo) | ||
| nmAgentServer.AddHandler("machine/plugins/?comp=nmagent&type=NetworkManagement/interfaces/{interface}/networkContainers/{networkContainer}/authenticationToken/{authToken}/api-version/{version}", getContainerInfo) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
create flag for const string
What this PR does / why we need it:
Adding CircleCI config for unit testing.