Skip to content

Conversation

@jaer-tsun
Copy link
Contributor

What this PR does / why we need it:
Adding CircleCI config for unit testing.

hostQueryForProgrammedVersionResponse = `{"httpStatusCode":"200","networkContainerId":"eab2470f-test-test-test-b3cd316979d5","version":"1"}`
hostQueryResponse = xmlDocument{
XMLName: xml.Name{Local: "Interfaces"},
Interface: []Interface{Interface{
Copy link
Contributor

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.

return &DockerClient{
connectionURL: url,
imdsClient: &imdsclient.ImdsClient{},
imdsClient: &imdsclient.ImdsClient{HostQueryURL: imdsclient.HostQueryURL, HostQueryURLForProgrammedVersion: imdsclient.HostQueryURLForProgrammedVersion},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line break

Copy link
Contributor

@saiyan86 saiyan86 left a 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)
Copy link
Contributor

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)
Copy link
Contributor

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

@sharmasushant sharmasushant merged commit 431ac08 into Azure:master Aug 14, 2018
@jaer-tsun jaer-tsun deleted the circleci branch August 16, 2018 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants