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
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
Chef Expeditor
3091f5d6f0
Bump version to 4.29.3 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-24 19:14:37 +00:00
Clinton Wolfe
a8e58c610b
Merge pull request #5432 from inspec/cw/m1-support
2021-03-24 15:12:48 -04:00
Chef Expeditor
001a4d16db
Bump version to 4.29.2 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-24 02:47:24 +00:00
Clinton Wolfe
c3f36b953d
Merge pull request #5438 from inspec/nm/fix-profile-git-fetcher
2021-03-23 22:45:13 -04:00
Nikita Mathur
628d1561f9
Unnecessary white spaces removed from git fetcher testing files
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-03-23 16:42:52 +05:30
Nikita Mathur
d9bb2649e6
Code refactoring changes for fix #5233
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-03-23 16:20:47 +05:30
Nikita Mathur
d673e840a3
Fix for executing git profiles with default branch not just master
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-03-23 16:20:47 +05:30
Chef Expeditor
8c93d81df4
Bump version to 4.29.1 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-22 20:40:16 +00:00
Chef Expeditor
1773c4056f
Update CHANGELOG.md with details from pull request #5440
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-22 20:37:49 +00:00
Clinton Wolfe
d1d3b3d798
Merge pull request #5439 from inspec/im/update_page_menu_titles
...
Improve resource page menu titles
2021-03-22 16:37:28 -04:00
Clinton Wolfe
b9b96ae539
Merge pull request #5440 from inspec/im/codeowners
...
Update codeowners for docs
2021-03-22 16:36:10 -04:00
IanMadd
aeb8102e43
Update codeowners for docs
...
Signed-off-by: IanMadd <Ian.Maddaus@progress.com>
2021-03-22 11:07:00 -07:00
IanMadd
87a745b245
Improve resource page menu titles
...
Signed-off-by: IanMadd <Ian.Maddaus@progress.com>
2021-03-22 10:58:00 -07:00
Chef Expeditor
9fc1364c07
Bump version to 4.29.0 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-19 14:26:16 +00:00
Clinton Wolfe
f1e118cbaa
Merge pull request #5430 from issue-3181-json-reporter-passthrough-data
2021-03-19 10:24:22 -04:00
Chef Expeditor
55075c294c
Bump version to 4.28.4 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-19 14:21:28 +00:00
Clinton Wolfe
3038ffa807
Merge pull request #5435 from collinmcneese/profile_init
2021-03-19 10:19:26 -04:00
Chef Expeditor
47ac2566c4
Bump version to 4.28.3 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-19 14:17:52 +00:00
Clinton Wolfe
5378a5128b
Merge pull request #5434 from inspec/vasundhara/fix-for-controls-option
2021-03-19 10:16:02 -04:00
Chef Expeditor
9ab75923cf
Bump version to 4.28.2 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2021-03-19 14:11:14 +00:00
Clinton Wolfe
7c9d605125
Merge pull request #5437 from ymotongpoo/master
2021-03-19 10:09:24 -04:00
Vasu1105
513c7be801
Added specific regex as for describe block we genrate random control with some random hex which might contain the number that I have used in the rgex due to which test is failing
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-19 16:57:46 +05:30
Vasu1105
428a8a7194
Added code comments and rename control_list_exist? method to controls_list_exist?
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-19 16:10:12 +05:30
Vasu1105
b180914889
Updated test for --controls option
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-19 16:10:12 +05:30
Vasu1105
9a404f5e0f
Fixed failing test in inputs_test.rb
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-19 16:10:12 +05:30
Vasu1105
2dcd174ff1
minor code fix
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-19 16:10:12 +05:30
Vasu1105
a5932b7da7
Fixes 5215: While using --controls options the control block was also getting evaluated as filtering of the control was happening after evaluating so added the filter logic in the control_eval_context. Also when we have describe block outside control block we are we
...
generating a control for them automatically and then execute due that also becomes a control and has to add same logic to filter the control in that mehtod
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-19 16:10:12 +05:30
Vasu1105
df8d589e25
Removed readme file from test profile
...
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-03-19 16:10:12 +05:30