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

Adds condition for 'name' parameter in A record for uppercase letters #208

Merged
merged 3 commits into from
Jun 12, 2023

Conversation

hemanthKa677
Copy link
Collaborator

This PR just adds the condition for A Record, if any uppercase letters exists in the 'name' parameter value. As NIOS internally converts the uppercase letters to lower case, hence to maintain consistency with NIOS and plugin, this changes are being made.

@@ -82,6 +86,10 @@ func (objMgr *ObjectManager) UpdateARecord(
"'name' argument is expected to be non-empty and it must NOT contain leading/trailing spaces")
}

if name != strings.ToLower(name) {
Copy link
Contributor

Choose a reason for hiding this comment

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

remove strings.ToLower from line #83

objMgr = NewObjectManager(conn, cmpType, tenantID)

_, err = objMgr.UpdateARecord(initRef, newDnsName, ipAddr, "", "", ttl, useTtl, "some comment", nil)
Expect(err).ToNot(BeNil())
Copy link
Contributor

Choose a reason for hiding this comment

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

Please, check against a specific error message text. Besides, could you please add a test case about leading and trailing spaces?

@skudriavtsev skudriavtsev merged commit 3ef0d77 into infobloxopen:master Jun 12, 2023
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.

2 participants