Nikita Mathur
a23dd75ae7
Better test name for automate login invalid token
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-05-10 13:04:34 +05:30
Nikita Mathur
ca4cc26319
Automate login to validate token before storing configurations
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-05-10 13:04:34 +05:30
Nikita Mathur
39680e7926
Chef automate product name changes in messages
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-05-05 17:57:31 +05:30
Nikita Mathur
6d140b89b6
Review changes related to inspec compliance to be treated as backward compatible alias
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-05-04 19:04:54 +05:30
Nikita Mathur
072a8c438f
Presenting automate command as alias in both the content and dev docs
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-05-03 13:45:56 +05:30
Nikita Mathur
a4d822ae43
Inspec automate command extended for compliances
...
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-30 17:20:03 +05:30
Collin McNeese
fa327ab55c
updates readme for profile inits to reference inputs instead of attributes
...
Signed-off-by: Collin McNeese <cmcneese@chef.io>
2021-03-17 11:28:20 -05:00
Collin McNeese
9da7a7338d
updates aws profile init to use inputs instead of attributes
...
Signed-off-by: Collin McNeese <cmcneese@chef.io>
2021-03-17 09:19:11 -05:00
Collin McNeese
2f4dc632a1
Updates GCP profile init to use inputs instead of attributes
...
Signed-off-by: Collin McNeese <cmcneese@chef.io>
2021-03-17 09:15:10 -05:00
Clinton Wolfe
cdfb325ca3
Apply chefstyle -a, and manually remove duplicate requires
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-12-21 13:25:04 -05:00
Pete Higgins
edf4a9838a
Fix link to documentation image.
...
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
2020-12-07 17:18:03 -08:00
James Stocks
cbad55aec9
Tweak JUnit plugin docs
...
Signed-off-by: James Stocks <jstocks@chef.io>
Co-authored-by: mjingle <mjinglewski@chef.io>
2020-09-22 15:46:20 +01:00
James Stocks
48054ef2d1
Update documentation for junit plugins
...
Signed-off-by: James Stocks <jstocks@chef.io>
2020-09-22 14:15:01 +01:00
Clinton Wolfe
b3f72f5854
Implement a corrected junit2 reporter that can be validated
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-09-22 11:40:01 +01:00
IanMadd
6a592a6db2
Update various readmes and docs
...
Signed-off-by: IanMadd <imaddaus@chef.io>
2020-09-14 14:09:23 -07:00
Nick Schwaderer
1a1205c729
Fixes many of the old skip_windows instances
...
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2020-09-14 15:55:10 +01:00
Tim Smith
303f530850
Update to Chefstyle 1.2.1
...
Update a few cop names
Remove redundant returns
Signed-off-by: Tim Smith <tsmith@chef.io>
2020-08-12 13:12:26 -07:00
Nick Schwaderer
cc521b5400
Merge pull request #5084 from inspec/cw/reporter-plugin-junit
...
Convert JUnit Reporter to a Plugin
2020-08-07 18:06:43 +01:00
James Stocks
cd077a1247
Improve profile status rendering in html2 reporter
...
Signed-off-by: James Stocks <jstocks@chef.io>
2020-07-09 14:02:42 +01:00
James Stocks
fd4c501c70
Change profile skip_message to status_message
...
Keep a duplicate of the message in skip_message for the JSON reporters, for backwards compaibility.
Signed-off-by: James Stocks <jstocks@chef.io>
2020-07-03 15:53:09 +01:00
James Stocks
d94d56c4b9
Ignore intermittent test teardown error
...
Occasionally when the `isolated` tests run in CI, this error is seen:
```
inspec-reporter-html2::when run on a basic profile#test_0002_should produce valid HTML:
Errno::ENOENT: No such file or directory @ apply2files - /tmp/temp20200625-1802-2izu7e.html
/usr/local/lib/ruby/2.6.0/fileutils.rb:1437:in `unlink'
/usr/local/lib/ruby/2.6.0/fileutils.rb:1437:in `block in remove_file'
/usr/local/lib/ruby/2.6.0/fileutils.rb:1442:in `platform_support'
/usr/local/lib/ruby/2.6.0/fileutils.rb:1436:in `remove_file'
/usr/local/lib/ruby/2.6.0/fileutils.rb:775:in `remove_file'
/usr/local/lib/ruby/2.6.0/fileutils.rb:562:in `block in rm'
/usr/local/lib/ruby/2.6.0/fileutils.rb:561:in `each'
/usr/local/lib/ruby/2.6.0/fileutils.rb:561:in `rm'
lib/plugins/inspec-reporter-html2/test/functional/inspec_reporter_html2_test.rb:9:in `teardown'
```
It should be OK to ignore the failure to delete the test file - the issue doesn't reproduce on laptops, and CI uses clean VMs each time.
Signed-off-by: James Stocks <jstocks@chef.io>
2020-06-26 09:23:21 +01:00
Mary Jinglewski
ac615db4fb
Copyediting
...
Signed-off-by: Mary Jinglewski <mjinglewski@chef.io>
2020-06-18 14:23:54 -04:00
Clinton Wolfe
bd292c9dbb
Fix JS execution on Internet Explorer by adding MOTW
...
Mark of the Web is a special comment in HTML that IE looks for
to set the JS security zone when running a local HTML file.
See
http://msdn.microsoft.com/en-us/library/ms537628(v=vs.85).aspx
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 14:23:54 -04:00
Clinton Wolfe
e4aa9f1793
Skip HTML validation testing on windows
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 14:23:54 -04:00
Clinton Wolfe
aa824d1b49
Fix a bad interaction involving clearing the plugin registry in unit testing
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 14:23:54 -04:00
Clinton Wolfe
83c7f84290
Add ability to show/hide child profiles, start off hidden
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 14:22:31 -04:00
Clinton Wolfe
adc59ea4ad
Correct html validation assertion syntax
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 14:22:31 -04:00
Clinton Wolfe
b8b7e4e848
Add ability to inline alternate JS and CSS
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 14:22:31 -04:00
Clinton Wolfe
e7a5c59b90
Use PRODUCT_NAME from Dist to allow community to rebrand
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 14:21:51 -04:00
Clinton Wolfe
a131067a09
Add functional test, including html validation
...
This uses html-proofer, which adds in nokogiri as a testing dep.
I expect we'll be using nokogiri soon anyway for the JUnit reporter.
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 14:21:51 -04:00
Clinton Wolfe
81e2f36fde
Basic unit tests for plugin definition
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 14:21:51 -04:00
Clinton Wolfe
bb2dfaa02d
First pass at docs
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 14:21:13 -04:00
Clinton Wolfe
c4487f1892
Initial commit of inspec-reporter-html2
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 14:21:13 -04:00
Nick Schwaderer
7068694885
Revert "Make CLI reporter into a plugin"
...
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2020-06-18 12:30:15 +01:00
Nick Schwaderer
82c6472444
Merge pull request #5069 from inspec/cw/reporter-plugin-cli
...
Make CLI reporter into a plugin
2020-06-17 17:02:07 +01:00
Clinton Wolfe
3651f85a7c
Use methods to access RunData
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-11 16:46:04 -04:00
Clinton Wolfe
98ae89e6cc
Convert JUnit reporter to plugin, RunData is still Hash-based
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-11 16:46:04 -04:00
Clinton Wolfe
458a5c4410
Replace Hash RunData access with method calls
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-03 21:51:21 -04:00
Clinton Wolfe
76033c03ff
Convert CLI reporter to plugin, RunData is still Hash-based
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-03 21:13:27 -04:00
Clinton Wolfe
935bb81e6f
Use RunData object instead of Hash
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-02 15:29:52 -04:00
Clinton Wolfe
402366c219
Convert json-min to be a plugin reporter, rundata is still a Hash
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-02 15:29:52 -04:00
James Stocks
23ed9bcf06
Merge pull request #5007 from inspec/cw/reporters-as-plugins
...
Reporters as Plugins
2020-05-22 16:10:29 +01:00
Nick Schwaderer
989d86c2ce
Stores output of inspec json
to archive and artifact
...
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2020-05-20 12:34:17 +01:00
Clinton Wolfe
36069943c4
Add ability to generate reporter plugins using inspec init
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-05-12 17:00:44 -04:00
John Snow
8d676f6ed2
Fix typo's after review
...
Signed-off-by: John Snow <thelunaticscripter@outlook.com>
2020-04-20 09:50:58 -04:00
John Snow
03c012e3c9
Add additional debug logging for automate login
...
Signed-off-by: John Snow <thelunaticscripter@outlook.com>
2020-04-17 15:50:40 -04:00
Clinton Wolfe
a8b04769ca
Ignore deprecation warning in fileutils and rubygems gems under ruby 2.7
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-04-08 10:56:55 -04:00
Thomas Heinen
61646ad3af
Add support for alternate Gem sources for plugin installation/search
...
Signed-off-by: Thomas Heinen <theinen@tecracer.de>
2020-03-19 11:40:18 +01:00
Miah Johnson
8be265772b
fixup_train_plugin_status should not activate gems.
...
This is handled by load_all already.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2020-02-10 14:52:12 -08:00
Ryan Davis
885e4f6c71
Fix test failure for call to vendor!
w/o options.
...
Had to make options available for the mocking as well.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2020-01-03 17:12:51 -08:00