Commit graph

9125 commits

Author SHA1 Message Date
Tom Duffield
7c1db11621
Update Dobi annotations to address tagging bug
Be explicit when we expect to add the channel and latest tags.

Signed-off-by: Tom Duffield <github@tomduffield.com>
2021-04-19 15:28:08 -05:00
Clinton Wolfe
c3d0c30f3c
Merge pull request #5467 from inspec/nkierpiec/update-omnibus-tests
Update tests to handle local omnibus packages from Buildkite artifacts api
2021-04-19 14:32:27 -04:00
dependabot-preview[bot]
c1102dd2ab
Update faraday requirement from >= 0.9.0, < 1.4 to >= 0.9.0, < 1.5
Updates the requirements on [faraday](https://github.com/lostisland/faraday) to permit the latest version.
- [Release notes](https://github.com/lostisland/faraday/releases)
- [Changelog](https://github.com/lostisland/faraday/blob/main/CHANGELOG.md)
- [Commits](https://github.com/lostisland/faraday/compare/v0.9.0...v1.4.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-19 07:06:54 +00:00
Nathaniel Kierpiec
3c19fb69f7 Update tests to handle local omnibus packages from Buildkite artifacts api
Signed-off-by: Nathaniel Kierpiec <nkierpiec@chef.io>
2021-04-16 10:57:57 -04:00
Clinton Wolfe
1056b84326 Add functional test for --reporter-include-source
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-04-15 16:16:12 -04:00
Chef Expeditor
ddaaa191ef Bump version to 4.32.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-15 20:14:30 +00:00
Clinton Wolfe
ae9159fcb8
Merge pull request #5461 from tobiasbp/patch-2
Update postgres_ident_conf.md
2021-04-15 16:13:02 -04:00
Tobias Balle-Petersen
73d0df4d02
Update postgres_ident_conf.md
pg_ident_conf.where changed to  postgres_ident.conf.where a few places.
2021-04-15 10:07:06 +02:00
Chef Expeditor
7f9c548a3c Executed '.expeditor/update_dockerfile.sh'
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-14 17:38:27 +00:00
Clinton Wolfe
bb8c51dbc7 Initial implementation of listing source in CLI reporter
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-04-13 21:05:53 -04:00
Chef Expeditor
7b2cba6579 Bump version to 4.32.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-14 00:41:45 +00:00
Clinton Wolfe
c57ef924fc
Merge pull request #5452 from inspec/nm/shell-inputs
Added ability to pass inputs to InSpec shell using input file and cli
2021-04-13 20:39:12 -04:00
IanMadd
4c107b273d Docs editing
Signed-off-by: IanMadd <Ian.Maddaus@progress.com>
2021-04-12 16:35:54 -07:00
Nikita Mathur
6a5ad711ed Doc updated for shell on inputs from PR review
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-09 13:12:33 +05:30
Chef Expeditor
ec6a63541a Executed '.expeditor/update_dockerfile.sh'
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-08 20:55:15 +00:00
Chef Expeditor
b3a0687fbe Bump version to 4.31.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-08 19:48:11 +00:00
Clinton Wolfe
d3a32de176
Merge pull request #5455 from inspec/cw/hotfix-timeout-under-kitchen
Use default command timeout value if timeout is 0
2021-04-08 15:46:49 -04:00
Clinton Wolfe
cbf57c3905 Use default command timeout value if timeout is 0
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-04-08 14:53:53 -04:00
Nikita Mathur
8d22d0a360 Code linting issue fixed
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-08 16:04:09 +05:30
Nikita Mathur
53810186dc Documentation for shell inputs added
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-08 13:54:12 +05:30
Nikita Mathur
5865cdd1c4 Added input and input file option for shell, along with functional test cases
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-08 13:54:12 +05:30
Chef Expeditor
499bc99c71 Executed '.expeditor/update_dockerfile.sh'
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-07 18:24:11 +00:00
Chef Expeditor
e8e5d8eb6f Bump version to 4.31.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-07 13:02:12 +00:00
Clinton Wolfe
924ecd367f
Merge pull request #5445 from inspec/cw/add-docker-for-windows
Add --docker-url CLI option
2021-04-07 09:00:37 -04:00
Chef Expeditor
43c9fb5bd4 Bump version to 4.30.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-07 12:51:22 +00:00
Clinton Wolfe
fa41586910
Merge pull request #5446 from inspec/nm/fix-input-hash-access
Bug fix for loading hashmap inputs consistently
2021-04-07 08:49:53 -04:00
Chef Expeditor
e348f8ad3f Bump version to 4.30.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-07 12:44:47 +00:00
Clinton Wolfe
ebc106c135
Merge pull request #5442 from inspec/im/update_platforms
Update platforms doc
2021-04-07 08:42:58 -04:00
Nikita Mathur
82e126726b Improvements in hashmap profiles
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-07 16:09:27 +05:30
Nikita Mathur
094293b01d Refactored logic to enable hash indifference in all input types
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-05 16:10:55 +05:30
Nikita Mathur
ec30fc3d4e Hash with indifference changes for inputs used via runner api
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-05 14:41:35 +05:30
Chef Expeditor
7496992c9c Bump version to 4.30.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-05 02:26:32 +00:00
Clinton Wolfe
8286ec8072
Merge pull request #5443 from inspec/cw/timeouts
Add timeout option to command resource
2021-04-04 22:25:09 -04:00
Clinton Wolfe
ee2f44e1cc Update docs-chef-io/content/inspec/cli.md
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

Co-authored-by: Ian Maddaus <IanMadd@users.noreply.github.com>
2021-04-04 21:50:41 -04:00
Clinton Wolfe
6ff6b9634a Add --docker-url CLI option
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-04-04 21:50:41 -04:00
Clinton Wolfe
2bba45f1a3
Apply docs suggestions from code review
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

Co-authored-by: Ian Maddaus <IanMadd@users.noreply.github.com>
2021-04-04 21:41:46 -04:00
Chef Expeditor
4fa55ebe71 Bump version to 4.29.5 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-04-05 01:35:36 +00:00
Clinton Wolfe
e20c5d309d
Merge pull request #5449 from inspec/IanMadd-patch-1
Update inputs.md
2021-04-04 21:34:15 -04:00
IanMadd
56107c3312 Remove additional instances
Signed-off-by: IanMadd <Ian.Maddaus@progress.com>
2021-04-02 11:36:18 -07:00
Ian Maddaus
d20d8f9d90
Update inputs.md
Signed-off-by: Ian Maddaus <imaddaus@chef.io>

Remove setting input from Audit Cookbook
2021-04-02 10:51:19 -07:00
Nikita Mathur
a55b083b0a Improvements in various descriptions and a better way to check for hash type
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-03-31 12:35:13 +05:30
Nikita Mathur
c0b213c46a Bug fix for loading hashmap inputs consistently from external and metadata file
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-03-31 11:42:54 +05:30
Clinton Wolfe
dfb7f64ba6 Explicitly force default timeout in tests
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-03-29 22:13:11 -04:00
Clinton Wolfe
81305d3270 linting
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-03-29 21:48:41 -04:00
Clinton Wolfe
37ffdd27cb Docs for command ressource timeout
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-03-29 21:46:25 -04:00
Clinton Wolfe
8df0fb0814 Functional tests for command resource timeout
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-03-29 21:46:25 -04:00
Clinton Wolfe
e5b74b5760 Make CLI option take precedence over DSL option if it is nondefault
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-03-29 21:46:25 -04:00
Clinton Wolfe
35b0081c2c Apply suggested fix to maintain SSH connection
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-03-29 21:46:25 -04:00
Clinton Wolfe
6d7f5a240b Convert minutes to seconds for consistent interface
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-03-29 21:46:25 -04:00
James Stocks
9cc9090225 Add command-timeout option
Allow commands to have a timeout, set in minutes. This is considered an emergency mechanism to stop CI being halted indefinitely. If a test inherently needs to pass or fail based on a timeout, this should be scripted into the command string instead.

It can be set for a command resource, like:

```
  describe command('sleep 100', timeout: 1) do
    its('exit_status') { should cmp 0 }
  end
```

It can also be set as a new option `command-timeout`.
A timeout set on a `command` resource takes precedence over the `command-timeout` option.

If no timeout is set at all, a command will default to timing out after 1 hour

Signed-off-by: James Stocks <jstocks@chef.io>
2021-03-29 21:46:25 -04:00