inspec/test/functional
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
..
attributes_test.rb Fix error on empty attributes yaml (#3485) 2018-10-11 09:41:36 -04:00
filter_table_test.rb Silence RSpec 'should' Warning (#3560) 2018-11-07 13:59:48 -05:00
gitfetcher_test.rb Create appvayor workers for Windows functional tests. (#3397) 2018-11-08 12:00:14 -05:00
helper.rb Create appvayor workers for Windows functional tests. (#3397) 2018-11-08 12:00:14 -05:00
inheritance_test.rb Fix functional tests. (#3572) 2018-11-02 12:52:54 -04:00
inspec_archive_test.rb Create appvayor workers for Windows functional tests. (#3397) 2018-11-08 12:00:14 -05:00
inspec_artifact_test.rb Create appvayor workers for Windows functional tests. (#3397) 2018-11-08 12:00:14 -05:00
inspec_check_test.rb ✓ adds additional checks for vendored profiles (#3362) 2018-10-25 14:44:29 -04:00
inspec_detect_test.rb Update shell detect to work with platforms (#2712) 2018-02-20 07:37:23 -05:00
inspec_exec_automate_test.rb Create appvayor workers for Windows functional tests. (#3397) 2018-11-08 12:00:14 -05:00
inspec_exec_json_test.rb Allow end of options during Thor array parsing (#3547) 2018-10-30 06:32:16 -04:00
inspec_exec_jsonmin_test.rb docs: Update example resource (#2904) 2018-04-05 08:50:49 -04:00
inspec_exec_junit_test.rb Create appvayor workers for Windows functional tests. (#3397) 2018-11-08 12:00:14 -05:00
inspec_exec_test.rb Add Git SSH and HTTP basic auth support to inspec exec (#3562) 2018-11-08 15:55:15 -05:00
inspec_json_profile_test.rb Create appvayor workers for Windows functional tests. (#3397) 2018-11-08 12:00:14 -05:00
inspec_report_test.rb Make sure we have a proper exit code and report data. (#2747) 2018-02-26 16:50:51 -05:00
inspec_schema_test.rb Add platforms schema command (#3346) 2018-09-13 15:36:17 -04:00
inspec_shell_test.rb Create appvayor workers for Windows functional tests. (#3397) 2018-11-08 12:00:14 -05:00
inspec_supermakert_test.rb Create appvayor workers for Windows functional tests. (#3397) 2018-11-08 12:00:14 -05:00
inspec_test.rb Update inspec detect to support APIs/Families (#2634) 2018-02-14 15:06:39 -05:00
inspec_vendor_test.rb Fixes (some) ruby warnings related to functional tests (#3561) 2018-11-05 09:59:01 -05:00
plugins_test.rb Plugins: Support for Train Plugins in InSpec (#3444) 2018-09-27 18:46:35 -04:00