inspec/lib/bundles
Jerry Aldrich III 91403d8c81 Add Chef Automate support to inspec compliance login (#2203)
* Merge `login` and `login_automate` commands

This provides a single interface for logging into either Chef Automate
or Chef Compliance servers. Server type is evaluated at run time via
HTTP responses from designated endpoints.

This also moves the login logic from `Compliance::ComplianceCLI` to a
separate set of modules in `Compliance::API`. This removes logic from
Thor and allows for more in depth Unit testing.

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>

* Remove empty line below class definition

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>

* Add message to `raise CannotDetermineServerType`

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>

* Refactor `token_info` assignment

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>

* Remove unnecessary rubocop disable

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>

* Modify `Login` module namespacing

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>

* Remove mentions of login_automate and --usertoken

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>

* Modify `determine_server_type` to return a symbol

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>

* Add support for `login_automate` and `--usertoken`

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>

* Fix encoding typo

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>

* Address PR feedback

This does the following:
  - Moves `CannotDetermineServerType` error to `.login`
  - Changes methods that store configuration to return the configuration
  - Moves user output to one location in `.login`
  - Makes other small improvements

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2017-10-26 17:32:47 +02:00
..
inspec-artifact Address rubocop violations 2017-02-08 16:49:16 -06:00
inspec-compliance Add Chef Automate support to inspec compliance login (#2203) 2017-10-26 17:32:47 +02:00
inspec-habitat Add inspec habitat profile setup command (#2239) 2017-10-17 14:53:41 +02:00
inspec-init Update the profile tempate (#2238) 2017-10-11 14:31:44 +01:00
inspec-supermarket Feature/fix ability to pass in supermarket url (#1595) 2017-03-29 12:42:24 -04:00
inspec-artifact.rb adds profile signing/verification 2016-10-27 14:44:10 +02:00
inspec-compliance.rb add integration tests for compliance plugin 2016-04-29 01:12:53 +02:00
inspec-habitat.rb Adding a Habitat profile artifact creator 2017-02-23 18:25:22 -05:00
inspec-init.rb rename generate to init 2016-02-14 21:26:37 +01:00
inspec-supermarket.rb fix: remove non-existent class 2016-05-10 13:18:33 +02:00
README.md add registry for cli plugins 2016-02-05 14:06:55 +01:00

InSpec Bundled Plugins

This directory contains bundled InSpec plugins. Those plugins are shipped with InSpec temporarily only. Over the next months we are going to stabilize the InSpec Plugin API. Once this API reached stability, all bundled plugins will be externalized.