Commit Graph
38 Commits
Author SHA1 Message Date
Chris Marchesi 6ce3e27677 Merge pull request #8 from hashicorp/update-readme-cli-example
Update README to have full, correct examples
2022-01-04 16:47:53 -08:00
Chris Marchesi d348501d34 Add examples for providing multiple filters 2022-01-04 16:04:22 -08:00
Chris Marchesi 9f25f80ba9 Update README to have full, correct examples
This updates the README to have full examples for both host set and host
catalog creation, and also corrects an incorrect example in the JSON
example (tag-name was supposed to be tag-key).

Additionally, I've removed the JSON example as it's no longer needed as
the CLI corrects accepts filter names with dashes with the work
performed in #2 and #4.
2022-01-04 15:06:59 -08:00
Chris Marchesi e565bad027 Merge pull request #7 from hashicorp/vancluever-add-dns-names
plugin: add DNS names
2021-12-06 15:21:53 -08:00
Chris Marchesi 7a07ac42c0 add default address/DNS check/add for interface, not just whole instance 2021-12-06 11:40:44 -08:00
Chris Marchesi 13469e3594 plugin: add DNS names
This adds DNS names to the output for host queries.

Hosts are discovered in private, then public order, first at the
top-level, and then through attached network interfaces. This mirrors
the discovery order of IP addresses.
2021-12-03 13:24:48 -08:00
Chris Marchesi 88e5224f69 Merge pull request #6 from hashicorp/vancluever-add-unknown-attr-checks-fix-tests
plugin: add unknown attr checks, fix E2E test
2021-11-22 16:18:24 -08:00
Chris Marchesi 3e2f459f04 Remove unknown field assertion from awsCatalogPersistedStateFromProto 2021-11-22 16:16:24 -08:00
Chris Marchesi f22e129d92 Switch attribute getters to use GetFields/AsInterface from AsMap 2021-11-22 16:11:33 -08:00
Chris Marchesi 5777870592 e2e ListHosts test was working off multiple sets with a single tag 2021-11-18 11:18:32 -08:00
Chris Marchesi 07270a7457 plugin: add unknown attr checks, fix E2E test
This adds checks for unknown attributes through the entire plugin
lifecycle for all attributes, secrets, and persisted state.

It also fixes the E2E test which seems to have drifted.
2021-11-16 17:29:17 -08:00
Chris Marchesi 85626c6dd4 Merge pull request #5 from hashicorp/vancluever-remove-testing-todo
plugin: Remove TODO from E2E test covering rotated -> not rotated
2021-11-16 09:39:52 -08:00
Chris Marchesi 38bcd34baf plugin: Remove TODO from E2E test covering rotated -> not rotated
...when no new credentials are supplied. This was initially not covered
when the E2E tests were written but was added later once we the mocks
necessary to do unit testing to get error coverage.
2021-11-15 15:26:15 -08:00
Chris Marchesi c99fc3dbcf Grammar correction in README 2021-10-07 16:27:22 -07:00
Chris Marchesi 5475c6344f clarify how to supply filters for AWS host sets 2021-10-07 16:23:39 -07:00
Chris Marchesi 9099292d03 Don't ignore non-running instances, rely on filter instead
We now add the instance-state = ["running"] filter to all queries if
instance-state is not explicitly defined beforehand. This should ensure
that all queries return running instances beforehand (saving some
post-processing later too).

As such, I'm removing an artifact of the old code where we were not
doing this, which was basically to skip all running instances.

Additionally, this will allow an operator to include non-running
instances in a filter should this be desired for whatever reason.
2021-10-07 14:15:32 -07:00
Chris Marchesi 9a5e4016fa most of the remaining unit testing added 2021-10-07 12:40:55 -07:00
Chris Marchesi 00907f72cc more error coverage 2021-10-06 16:53:11 -07:00
Chris Marchesi 6d9338d8a0 more error test coverage 2021-10-06 12:47:05 -07:00
Chris Marchesi a7401ef2d5 More unit testing and addins of mocks from awsutil 2021-10-05 16:36:53 -07:00
Chris Marchesi f7c5709046 WIP - more unit testing 2021-09-30 17:05:30 -07:00
Chris Marchesi cb00f0cb7a Another small README fix 2021-09-30 09:43:21 -07:00
Chris Marchesi 88ab7c8dcf Fix some references in the README 2021-09-30 09:40:55 -07:00
Chris Marchesi d74ed15bdc Update README with options 2021-09-30 09:35:19 -07:00
Chris Marchesi a934f88f54 Add readme and license 2021-09-29 15:33:03 -07:00
Chris Marchesi 6345faccf5 fix project paths 2021-09-28 10:56:09 -07:00
Chris Marchesi d98e41f91c adding some coverage for some error cases 2021-09-27 16:47:51 -07:00
Chris Marchesi 8db12c2775 update to latest SDK, add set ID reporting 2021-09-27 15:30:37 -07:00
Chris Marchesi 08fac13f71 E2E testing complete 2021-09-24 12:47:57 -07:00
Chris Marchesi 6598a2d68a more wip, adding a bunch more testing stuff 2021-09-23 17:24:54 -07:00
Chris Marchesi b61d0ba244 more WIP: lots of fun testing 2021-09-22 17:00:37 -07:00
Chris Marchesi 01855d28f7 fix test TF infra, add TF manager for testing 2021-09-21 15:04:49 -07:00
Chris Marchesi 7fe7b6b2c3 initial test terraform (wip) 2021-09-20 16:52:15 -07:00
Chris Marchesi 84353f46b9 more WIP, got things fixed to the point where it builds 2021-09-20 11:13:59 -07:00
Chris Marchesi 544c8fce5b even more WIP 2021-09-17 16:56:01 -07:00
Chris Marchesi efa2f78a73 more WIP 2021-09-17 12:32:08 -07:00
Chris Marchesi 769daf7398 WIP 2021-09-16 17:54:32 -07:00
Chris Marchesi 1e6761885e initial commit 2021-09-15 17:06:09 -07:00