inspec/test/unit
Jerry Aldrich 6ba4aaf630 Add Git SSH and HTTP basic auth support to inspec exec (#3562)
* Add support for `git@` and HTTP basic auth

This adds support for the following:

```
inspec exec git@github.com:private/example_profile
inspec exec https://username:token@github.com/private/example_profile
inspec exec https://username:password@webserver/private/example_profile
```

This also uses the Git fetcher when the URL ends in `.git`. Example:

```
git config credential.helper cache
git ls-remote https://github.com/private/example_profile.git
inspec exec https://github.com/private/example_profile.git
```

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

* Add documentation for `inspec exec` usage

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

* Add tests for Git fetcher and `inspec exec`

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

* Add `opts` to branch of Git fetcher resolve logic

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

* Modify Git example comments

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

* Force `parse_uri` to attempt a parse

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-11-08 15:55:15 -05:00
..
bundles/inspec-supermarket Move compliance to v2 plugin (#3423) 2018-10-04 14:31:39 -04:00
dependencies Add parent_profile field in json output (#3164) 2018-06-26 13:04:31 -04:00
dsl Allow add_test to accept negation (#3586) 2018-11-08 12:48:12 -05:00
fetchers Add Git SSH and HTTP basic auth support to inspec exec (#3562) 2018-11-08 15:55:15 -05:00
mock Update iis_site bindingInformation construction and add tests. (#3490) (#3492) 2018-11-08 13:42:59 -05:00
objects Update the text on the generic default attribute (#3508) 2018-10-15 12:15:17 -04:00
plugin Change Inspec to InSpec where appropriate (#3494) 2018-10-15 12:09:46 -04:00
profiles Inspec 3.0 (#3512) 2018-10-15 18:25:27 -04:00
reporters Add support for multiple descriptions for controls (#3424) 2018-09-26 13:28:57 -04:00
resource_supports/aws Capture ArgumentErrors from aws. (#2673) 2018-02-17 16:50:35 +01:00
resources Update iis_site bindingInformation construction and add tests. (#3490) (#3492) 2018-11-08 13:42:59 -05:00
source_readers Inspec 3.0 (#3512) 2018-10-15 18:25:27 -04:00
utils nginx_conf resource: Fix include paths with quotes (#2726) 2018-05-03 09:53:20 -04:00
attribute_registry_test.rb Grammar correction in error message: use "an" with attribute and unknown (#3439) 2018-09-25 11:13:56 -04:00
base_cli_test.rb Inspec 3.0 (#3512) 2018-10-15 18:25:27 -04:00
cached_fetcher.rb Cached profiles with Compliance Fetcher (#3221) 2018-08-28 09:11:38 -04:00
file_provider_test.rb Inspec 3.0 (#3512) 2018-10-15 18:25:27 -04:00
helper.rb Rely on unit test helper to load resources, not individual AWS tests 2018-02-07 12:09:08 -05:00
impact_test.rb Add string impact options for controls (#3359) 2018-09-13 14:14:05 -04:00
runner_test.rb Update to safe navigation exit code skip search. (#3541) 2018-10-24 15:08:07 -04:00
shell_detector_test.rb Corrected some unit test warnings (#2242) 2017-10-17 14:49:26 +02:00