Commit graph

9061 commits

Author SHA1 Message Date
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
Chef Expeditor
86128f5557 Bump version to 4.29.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-25 19:24:42 +00:00
Clinton Wolfe
47df0a7440
Merge pull request #5441 from inspec/vasundhara/fix-deprecation-warnings 2021-03-25 15:22:53 -04:00
Chef Expeditor
2f80870689 Executed '.expeditor/update_dockerfile.sh'
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-25 18:40:47 +00:00
Vasu1105
a2d3218536 Disable rubocop for begin block
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-25 22:00:12 +05:30
Vasu1105
edf8d4d7ed Skipping on windows
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-25 21:04:46 +05:30
Vasu1105
a0d669a0f0 Updated test so that can run in the test enviornment
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-25 19:15:50 +05:30
Vasu1105
7c25a2b5df Updated test
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-25 15:50:23 +05:30
Vasu1105
abde524470 Fixed lint and added code comments
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-25 15:50:23 +05:30
Vasu1105
9af59c2164 Fixes #5369 the FilterTable::ExceptionCatcher error and now shows exact exception message
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-25 15:50:23 +05:30
Vasu1105
0a62a6ac3b Added functional test for FilterTable::ExceptionCatcher
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-25 15:50:22 +05:30
Vasu1105
45e9288e90 Revert "Profile to test the FilterTable::ExceptionCatcher issue"
This reverts commit 33e096f0854c0f156130fe610ab3ab8f8b65cad4.
2021-03-25 15:50:22 +05:30
Vasu1105
805cf46848 Profile to test the FilterTable::ExceptionCatcher issue
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-25 15:50:22 +05:30
Vasu1105
8a77b740db Fixes deprecation warning messages for respond_to? method
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-25 15:50:22 +05:30
IanMadd
bcf20a32b3 Update platforms doc
Signed-off-by: IanMadd <Ian.Maddaus@progress.com>
2021-03-24 12:57:32 -07:00