-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
extract bluecat api code into its own package #2696
extract bluecat api code into its own package #2696
Conversation
Extract all Bluecat Gateway Client code to separate package
Check status codes when API calls are made for gets and deletes. All of the creates were done slightly different and will be updated in a separate commit.
The prefix and suffix for the txt record was not being taken into account when trying to find an owner for a cname and host record. In addition, CName records have to be unique values, therefore txt records need to have either a prefix or suffix included. This fixes the "owner" logic to ensure when checking a corresponding txt recod against a cname record that the prefix or suffix is used when comparing records. Also, correct the response codes for the DELETE calls to Bluecat Gateway
/assign @seanmalloy I would recommend reviewing this PR commit by commit as this has a lot of refactoring |
Consolidating the HTTP requests into a function will help ensure consistency when making HTTP requests to the Bluecat gateway, and in a future commit will make mocking these requests easier
* Move tests to appropriate package * Add test for SplitProperties function * Remove unused helper function * Use table driven tests
baa3916
to
d4927b2
Compare
/kind cleanup |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: seanmalloy, vinny-sabatini The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description
This was a pretty significant overhaul to the Bluecat provider codebase including:
dry-run
modeFixes #2187
Checklist