inspec/test
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
..
cookbooks/os_prepare Set a static node GUID for travis. (#3497) 2018-10-11 21:14:30 -04:00
functional Add Git SSH and HTTP basic auth support to inspec exec (#3562) 2018-11-08 15:55:15 -05:00
integration New resource to work with Windows security identifiers (SIDs) (#3405) 2018-10-19 09:01:00 -04:00
unit Add Git SSH and HTTP basic auth support to inspec exec (#3562) 2018-11-08 15:55:15 -05:00
docker_run.rb Doc typo fix (#3551) 2018-11-05 09:11:23 -05:00
docker_test.rb Load all dependent libraries, even if include_context isn't called 2016-09-04 20:55:20 +02:00
helper.rb Update iis_site bindingInformation construction and add tests. (#3490) (#3492) 2018-11-08 13:42:59 -05:00