hammer_cli_foreman 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of hammer_cli_foreman might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +11 -3
- data/doc/developer_docs.md +13 -0
- data/doc/name_id_resolution.md +50 -0
- data/doc/option_builder.md +48 -0
- data/doc/release_notes.md +64 -0
- data/lib/hammer_cli_foreman.rb +100 -23
- data/lib/hammer_cli_foreman/architecture.rb +0 -1
- data/lib/hammer_cli_foreman/associating_commands.rb +71 -0
- data/lib/hammer_cli_foreman/auth.rb +0 -1
- data/lib/hammer_cli_foreman/commands.rb +112 -80
- data/lib/hammer_cli_foreman/common_parameter.rb +5 -3
- data/lib/hammer_cli_foreman/compute_resource.rb +0 -2
- data/lib/hammer_cli_foreman/dependency_resolver.rb +32 -0
- data/lib/hammer_cli_foreman/domain.rb +0 -1
- data/lib/hammer_cli_foreman/environment.rb +0 -2
- data/lib/hammer_cli_foreman/exception_handler.rb +3 -3
- data/lib/hammer_cli_foreman/fact.rb +1 -1
- data/lib/hammer_cli_foreman/filter.rb +102 -0
- data/lib/hammer_cli_foreman/host.rb +5 -7
- data/lib/hammer_cli_foreman/hostgroup.rb +4 -3
- data/lib/hammer_cli_foreman/id_resolver.rb +60 -51
- data/lib/hammer_cli_foreman/image.rb +0 -1
- data/lib/hammer_cli_foreman/location.rb +7 -3
- data/lib/hammer_cli_foreman/media.rb +1 -1
- data/lib/hammer_cli_foreman/model.rb +1 -1
- data/lib/hammer_cli_foreman/operating_system.rb +4 -6
- data/lib/hammer_cli_foreman/option_builders.rb +285 -0
- data/lib/hammer_cli_foreman/organization.rb +7 -3
- data/lib/hammer_cli_foreman/param_filters.rb +61 -0
- data/lib/hammer_cli_foreman/parameter.rb +5 -3
- data/lib/hammer_cli_foreman/partition_table.rb +1 -1
- data/lib/hammer_cli_foreman/puppet_class.rb +1 -1
- data/lib/hammer_cli_foreman/references.rb +16 -0
- data/lib/hammer_cli_foreman/report.rb +1 -1
- data/lib/hammer_cli_foreman/role.rb +78 -0
- data/lib/hammer_cli_foreman/smart_class_parameter.rb +1 -1
- data/lib/hammer_cli_foreman/smart_proxy.rb +17 -2
- data/lib/hammer_cli_foreman/smart_variables.rb +111 -0
- data/lib/hammer_cli_foreman/subnet.rb +1 -1
- data/lib/hammer_cli_foreman/template.rb +10 -4
- data/lib/hammer_cli_foreman/user.rb +5 -1
- data/lib/hammer_cli_foreman/usergroup.rb +58 -0
- data/lib/hammer_cli_foreman/version.rb +1 -1
- data/locale/Makefile +12 -11
- data/locale/README.md +18 -0
- data/locale/en/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/en/hammer-cli-foreman.po +1584 -0
- data/locale/en_GB/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/en_GB/hammer-cli-foreman.po +1975 -0
- data/locale/es/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/es/hammer-cli-foreman.po +1976 -0
- data/locale/fr/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/fr/hammer-cli-foreman.po +1976 -0
- data/locale/hammer-cli-foreman.pot +1197 -787
- data/test/unit/api_test.rb +25 -0
- data/test/unit/architecture_test.rb +1 -0
- data/test/unit/commands_test.rb +18 -0
- data/test/unit/common_parameter_test.rb +1 -0
- data/test/unit/compute_resource_test.rb +1 -0
- data/test/unit/data/1.6/foreman_api.json +1 -0
- data/test/unit/dependency_resolver_test.rb +42 -0
- data/test/unit/domain_test.rb +1 -0
- data/test/unit/environment_test.rb +1 -0
- data/test/unit/fact_test.rb +1 -0
- data/test/unit/filter_test.rb +133 -0
- data/test/unit/helpers/command.rb +0 -13
- data/test/unit/host_test.rb +3 -0
- data/test/unit/hostgroup_test.rb +1 -0
- data/test/unit/id_resolver_test.rb +21 -68
- data/test/unit/image_test.rb +1 -1
- data/test/unit/location_test.rb +2 -0
- data/test/unit/media_test.rb +2 -0
- data/test/unit/model_test.rb +1 -0
- data/test/unit/operating_system_test.rb +1 -0
- data/test/unit/option_builders_test.rb +543 -0
- data/test/unit/organization_test.rb +1 -0
- data/test/unit/param_filters_test.rb +143 -0
- data/test/unit/partition_table_test.rb +1 -0
- data/test/unit/puppet_class_test.rb +1 -0
- data/test/unit/report_test.rb +1 -0
- data/test/unit/role_test.rb +94 -0
- data/test/unit/smart_class_parameter_test.rb +1 -0
- data/test/unit/smart_proxy_test.rb +14 -1
- data/test/unit/subnet_test.rb +1 -0
- data/test/unit/template_test.rb +1 -0
- data/test/unit/test_helper.rb +1 -1
- data/test/unit/user_test.rb +1 -0
- data/test/unit/usergroup_test.rb +80 -0
- metadata +50 -7
- data/lib/hammer_cli_foreman/searchables_option_builder.rb +0 -99
- data/test/unit/searchables_option_builder_test.rb +0 -172
@@ -2,6 +2,7 @@ require File.join(File.dirname(__FILE__), 'test_helper')
|
|
2
2
|
require File.join(File.dirname(__FILE__), 'helpers/resource_disabled')
|
3
3
|
require File.join(File.dirname(__FILE__), 'apipie_resource_mock')
|
4
4
|
|
5
|
+
require 'hammer_cli_foreman/organization'
|
5
6
|
|
6
7
|
describe HammerCLIForeman::Organization do
|
7
8
|
|
@@ -0,0 +1,143 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), 'test_helper')
|
2
|
+
require File.join(File.dirname(__FILE__), 'apipie_resource_mock')
|
3
|
+
require File.join(File.dirname(__FILE__), 'helpers/fake_searchables')
|
4
|
+
|
5
|
+
describe HammerCLIForeman::ParamsFlattener do
|
6
|
+
|
7
|
+
let(:flattener) { HammerCLIForeman::ParamsFlattener.new }
|
8
|
+
|
9
|
+
let(:param1) {
|
10
|
+
stub(:name => "param1", :params => [])
|
11
|
+
}
|
12
|
+
let(:param2) {
|
13
|
+
stub(:name => "param1", :params => [])
|
14
|
+
}
|
15
|
+
let(:hash_param) {
|
16
|
+
stub(:name => "object", :params => (
|
17
|
+
[param1, param2]
|
18
|
+
))
|
19
|
+
}
|
20
|
+
let(:hash_param2) {
|
21
|
+
stub(:name => "object", :params => (
|
22
|
+
[param1, hash_param]
|
23
|
+
))
|
24
|
+
}
|
25
|
+
|
26
|
+
it "flatten params" do
|
27
|
+
flattener.filter([param1, param2, hash_param2]).must_equal [param1, param2, hash_param2, param1, hash_param, param1, param2]
|
28
|
+
end
|
29
|
+
|
30
|
+
it "returns empty array for no params" do
|
31
|
+
flattener.filter([]).must_equal []
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
|
36
|
+
|
37
|
+
describe HammerCLIForeman::IdParamsFilter do
|
38
|
+
|
39
|
+
let(:filter) { HammerCLIForeman::IdParamsFilter.new }
|
40
|
+
let(:nonrequired_filter) { HammerCLIForeman::IdParamsFilter.new(:only_required => false) }
|
41
|
+
let(:required_filter) { HammerCLIForeman::IdParamsFilter.new(:only_required => true) }
|
42
|
+
|
43
|
+
describe "params for action" do
|
44
|
+
let(:required_params) {[
|
45
|
+
stub(:name => "architecture_id", :required? => true, :params => []),
|
46
|
+
stub(:name => "organization_id", :required? => true, :params => [])
|
47
|
+
]}
|
48
|
+
let(:id_params) {[
|
49
|
+
stub(:name => "domain_id", :required? => false, :params => [])
|
50
|
+
]}
|
51
|
+
let(:other_params) {[
|
52
|
+
stub(:name => "location", :required? => true, :params => []),
|
53
|
+
stub(:name => "param", :required? => false, :params => [])
|
54
|
+
]}
|
55
|
+
let(:hash_param) {
|
56
|
+
stub(:name => "object", :required? => false, :params => (
|
57
|
+
required_params+id_params+other_params
|
58
|
+
))
|
59
|
+
}
|
60
|
+
|
61
|
+
let(:action) {
|
62
|
+
stub(:params => (required_params+id_params+other_params))
|
63
|
+
}
|
64
|
+
|
65
|
+
it "returns only required params ending with _id" do
|
66
|
+
required_filter.for_action(action).must_equal required_params
|
67
|
+
end
|
68
|
+
|
69
|
+
it "returns only ending with _id when :only_required is set to false" do
|
70
|
+
nonrequired_filter.for_action(action).must_equal (required_params+id_params)
|
71
|
+
end
|
72
|
+
|
73
|
+
it "returns required params by default" do
|
74
|
+
filter.for_action(action).must_equal required_params
|
75
|
+
end
|
76
|
+
|
77
|
+
context "with hash params" do
|
78
|
+
|
79
|
+
let(:action) {
|
80
|
+
stub(:params => [hash_param])
|
81
|
+
}
|
82
|
+
|
83
|
+
it "finds params inside a hash" do
|
84
|
+
filter.for_action(action).must_equal required_params
|
85
|
+
end
|
86
|
+
|
87
|
+
it "returns only required params ending with _id" do
|
88
|
+
required_filter.for_action(action).must_equal required_params
|
89
|
+
end
|
90
|
+
|
91
|
+
it "returns only ending with _id when :only_required is set to false" do
|
92
|
+
nonrequired_filter.for_action(action).must_equal (required_params+id_params)
|
93
|
+
end
|
94
|
+
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
end
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
describe HammerCLIForeman::ParamsNameFilter do
|
104
|
+
|
105
|
+
describe "params for action" do
|
106
|
+
let(:the_param) {
|
107
|
+
stub(:name => "xxx", :params => [])
|
108
|
+
}
|
109
|
+
let(:other_params) {[
|
110
|
+
stub(:name => "param1", :params => []),
|
111
|
+
stub(:name => "param2", :params => [])
|
112
|
+
]}
|
113
|
+
let(:hash_param) {
|
114
|
+
stub(:name => "object", :params => (
|
115
|
+
[the_param]+other_params
|
116
|
+
))
|
117
|
+
}
|
118
|
+
|
119
|
+
let(:action) {
|
120
|
+
stub(:params => ([the_param]+other_params))
|
121
|
+
}
|
122
|
+
|
123
|
+
it "finds parameter by name" do
|
124
|
+
action = stub(:params => ([the_param]+other_params))
|
125
|
+
filter = HammerCLIForeman::ParamsNameFilter.new("xxx")
|
126
|
+
filter.for_action(action).must_equal [the_param]
|
127
|
+
end
|
128
|
+
|
129
|
+
it "finds parameter by name nested in another hash parameter" do
|
130
|
+
action = stub(:params => ([hash_param]+other_params))
|
131
|
+
filter = HammerCLIForeman::ParamsNameFilter.new("xxx")
|
132
|
+
filter.for_action(action).must_equal [the_param]
|
133
|
+
end
|
134
|
+
|
135
|
+
it "returns empty array when the parameter is not found" do
|
136
|
+
action = stub(:params => ([the_param]+other_params))
|
137
|
+
filter = HammerCLIForeman::ParamsNameFilter.new("???")
|
138
|
+
filter.for_action(action).must_equal []
|
139
|
+
end
|
140
|
+
|
141
|
+
end
|
142
|
+
|
143
|
+
end
|
data/test/unit/report_test.rb
CHANGED
@@ -0,0 +1,94 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), 'test_helper')
|
2
|
+
require File.join(File.dirname(__FILE__), 'apipie_resource_mock')
|
3
|
+
|
4
|
+
require 'hammer_cli_foreman/role'
|
5
|
+
|
6
|
+
describe HammerCLIForeman::Role do
|
7
|
+
|
8
|
+
include CommandTestHelper
|
9
|
+
|
10
|
+
|
11
|
+
context "ListCommand" do
|
12
|
+
|
13
|
+
let(:cmd) { HammerCLIForeman::Role::ListCommand.new("", ctx) }
|
14
|
+
|
15
|
+
before :each do
|
16
|
+
ResourceMocks.mock_action_call(:roles, :index, [])
|
17
|
+
end
|
18
|
+
|
19
|
+
context "parameters" do
|
20
|
+
it_should_accept "no arguments"
|
21
|
+
it_should_accept_search_params
|
22
|
+
end
|
23
|
+
|
24
|
+
context "output" do
|
25
|
+
it_should_print_column "Id"
|
26
|
+
it_should_print_column "Name"
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
context "CreateCommand" do
|
33
|
+
|
34
|
+
let(:cmd) { HammerCLIForeman::Role::CreateCommand.new("", ctx) }
|
35
|
+
|
36
|
+
context "parameters" do
|
37
|
+
it_should_accept "name", ["--name=role"]
|
38
|
+
end
|
39
|
+
|
40
|
+
with_params ["--name=role"] do
|
41
|
+
it_should_call_action :create, {'role' => {'name' => 'role'}}
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
context "DeleteCommand" do
|
46
|
+
|
47
|
+
let(:cmd) { HammerCLIForeman::Role::DeleteCommand.new("", ctx) }
|
48
|
+
|
49
|
+
context "parameters" do
|
50
|
+
it_should_accept "name", ["--name=role"]
|
51
|
+
it_should_accept "id", ["--id=1"]
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
context "UpdateCommand" do
|
56
|
+
|
57
|
+
let(:cmd) { HammerCLIForeman::Role::UpdateCommand.new("", ctx) }
|
58
|
+
|
59
|
+
context "parameters" do
|
60
|
+
it_should_accept "name", ["--name=role"]
|
61
|
+
it_should_accept "id", ["--id=1"]
|
62
|
+
it_should_accept "name and new name", ["--name=role", "--new-name=role2"]
|
63
|
+
end
|
64
|
+
|
65
|
+
with_params ["--id=1", "--new-name=role2"] do
|
66
|
+
it_should_call_action :update, {'id' => '1', 'name' => 'role2', 'role' => {'name' => 'role2'}}
|
67
|
+
end
|
68
|
+
|
69
|
+
end
|
70
|
+
|
71
|
+
context "FiltersCommand" do
|
72
|
+
|
73
|
+
let(:cmd) { HammerCLIForeman::Role::FiltersCommand.new("", ctx) }
|
74
|
+
|
75
|
+
before :each do
|
76
|
+
ResourceMocks.mock_action_call(:filters, :index, [])
|
77
|
+
end
|
78
|
+
|
79
|
+
context "parameters" do
|
80
|
+
it_should_accept "name", ["--name=role"]
|
81
|
+
it_should_accept "id", ["--id=1"]
|
82
|
+
end
|
83
|
+
|
84
|
+
context "output" do
|
85
|
+
it_should_print_column "Id"
|
86
|
+
it_should_print_column "Resource type"
|
87
|
+
it_should_print_column "Search"
|
88
|
+
it_should_print_column "Role"
|
89
|
+
it_should_print_column "Permissions"
|
90
|
+
end
|
91
|
+
|
92
|
+
end
|
93
|
+
|
94
|
+
end
|
@@ -1,6 +1,7 @@
|
|
1
1
|
require File.join(File.dirname(__FILE__), 'test_helper')
|
2
2
|
require File.join(File.dirname(__FILE__), 'apipie_resource_mock')
|
3
3
|
|
4
|
+
require 'hammer_cli_foreman/smart_proxy'
|
4
5
|
|
5
6
|
describe HammerCLIForeman::SmartProxy do
|
6
7
|
|
@@ -12,7 +13,7 @@ describe HammerCLIForeman::SmartProxy do
|
|
12
13
|
|
13
14
|
context "parameters" do
|
14
15
|
it_should_accept "no arguments"
|
15
|
-
|
16
|
+
it_should_accept_search_params
|
16
17
|
end
|
17
18
|
|
18
19
|
context "output" do
|
@@ -98,4 +99,16 @@ describe HammerCLIForeman::SmartProxy do
|
|
98
99
|
|
99
100
|
end
|
100
101
|
|
102
|
+
context "RefreshFeaturesCommand" do
|
103
|
+
|
104
|
+
let(:cmd) { HammerCLIForeman::SmartProxy::RefreshFeaturesCommand.new("", ctx) }
|
105
|
+
|
106
|
+
context "parameters" do
|
107
|
+
it_should_accept "id", ["--id=1"]
|
108
|
+
it_should_accept "name", ["--name=proxy"]
|
109
|
+
# it_should_fail_with "name or id missing", [] # TODO: temporarily disabled, parameters are checked in the id resolver
|
110
|
+
end
|
111
|
+
|
112
|
+
end
|
113
|
+
|
101
114
|
end
|
data/test/unit/subnet_test.rb
CHANGED
data/test/unit/template_test.rb
CHANGED
data/test/unit/test_helper.rb
CHANGED
@@ -19,7 +19,7 @@ require 'hammer_cli'
|
|
19
19
|
require 'hammer_cli_foreman/commands'
|
20
20
|
|
21
21
|
HammerCLIForeman.stubs(:resource_config).returns({
|
22
|
-
:apidoc_cache_dir => 'test/unit/data/' + (ENV['TEST_API_VERSION'] || '1.
|
22
|
+
:apidoc_cache_dir => 'test/unit/data/' + (ENV['TEST_API_VERSION'] || '1.6'),
|
23
23
|
:apidoc_cache_name => 'foreman_api',
|
24
24
|
:dry_run => true})
|
25
25
|
|
data/test/unit/user_test.rb
CHANGED
@@ -0,0 +1,80 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), 'test_helper')
|
2
|
+
require File.join(File.dirname(__FILE__), 'apipie_resource_mock')
|
3
|
+
|
4
|
+
require 'hammer_cli_foreman/usergroup'
|
5
|
+
|
6
|
+
describe HammerCLIForeman::Usergroup do
|
7
|
+
|
8
|
+
include CommandTestHelper
|
9
|
+
|
10
|
+
|
11
|
+
context "ListCommand" do
|
12
|
+
|
13
|
+
let(:cmd) { HammerCLIForeman::Usergroup::ListCommand.new("", ctx) }
|
14
|
+
|
15
|
+
context "parameters" do
|
16
|
+
it_should_accept "no arguments"
|
17
|
+
it_should_accept_search_params
|
18
|
+
end
|
19
|
+
|
20
|
+
context "output" do
|
21
|
+
it_should_print_column "Id"
|
22
|
+
it_should_print_column "Name"
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
|
27
|
+
context "InfoCommand" do
|
28
|
+
|
29
|
+
let(:cmd) { HammerCLIForeman::Usergroup::InfoCommand.new("", ctx) }
|
30
|
+
|
31
|
+
context "parameters" do
|
32
|
+
it_should_accept "id", ["--id=1"]
|
33
|
+
it_should_accept "name", ["--name=ug"]
|
34
|
+
end
|
35
|
+
|
36
|
+
context "output" do
|
37
|
+
with_params ["--id=1"] do
|
38
|
+
it_should_print_column "Id"
|
39
|
+
it_should_print_column "Name"
|
40
|
+
it_should_print_column "Users"
|
41
|
+
it_should_print_column "User groups"
|
42
|
+
it_should_print_column "Roles"
|
43
|
+
it_should_print_column "Created at"
|
44
|
+
it_should_print_column "Updated at"
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
context "CreateCommand" do
|
50
|
+
|
51
|
+
let(:cmd) { HammerCLIForeman::Usergroup::CreateCommand.new("", ctx) }
|
52
|
+
|
53
|
+
context "parameters" do
|
54
|
+
it_should_accept "name", ["--name=ug"]
|
55
|
+
it_should_accept "name, role ids, user group ids and user ids", ["--name=ug", "--role-ids=1,2,3", "--user-group-ids=1,2,3", "--user-ids=1,2,3"]
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
context "DeleteCommand" do
|
60
|
+
|
61
|
+
let(:cmd) { HammerCLIForeman::Usergroup::DeleteCommand.new("", ctx) }
|
62
|
+
|
63
|
+
context "parameters" do
|
64
|
+
it_should_accept "name", ["--name=ug"]
|
65
|
+
it_should_accept "id", ["--id=1"]
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
context "UpdateCommand" do
|
70
|
+
|
71
|
+
let(:cmd) { HammerCLIForeman::Usergroup::UpdateCommand.new("", ctx) }
|
72
|
+
|
73
|
+
context "parameters" do
|
74
|
+
it_should_accept "name", ["--name=ug"]
|
75
|
+
it_should_accept "id", ["--id=1"]
|
76
|
+
it_should_accept "name and new name", ["--name=ug", "--new-name=ug2"]
|
77
|
+
it_should_accept "id, new name, role ids, user group ids and user ids", ["--id=1", "--new-name=ug", "--role-ids=1,2,3", "--user-group-ids=1,2,3", "--user-ids=1,2,3"]
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hammer_cli_foreman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomáš Strachota
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-08-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hammer_cli
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - '>='
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 0.1.
|
20
|
+
version: 0.1.2
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - '>='
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 0.1.
|
27
|
+
version: 0.1.2
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: apipie-bindings
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -46,6 +46,9 @@ dependencies:
|
|
46
46
|
- - '>='
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: 1.6.5
|
49
|
+
- - <
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: '1.7'
|
49
52
|
type: :runtime
|
50
53
|
prerelease: false
|
51
54
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -53,6 +56,9 @@ dependencies:
|
|
53
56
|
- - '>='
|
54
57
|
- !ruby/object:Gem::Version
|
55
58
|
version: 1.6.5
|
59
|
+
- - <
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.7'
|
56
62
|
description: |
|
57
63
|
Foreman commands for Hammer CLI
|
58
64
|
email: tstracho@redhat.com
|
@@ -60,7 +66,11 @@ executables: []
|
|
60
66
|
extensions: []
|
61
67
|
extra_rdoc_files:
|
62
68
|
- doc/configuration.md
|
69
|
+
- doc/developer_docs.md
|
70
|
+
- doc/option_builder.md
|
63
71
|
- doc/host_create.md
|
72
|
+
- doc/name_id_resolution.md
|
73
|
+
- doc/release_notes.md
|
64
74
|
- README.md
|
65
75
|
files:
|
66
76
|
- lib/hammer_cli_foreman/report.rb
|
@@ -68,12 +78,14 @@ files:
|
|
68
78
|
- lib/hammer_cli_foreman/common_parameter.rb
|
69
79
|
- lib/hammer_cli_foreman/subnet.rb
|
70
80
|
- lib/hammer_cli_foreman/model.rb
|
81
|
+
- lib/hammer_cli_foreman/role.rb
|
71
82
|
- lib/hammer_cli_foreman/fact.rb
|
72
83
|
- lib/hammer_cli_foreman/media.rb
|
73
84
|
- lib/hammer_cli_foreman/exception_handler.rb
|
74
85
|
- lib/hammer_cli_foreman/compute_resource.rb
|
75
86
|
- lib/hammer_cli_foreman/i18n.rb
|
76
87
|
- lib/hammer_cli_foreman/associating_commands.rb
|
88
|
+
- lib/hammer_cli_foreman/smart_variables.rb
|
77
89
|
- lib/hammer_cli_foreman/hostgroup.rb
|
78
90
|
- lib/hammer_cli_foreman/template.rb
|
79
91
|
- lib/hammer_cli_foreman/version.rb
|
@@ -84,6 +96,7 @@ files:
|
|
84
96
|
- lib/hammer_cli_foreman/references.rb
|
85
97
|
- lib/hammer_cli_foreman/resource_supported_test.rb
|
86
98
|
- lib/hammer_cli_foreman/operating_system.rb
|
99
|
+
- lib/hammer_cli_foreman/dependency_resolver.rb
|
87
100
|
- lib/hammer_cli_foreman/smart_proxy.rb
|
88
101
|
- lib/hammer_cli_foreman/environment.rb
|
89
102
|
- lib/hammer_cli_foreman/puppet_class.rb
|
@@ -92,18 +105,25 @@ files:
|
|
92
105
|
- lib/hammer_cli_foreman/domain.rb
|
93
106
|
- lib/hammer_cli_foreman/smart_class_parameter.rb
|
94
107
|
- lib/hammer_cli_foreman/auth.rb
|
95
|
-
- lib/hammer_cli_foreman/
|
108
|
+
- lib/hammer_cli_foreman/usergroup.rb
|
96
109
|
- lib/hammer_cli_foreman/image.rb
|
97
110
|
- lib/hammer_cli_foreman/output.rb
|
98
111
|
- lib/hammer_cli_foreman/partition_table.rb
|
99
112
|
- lib/hammer_cli_foreman/credentials.rb
|
100
113
|
- lib/hammer_cli_foreman/id_resolver.rb
|
101
114
|
- lib/hammer_cli_foreman/user.rb
|
115
|
+
- lib/hammer_cli_foreman/filter.rb
|
116
|
+
- lib/hammer_cli_foreman/option_builders.rb
|
102
117
|
- lib/hammer_cli_foreman/location.rb
|
118
|
+
- lib/hammer_cli_foreman/param_filters.rb
|
103
119
|
- lib/hammer_cli_foreman/architecture.rb
|
104
120
|
- lib/hammer_cli_foreman.rb
|
105
121
|
- doc/configuration.md
|
122
|
+
- doc/developer_docs.md
|
123
|
+
- doc/option_builder.md
|
106
124
|
- doc/host_create.md
|
125
|
+
- doc/name_id_resolution.md
|
126
|
+
- doc/release_notes.md
|
107
127
|
- test/reports/TEST-HammerCLIForeman-Domain-CreateCommand-parameters.xml
|
108
128
|
- test/reports/TEST-HammerCLIForeman-Organization-UpdateCommand.xml
|
109
129
|
- test/reports/TEST-HammerCLIForeman-Template-DeleteCommand.xml
|
@@ -346,18 +366,20 @@ files:
|
|
346
366
|
- test/reports/TEST-HammerCLIForeman-PartitionTable-ListCommand-output.xml
|
347
367
|
- test/reports/TEST-HammerCLIForeman-Hostgroup-UpdateCommand-parameters.xml
|
348
368
|
- test/unit/image_test.rb
|
369
|
+
- test/unit/filter_test.rb
|
349
370
|
- test/unit/domain_test.rb
|
350
371
|
- test/unit/exception_handler_test.rb
|
351
372
|
- test/unit/media_test.rb
|
373
|
+
- test/unit/api_test.rb
|
352
374
|
- test/unit/host_test.rb
|
353
375
|
- test/unit/organization_test.rb
|
354
376
|
- test/unit/smart_proxy_test.rb
|
355
377
|
- test/unit/subnet_test.rb
|
356
378
|
- test/unit/location_test.rb
|
379
|
+
- test/unit/dependency_resolver_test.rb
|
357
380
|
- test/unit/helpers/command.rb
|
358
381
|
- test/unit/helpers/resource_disabled.rb
|
359
382
|
- test/unit/helpers/fake_searchables.rb
|
360
|
-
- test/unit/searchables_option_builder_test.rb
|
361
383
|
- test/unit/credentials_test.rb
|
362
384
|
- test/unit/operating_system_test.rb
|
363
385
|
- test/unit/template_test.rb
|
@@ -366,24 +388,38 @@ files:
|
|
366
388
|
- test/unit/partition_table_test.rb
|
367
389
|
- test/unit/hostgroup_test.rb
|
368
390
|
- test/unit/smart_class_parameter_test.rb
|
391
|
+
- test/unit/param_filters_test.rb
|
369
392
|
- test/unit/report_test.rb
|
393
|
+
- test/unit/role_test.rb
|
370
394
|
- test/unit/output/formatters_test.rb
|
371
395
|
- test/unit/id_resolver_test.rb
|
372
396
|
- test/unit/test_output_adapter.rb
|
397
|
+
- test/unit/option_builders_test.rb
|
373
398
|
- test/unit/fact_test.rb
|
374
399
|
- test/unit/model_test.rb
|
375
400
|
- test/unit/compute_resource_test.rb
|
376
401
|
- test/unit/puppet_class_test.rb
|
402
|
+
- test/unit/usergroup_test.rb
|
377
403
|
- test/unit/apipie_resource_mock.rb
|
378
404
|
- test/unit/common_parameter_test.rb
|
379
405
|
- test/unit/test_helper.rb
|
380
406
|
- test/unit/architecture_test.rb
|
381
407
|
- test/unit/user_test.rb
|
408
|
+
- test/unit/data/1.6/foreman_api.json
|
382
409
|
- test/unit/data/1.5/foreman_api.json
|
383
410
|
- test/unit/data/1.4/foreman_api.json
|
411
|
+
- locale/README.md
|
412
|
+
- locale/en_GB/hammer-cli-foreman.po
|
413
|
+
- locale/en_GB/LC_MESSAGES/hammer-cli-foreman.mo
|
414
|
+
- locale/es/hammer-cli-foreman.po
|
415
|
+
- locale/es/LC_MESSAGES/hammer-cli-foreman.mo
|
416
|
+
- locale/en/hammer-cli-foreman.po
|
417
|
+
- locale/en/LC_MESSAGES/hammer-cli-foreman.mo
|
384
418
|
- locale/hammer-cli-foreman.pot
|
385
419
|
- locale/Makefile
|
386
420
|
- locale/zanata.xml
|
421
|
+
- locale/fr/hammer-cli-foreman.po
|
422
|
+
- locale/fr/LC_MESSAGES/hammer-cli-foreman.mo
|
387
423
|
- README.md
|
388
424
|
homepage: http://github.com/theforeman/hammer-cli-foreman
|
389
425
|
licenses:
|
@@ -652,18 +688,20 @@ test_files:
|
|
652
688
|
- test/reports/TEST-HammerCLIForeman-PartitionTable-ListCommand-output.xml
|
653
689
|
- test/reports/TEST-HammerCLIForeman-Hostgroup-UpdateCommand-parameters.xml
|
654
690
|
- test/unit/image_test.rb
|
691
|
+
- test/unit/filter_test.rb
|
655
692
|
- test/unit/domain_test.rb
|
656
693
|
- test/unit/exception_handler_test.rb
|
657
694
|
- test/unit/media_test.rb
|
695
|
+
- test/unit/api_test.rb
|
658
696
|
- test/unit/host_test.rb
|
659
697
|
- test/unit/organization_test.rb
|
660
698
|
- test/unit/smart_proxy_test.rb
|
661
699
|
- test/unit/subnet_test.rb
|
662
700
|
- test/unit/location_test.rb
|
701
|
+
- test/unit/dependency_resolver_test.rb
|
663
702
|
- test/unit/helpers/command.rb
|
664
703
|
- test/unit/helpers/resource_disabled.rb
|
665
704
|
- test/unit/helpers/fake_searchables.rb
|
666
|
-
- test/unit/searchables_option_builder_test.rb
|
667
705
|
- test/unit/credentials_test.rb
|
668
706
|
- test/unit/operating_system_test.rb
|
669
707
|
- test/unit/template_test.rb
|
@@ -672,19 +710,24 @@ test_files:
|
|
672
710
|
- test/unit/partition_table_test.rb
|
673
711
|
- test/unit/hostgroup_test.rb
|
674
712
|
- test/unit/smart_class_parameter_test.rb
|
713
|
+
- test/unit/param_filters_test.rb
|
675
714
|
- test/unit/report_test.rb
|
715
|
+
- test/unit/role_test.rb
|
676
716
|
- test/unit/output/formatters_test.rb
|
677
717
|
- test/unit/id_resolver_test.rb
|
678
718
|
- test/unit/test_output_adapter.rb
|
719
|
+
- test/unit/option_builders_test.rb
|
679
720
|
- test/unit/fact_test.rb
|
680
721
|
- test/unit/model_test.rb
|
681
722
|
- test/unit/compute_resource_test.rb
|
682
723
|
- test/unit/puppet_class_test.rb
|
724
|
+
- test/unit/usergroup_test.rb
|
683
725
|
- test/unit/apipie_resource_mock.rb
|
684
726
|
- test/unit/common_parameter_test.rb
|
685
727
|
- test/unit/test_helper.rb
|
686
728
|
- test/unit/architecture_test.rb
|
687
729
|
- test/unit/user_test.rb
|
730
|
+
- test/unit/data/1.6/foreman_api.json
|
688
731
|
- test/unit/data/1.5/foreman_api.json
|
689
732
|
- test/unit/data/1.4/foreman_api.json
|
690
733
|
has_rdoc:
|