hammer_cli_foreman_openscap 0.1.7 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,10 +3,9 @@
3
3
  # This file is distributed under the same license as the hammer_cli_foreman_openscap package.
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
  #
6
- #, fuzzy
7
6
  msgid ""
8
7
  msgstr ""
9
- "Project-Id-Version: hammer_cli_foreman_openscap 0.1.4\n"
8
+ "Project-Id-Version: hammer_cli_foreman_openscap 0.1.10\n"
10
9
  "Report-Msgid-Bugs-To: \n"
11
10
  "PO-Revision-Date: 2017-09-08 16:19-0400\n"
12
11
  "Last-Translator: Dominic Cleal <dominic@cleal.org>, 2017\n"
@@ -30,15 +29,28 @@ msgstr ""
30
29
  msgid "Manipulate Tailoring files"
31
30
  msgstr ""
32
31
 
32
+ msgid "Manipulate Scap Content Profiles"
33
+ msgstr ""
34
+
35
+ msgid "View policies ENC for host"
36
+ msgstr ""
37
+
33
38
  msgid "Id"
34
39
  msgstr "ID"
35
40
 
36
- msgid "Host"
37
- msgstr "主機"
38
-
39
41
  msgid "Reported at"
40
42
  msgstr "回報於"
41
43
 
44
+ #, fuzzy
45
+ msgid "Host name"
46
+ msgstr "主機"
47
+
48
+ msgid "OpenSCAP proxy name"
49
+ msgstr ""
50
+
51
+ msgid "Policy name"
52
+ msgstr "政策名稱"
53
+
42
54
  msgid "Passed"
43
55
  msgstr "已通過"
44
56
 
@@ -54,8 +66,9 @@ msgstr ""
54
66
  msgid "OpenSCAP proxy Id"
55
67
  msgstr ""
56
68
 
57
- msgid "OpenSCAP proxy name"
58
- msgstr ""
69
+ #, fuzzy
70
+ msgid "Policy Id"
71
+ msgstr "政策名稱"
59
72
 
60
73
  msgid "ARF report deleted"
61
74
  msgstr ""
@@ -78,11 +91,39 @@ msgstr ""
78
91
  msgid "Path to directory where downloaded file will be saved"
79
92
  msgstr ""
80
93
 
81
- msgid "SCAP content title"
94
+ #, fuzzy
95
+ msgid "Profile Id"
96
+ msgstr "ID"
97
+
98
+ msgid "Content path"
82
99
  msgstr ""
83
100
 
84
- msgid "Policy name"
85
- msgstr "政策名稱"
101
+ msgid "Content download path"
102
+ msgstr ""
103
+
104
+ msgid "Tailoring path"
105
+ msgstr ""
106
+
107
+ msgid "Tailoring download path"
108
+ msgstr ""
109
+
110
+ msgid "Day of month"
111
+ msgstr ""
112
+
113
+ msgid "Hour"
114
+ msgstr ""
115
+
116
+ msgid "Month"
117
+ msgstr ""
118
+
119
+ msgid "Week"
120
+ msgstr ""
121
+
122
+ msgid "OpenSCAP Proxy"
123
+ msgstr ""
124
+
125
+ msgid "SCAP content title"
126
+ msgstr ""
86
127
 
87
128
  msgid "Name to search by"
88
129
  msgstr "欲使用來進行搜尋的名稱"
@@ -99,9 +140,6 @@ msgstr ""
99
140
  msgid "Weekday"
100
141
  msgstr ""
101
142
 
102
- msgid "Day of month"
103
- msgstr ""
104
-
105
143
  msgid "Cron line"
106
144
  msgstr "Cron 行"
107
145
 
@@ -117,6 +155,9 @@ msgstr ""
117
155
  msgid "Tailoring file profile Id"
118
156
  msgstr ""
119
157
 
158
+ msgid "Deployment option"
159
+ msgstr ""
160
+
120
161
  msgid "Policy has been deleted"
121
162
  msgstr ""
122
163
 
@@ -174,6 +215,22 @@ msgstr ""
174
215
  msgid "Could not download the SCAP content file"
175
216
  msgstr ""
176
217
 
218
+ #, fuzzy
219
+ msgid "Scap Content Id"
220
+ msgstr "ID"
221
+
222
+ #, fuzzy
223
+ msgid "Scap Content Title"
224
+ msgstr "提示"
225
+
226
+ #, fuzzy
227
+ msgid "Tailoring File Id"
228
+ msgstr "ID"
229
+
230
+ #, fuzzy
231
+ msgid "Tailoring File Name"
232
+ msgstr "名稱"
233
+
177
234
  msgid "Tailoring file successfully created"
178
235
  msgstr ""
179
236
 
@@ -4,12 +4,19 @@
4
4
  def self.arf
5
5
  {
6
6
  :id => 1,
7
- :host => "somewhere.example.com",
7
+ :host => {
8
+ :name => "somewhere.example.com"
9
+ },
8
10
  :reported_at => "1916-06-08",
9
11
  :passed => 24,
10
12
  :failed => 25,
11
13
  :othered => 26,
12
- :opeancap_proxy_name => "scap_proxy.example.com"
14
+ :openscap_proxy_name => {
15
+ :name => "scap_proxy.example.com"
16
+ },
17
+ :policy => {
18
+ :name => "strict policy"
19
+ }
13
20
  }
14
21
  end
15
22
 
@@ -12,9 +12,9 @@ describe 'scap content' do
12
12
  expected_result = CommandExpectation.new
13
13
  expected_result.expected_err =
14
14
  ['Could not download the SCAP content file:',
15
- ' Error: Option --path is required',
15
+ ' Error: Option --path is required.',
16
16
  ' ',
17
- " See: 'hammer scap-content download --help'",
17
+ " See: 'hammer scap-content download --help'.",
18
18
  ''].join("\n")
19
19
 
20
20
  expected_result.expected_exit_code = HammerCLI::EX_USAGE
@@ -11,9 +11,7 @@ describe 'tailoring file' do
11
11
 
12
12
  expected_result = CommandExpectation.new
13
13
  expected_result.expected_err =
14
- ['Failed to create Tailoring file:',
15
- " Missing arguments for 'tailoring_file[scap_file]'",
16
- ''].join("\n")
14
+ "Failed to create Tailoring file:\n Missing arguments for '--scap-file'.\n"
17
15
  expected_result.expected_exit_code = HammerCLI::EX_USAGE
18
16
 
19
17
  api_expects_no_call
@@ -45,9 +43,9 @@ describe 'tailoring file' do
45
43
  expected_result = CommandExpectation.new
46
44
  expected_result.expected_err =
47
45
  ['Could not download the Tailoring file:',
48
- ' Error: Option --path is required',
46
+ ' Error: Option --path is required.',
49
47
  ' ',
50
- " See: 'hammer tailoring-file download --help'",
48
+ " See: 'hammer tailoring-file download --help'.",
51
49
  ''].join("\n")
52
50
 
53
51
  expected_result.expected_exit_code = HammerCLI::EX_USAGE
@@ -4,7 +4,7 @@ FOREMAN_OPENSCAP_VERSION = Gem::Version.new(ENV['TEST_API_VERSION'])
4
4
  require 'minitest/autorun'
5
5
  require 'minitest/spec'
6
6
  require "minitest-spec-context"
7
- require "mocha/setup"
7
+ require "mocha/minitest"
8
8
  require 'hammer_cli'
9
9
 
10
10
  if HammerCLI.context[:api_connection]
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli_foreman_openscap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Foreman team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-19 00:00:00.000000000 Z
11
+ date: 2020-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hammer_cli_foreman
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.6'
19
+ version: '0.19'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '3.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.19'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.6'
32
+ version: '3.0'
27
33
  description:
28
34
  email:
29
35
  executables: []
@@ -47,6 +53,7 @@ files:
47
53
  - lib/hammer_cli_foreman_openscap/options/normalizers.rb
48
54
  - lib/hammer_cli_foreman_openscap/policy.rb
49
55
  - lib/hammer_cli_foreman_openscap/scap_content.rb
56
+ - lib/hammer_cli_foreman_openscap/scap_content_profile.rb
50
57
  - lib/hammer_cli_foreman_openscap/tailoring_file.rb
51
58
  - lib/hammer_cli_foreman_openscap/version.rb
52
59
  - locale/Makefile
@@ -95,23 +102,22 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
102
  - !ruby/object:Gem::Version
96
103
  version: '0'
97
104
  requirements: []
98
- rubyforge_project:
99
- rubygems_version: 2.6.8
105
+ rubygems_version: 3.1.2
100
106
  signing_key:
101
107
  specification_version: 4
102
108
  summary: Foreman OpenSCAP commands for Hammer
103
109
  test_files:
104
- - test/unit/scap_content_test.rb
105
- - test/unit/tailoring_file_test.rb
106
- - test/unit/test_helper.rb
107
- - test/unit/policy_test.rb
108
- - test/unit/arf_report_test.rb
109
- - test/test_helper.rb
110
- - test/functional/scap_content_test.rb
111
- - test/functional/tailoring_file_test.rb
112
- - test/functional/test_helper.rb
113
- - test/data/1.14/foreman_api.json
110
+ - test/compliance_resource_mock.rb
114
111
  - test/data/1.11/foreman_api.json
112
+ - test/data/1.14/foreman_api.json
115
113
  - test/data/1.15/foreman_api.json
116
114
  - test/data/tailoring.xml
117
- - test/compliance_resource_mock.rb
115
+ - test/functional/scap_content_test.rb
116
+ - test/functional/tailoring_file_test.rb
117
+ - test/functional/test_helper.rb
118
+ - test/test_helper.rb
119
+ - test/unit/arf_report_test.rb
120
+ - test/unit/policy_test.rb
121
+ - test/unit/scap_content_test.rb
122
+ - test/unit/tailoring_file_test.rb
123
+ - test/unit/test_helper.rb