Skip to content
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

Introduce request builder with headers #218

Conversation

smalisetti-infoblox
Copy link
Contributor

@smalisetti-infoblox smalisetti-infoblox commented Jan 10, 2024

the new type can be used like the following

header := make(http.Header)
header.Add("x", "1")
header.Add("y", "2")

wrb, _ := NewWapiRequestBuilder(hostCfg, authCfg)
wrbh, err := NewWapiRequestBuilderWithHeaders(wrb, header)

@smalisetti-infoblox smalisetti-infoblox changed the title Introduce new request builder with headers Introduce request builder with headers Jan 10, 2024

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)

func TestHeaderRequestBuilder_BuildRequest(t *testing.T) {
header := make(http.Header)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you please add as Describe function similar to other Describe functions?

Copy link
Collaborator

@hemanthKa677 hemanthKa677 left a comment

Choose a reason for hiding this comment

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

test case is working fine. Looks good for me.

@hemanthKa677 hemanthKa677 merged commit 4632604 into infobloxopen:master Jan 11, 2024
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