Commit Graph

6 Commits

Author SHA1 Message Date
Andy Bursavich
74ffff6c26 gofumpt 2022-09-20 20:48:57 -07:00
Vinny Sabatini
3b68190778 provider/bluecat: extract http requests into function
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
2022-04-08 17:39:15 -05:00
Vinny Sabatini
cbe1969511 provider/bluecat: fix txt pre/suffix bug
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
2022-04-08 17:00:58 -05:00
Vinny Sabatini
5296a15fdf provider/bluecat: handle http errors for create in API 2022-04-08 17:00:58 -05:00
Vinny Sabatini
17d4371f60 provider/bluecat: improve api error handling
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.
2022-04-08 17:00:58 -05:00
Vinny Sabatini
83f062fbf7 provider/bluecat: migrate client code to separate pkg
Extract all Bluecat Gateway Client code to separate package
2022-04-08 17:00:48 -05:00