inspec 1.33.12 → 1.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -3
- data/lib/inspec/rspec_json_formatter.rb +20 -6
- data/lib/inspec/version.rb +1 -1
- metadata +3 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f8652931e666396eaecf1bdfd94e9979cd8dea97
|
|
4
|
+
data.tar.gz: 1769b0dea0a7fe11e89943ada4951b1b1d219545
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c85ea367f1d2d196cae095cbc3e9479947bb1876718ff55d68db0d506226f5ea2ddccec00bf36e7d2fd296e49337d4c376889bf3aa88680845b51dd09f19b765
|
|
7
|
+
data.tar.gz: ef7c008ff3915b2f80bf3fa60a4f302bb0a245cd50cfc6a293e3a788d64ff275b7f642f4dc21594b274c6e1c4aa033ad765c458751e4c2a1778ffffc1bcb48d0
|
data/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
<!-- latest_release -->
|
|
3
|
+
<!-- latest_release 1.33.15 -->
|
|
4
|
+
## [v1.33.15](https://github.com/chef/inspec/tree/v1.33.15) (2017-08-23)
|
|
5
|
+
|
|
6
|
+
#### Enhancements
|
|
7
|
+
- Refine the profile/test summary output of the CLI formatter [#2094](https://github.com/chef/inspec/pull/2094) ([adamleff](https://github.com/adamleff))
|
|
4
8
|
<!-- latest_release -->
|
|
5
9
|
|
|
6
|
-
<!-- release_rollup -->
|
|
10
|
+
<!-- release_rollup since=1.33.12 -->
|
|
11
|
+
### Changes since 1.33.12 release
|
|
12
|
+
|
|
13
|
+
#### Enhancements
|
|
14
|
+
- Refine the profile/test summary output of the CLI formatter [#2094](https://github.com/chef/inspec/pull/2094) ([adamleff](https://github.com/adamleff)) <!-- 1.33.15 -->
|
|
15
|
+
|
|
16
|
+
#### Merged Pull Requests
|
|
17
|
+
- Add slack notifications for Travis CI builds to master [#2092](https://github.com/chef/inspec/pull/2092) ([adamleff](https://github.com/adamleff)) <!-- 1.33.14 -->
|
|
18
|
+
- Update CHANGELOG (add fix author) [#2091](https://github.com/chef/inspec/pull/2091) ([n-rodriguez](https://github.com/n-rodriguez)) <!-- 1.33.13 -->
|
|
7
19
|
<!-- release_rollup -->
|
|
8
20
|
|
|
9
21
|
<!-- latest_stable_release -->
|
|
@@ -37,7 +49,7 @@
|
|
|
37
49
|
|
|
38
50
|
#### Merged Pull Requests
|
|
39
51
|
- bug fix: properly support profile files that are more than one directory deep
|
|
40
|
-
- bug fix: fix mysql_session resource to not use socket for host target
|
|
52
|
+
- bug fix: fix mysql_session resource to not use socket for host target [#2020](https://github.com/chef/inspec/pull/2020) ([n-rodriguez](https://github.com/n-rodriguez))
|
|
41
53
|
- host resource now properly handles localhost lookup
|
|
42
54
|
- bugfix: empty file strings from archive readers [#2027](https://github.com/chef/inspec/pull/2027) ([arlimus](https://github.com/arlimus))
|
|
43
55
|
- Fix issue when xinetd.conf does not end in newline [#2040](https://github.com/chef/inspec/pull/2040) ([kareiva](https://github.com/kareiva))
|
|
@@ -613,10 +613,18 @@ class InspecRspecCli < InspecRspecJson # rubocop:disable Metrics/ClassLength
|
|
|
613
613
|
summary = profile_summary
|
|
614
614
|
return unless summary['total'] > 0
|
|
615
615
|
|
|
616
|
+
success_str = summary['passed'] == 1 ? '1 successful control' : "#{summary['passed']} successful controls"
|
|
617
|
+
failed_str = summary['failed']['total'] == 1 ? '1 control failure' : "#{summary['failed']['total']} control failures"
|
|
618
|
+
skipped_str = summary['skipped'] == 1 ? '1 control skipped' : "#{summary['skipped']} controls skipped"
|
|
619
|
+
|
|
620
|
+
success_color = summary['passed'] > 0 ? 'passed' : 'no_color'
|
|
621
|
+
failed_color = summary['failed']['total'] > 0 ? 'failed' : 'no_color'
|
|
622
|
+
skipped_color = summary['skipped'] > 0 ? 'skipped' : 'no_color'
|
|
623
|
+
|
|
616
624
|
s = format('Profile Summary: %s, %s, %s',
|
|
617
|
-
format_with_color(
|
|
618
|
-
format_with_color(
|
|
619
|
-
format_with_color(
|
|
625
|
+
format_with_color(success_color, success_str),
|
|
626
|
+
format_with_color(failed_color, failed_str),
|
|
627
|
+
format_with_color(skipped_color, skipped_str),
|
|
620
628
|
)
|
|
621
629
|
output.puts(s) if summary['total'] > 0
|
|
622
630
|
end
|
|
@@ -624,10 +632,16 @@ class InspecRspecCli < InspecRspecJson # rubocop:disable Metrics/ClassLength
|
|
|
624
632
|
def print_tests_summary
|
|
625
633
|
summary = tests_summary
|
|
626
634
|
|
|
635
|
+
failed_str = summary['failed'] == 1 ? '1 failure' : "#{summary['failed']} failures"
|
|
636
|
+
|
|
637
|
+
success_color = summary['passed'] > 0 ? 'passed' : 'no_color'
|
|
638
|
+
failed_color = summary['failed'] > 0 ? 'failed' : 'no_color'
|
|
639
|
+
skipped_color = summary['skipped'] > 0 ? 'skipped' : 'no_color'
|
|
640
|
+
|
|
627
641
|
s = format('Test Summary: %s, %s, %s',
|
|
628
|
-
format_with_color(
|
|
629
|
-
format_with_color(
|
|
630
|
-
format_with_color(
|
|
642
|
+
format_with_color(success_color, "#{summary['passed']} successful"),
|
|
643
|
+
format_with_color(failed_color, failed_str),
|
|
644
|
+
format_with_color(skipped_color, "#{summary['skipped']} skipped"),
|
|
631
645
|
)
|
|
632
646
|
|
|
633
647
|
output.puts(s)
|
data/lib/inspec/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: inspec
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.34.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dominik Richter
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-08-
|
|
11
|
+
date: 2017-08-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: train
|
|
@@ -304,7 +304,6 @@ files:
|
|
|
304
304
|
- bin/inspec
|
|
305
305
|
- docs/.gitignore
|
|
306
306
|
- docs/README.md
|
|
307
|
-
- docs/cli.md
|
|
308
307
|
- docs/dsl_inspec.md
|
|
309
308
|
- docs/dsl_resource.md
|
|
310
309
|
- docs/habitat.md
|
|
@@ -313,7 +312,6 @@ files:
|
|
|
313
312
|
- docs/migration.md
|
|
314
313
|
- docs/plugin_kitchen_inspec.md
|
|
315
314
|
- docs/profiles.md
|
|
316
|
-
- docs/resources.md
|
|
317
315
|
- docs/resources/apache_conf.md.erb
|
|
318
316
|
- docs/resources/apt.md.erb
|
|
319
317
|
- docs/resources/audit_policy.md.erb
|
|
@@ -669,7 +667,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
669
667
|
version: '0'
|
|
670
668
|
requirements: []
|
|
671
669
|
rubyforge_project:
|
|
672
|
-
rubygems_version: 2.6.
|
|
670
|
+
rubygems_version: 2.6.12
|
|
673
671
|
signing_key:
|
|
674
672
|
specification_version: 4
|
|
675
673
|
summary: Infrastructure and compliance testing.
|