hammer_cli_foreman 3.7.0 → 3.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/host_create.md +0 -6
- data/doc/release_notes.md +15 -0
- data/lib/hammer_cli_foreman/command_extensions/ping.rb +14 -0
- data/lib/hammer_cli_foreman/compute_resource/register_compute_resources.rb +0 -1
- data/lib/hammer_cli_foreman/ping.rb +6 -0
- data/lib/hammer_cli_foreman/version.rb +1 -1
- data/locale/ca/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/cs_CZ/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/de/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/en/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/en_GB/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/es/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/fr/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/it/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/ja/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/ka/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/ko/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/pt_BR/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/ru/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/zh_CN/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/zh_TW/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/test/functional/associating_commands_test.rb +2 -2
- data/test/functional/commands/list_test.rb +4 -4
- data/test/functional/ping_test.rb +25 -0
- data/test/functional/report_template_test.rb +4 -4
- data/test/functional/virtual_machine_test.rb +4 -4
- data/test/test_helper.rb +0 -1
- data/test/unit/api/interactive_basic_auth_test.rb +2 -2
- data/test/unit/api/oauth/oauth_authentication_code_grant_test.rb +2 -2
- data/test/unit/api/oauth/oauth_password_grant_test.rb +2 -2
- data/test/unit/api/session_authenticator_wrapper_test.rb +6 -6
- data/test/unit/architecture_test.rb +12 -12
- data/test/unit/audit_test.rb +6 -6
- data/test/unit/auth_source_external.rb +5 -5
- data/test/unit/auth_source_ldap_test.rb +12 -12
- data/test/unit/bookmark_test.rb +12 -12
- data/test/unit/commands_test.rb +5 -5
- data/test/unit/common_parameter_test.rb +10 -10
- data/test/unit/compute_profile_test.rb +12 -12
- data/test/unit/compute_resource_test.rb +18 -18
- data/test/unit/config_report_test.rb +7 -7
- data/test/unit/domain_test.rb +16 -16
- data/test/unit/exception_handler_test.rb +1 -1
- data/test/unit/external_usergroup_test.rb +15 -15
- data/test/unit/fact_test.rb +3 -3
- data/test/unit/filter_test.rb +18 -18
- data/test/unit/helpers/command.rb +1 -1
- data/test/unit/helpers/resource_disabled.rb +1 -1
- data/test/unit/host_test.rb +35 -35
- data/test/unit/hostgroup_test.rb +18 -18
- data/test/unit/image_test.rb +15 -15
- data/test/unit/location_test.rb +12 -12
- data/test/unit/mail_notification_test.rb +6 -6
- data/test/unit/media_test.rb +12 -12
- data/test/unit/model_test.rb +12 -12
- data/test/unit/operating_system_test.rb +16 -16
- data/test/unit/option_builders_test.rb +2 -2
- data/test/unit/organization_test.rb +12 -12
- data/test/unit/output/formatters_test.rb +4 -4
- data/test/unit/param_filters_test.rb +2 -2
- data/test/unit/partition_table_test.rb +14 -14
- data/test/unit/realm_test.rb +12 -12
- data/test/unit/role_test.rb +14 -14
- data/test/unit/settings_test.rb +5 -5
- data/test/unit/smart_proxy_test.rb +14 -14
- data/test/unit/subnet_test.rb +12 -12
- data/test/unit/template_test.rb +16 -16
- data/test/unit/user_test.rb +12 -12
- data/test/unit/usergroup_test.rb +12 -12
- metadata +31 -30
- data/lib/hammer_cli_foreman/compute_resource/rackspace.rb +0 -25
data/test/unit/template_test.rb
CHANGED
@@ -20,19 +20,19 @@ describe HammerCLIForeman::Template do
|
|
20
20
|
File.stubs(:read).returns("")
|
21
21
|
end
|
22
22
|
|
23
|
-
|
23
|
+
describe "ListCommand" do
|
24
24
|
before do
|
25
25
|
ResourceMocks.mock_action_call(:provisioning_templates, :index, [])
|
26
26
|
end
|
27
27
|
|
28
28
|
let(:cmd) { HammerCLIForeman::Template::ListCommand.new("", ctx) }
|
29
29
|
|
30
|
-
|
30
|
+
describe "parameters" do
|
31
31
|
it_should_accept "no arguments"
|
32
32
|
it_should_accept_search_params
|
33
33
|
end
|
34
34
|
|
35
|
-
|
35
|
+
describe "output" do
|
36
36
|
let(:expected_record_count) { count_records(cmd.resource.call(:index)) }
|
37
37
|
|
38
38
|
it_should_print_n_records
|
@@ -52,11 +52,11 @@ describe HammerCLIForeman::Template do
|
|
52
52
|
end
|
53
53
|
|
54
54
|
|
55
|
-
|
55
|
+
describe "InfoCommand" do
|
56
56
|
|
57
57
|
let(:cmd) { HammerCLIForeman::Template::InfoCommand.new("", ctx) }
|
58
58
|
|
59
|
-
|
59
|
+
describe "parameters" do
|
60
60
|
before(:each) do
|
61
61
|
template = {
|
62
62
|
'config_template' => {
|
@@ -71,7 +71,7 @@ describe HammerCLIForeman::Template do
|
|
71
71
|
# it_should_fail_with "no arguments" # TODO: temporarily disabled, parameters are checked in the id resolver
|
72
72
|
end
|
73
73
|
|
74
|
-
|
74
|
+
describe "output" do
|
75
75
|
with_params ["--id=1"] do
|
76
76
|
before(:each) do
|
77
77
|
template = {
|
@@ -91,25 +91,25 @@ describe HammerCLIForeman::Template do
|
|
91
91
|
end
|
92
92
|
|
93
93
|
|
94
|
-
|
94
|
+
describe "ListKindsCommand" do
|
95
95
|
before do
|
96
96
|
ResourceMocks.mock_action_call(:template_kinds, :index, [])
|
97
97
|
end
|
98
98
|
|
99
99
|
let(:cmd) { HammerCLIForeman::Template::ListKindsCommand.new("", ctx) }
|
100
100
|
|
101
|
-
|
101
|
+
describe "parameters" do
|
102
102
|
it_should_accept "no arguments"
|
103
103
|
end
|
104
104
|
|
105
105
|
end
|
106
106
|
|
107
107
|
|
108
|
-
|
108
|
+
describe "DumpCommand" do
|
109
109
|
|
110
110
|
let(:cmd) { HammerCLIForeman::Template::DumpCommand.new("", ctx) }
|
111
111
|
|
112
|
-
|
112
|
+
describe "parameters" do
|
113
113
|
it_should_accept "id", ["--id=1"]
|
114
114
|
# it_should_fail_with "no params", [] # TODO: temporarily disabled, parameters are checked in the id resolver
|
115
115
|
end
|
@@ -117,7 +117,7 @@ describe HammerCLIForeman::Template do
|
|
117
117
|
end
|
118
118
|
|
119
119
|
|
120
|
-
|
120
|
+
describe "CreateCommand" do
|
121
121
|
|
122
122
|
let(:cmd) { HammerCLIForeman::Template::CreateCommand.new("", ctx) }
|
123
123
|
|
@@ -125,7 +125,7 @@ describe HammerCLIForeman::Template do
|
|
125
125
|
cmd.stubs(:option_template_kind_id).returns(1)
|
126
126
|
end
|
127
127
|
|
128
|
-
|
128
|
+
describe "parameters" do
|
129
129
|
it_should_accept "name, file, type, audit comment, os ids", ["--name=tpl", "--file=~/tpl.sh", "--type=snippet", "--audit-comment=fix", "--operatingsystem-ids=1,2,3"]
|
130
130
|
# it_should_fail_with "name missing", ["--file=~/tpl.sh", "--type=snippet", "--audit-comment=fix", "--operatingsystem-ids=1,2,3"]
|
131
131
|
# it_should_fail_with "type missing", ["--name=tpl", "--file=~/tpl.sh", "--audit-comment=fix", "--operatingsystem-ids=1,2,3"]
|
@@ -136,7 +136,7 @@ describe HammerCLIForeman::Template do
|
|
136
136
|
end
|
137
137
|
|
138
138
|
|
139
|
-
|
139
|
+
describe "UpdateCommand" do
|
140
140
|
|
141
141
|
let(:cmd) { HammerCLIForeman::Template::UpdateCommand.new("", ctx) }
|
142
142
|
|
@@ -144,7 +144,7 @@ describe HammerCLIForeman::Template do
|
|
144
144
|
cmd.stubs(:option_template_kind_id).returns(1)
|
145
145
|
end
|
146
146
|
|
147
|
-
|
147
|
+
describe "parameters" do
|
148
148
|
it_should_accept "id, name, file, type, audit comment, os ids", ["--id=83", "--name=tpl", "--file=~/tpl.sh", "--type=snippet", "--audit-comment=fix", "--operatingsystem-ids=1,2,3"]
|
149
149
|
# it_should_fail_with "id missing", ["--name=tpl", "--file=~/tpl.sh", "--type=snippet", "--audit-comment=fix", "--operatingsystem-ids=1,2,3"]
|
150
150
|
# TODO: temporarily disabled, parameters are checked in the id resolver
|
@@ -153,11 +153,11 @@ describe HammerCLIForeman::Template do
|
|
153
153
|
end
|
154
154
|
|
155
155
|
|
156
|
-
|
156
|
+
describe "DeleteCommand" do
|
157
157
|
|
158
158
|
let(:cmd) { HammerCLIForeman::Template::DeleteCommand.new("", ctx) }
|
159
159
|
|
160
|
-
|
160
|
+
describe "parameters" do
|
161
161
|
it_should_accept "id", ["--id=1"]
|
162
162
|
# it_should_fail_with "no params", [] # TODO: temporarily disabled, parameters are checked in the id resolver
|
163
163
|
end
|
data/test/unit/user_test.rb
CHANGED
@@ -9,19 +9,19 @@ describe HammerCLIForeman::User do
|
|
9
9
|
|
10
10
|
let(:cmd_module) { HammerCLIForeman::User }
|
11
11
|
|
12
|
-
|
12
|
+
describe "ListCommand" do
|
13
13
|
before do
|
14
14
|
ResourceMocks.mock_action_call(:users, :index, [])
|
15
15
|
end
|
16
16
|
|
17
17
|
let(:cmd) { cmd_module::ListCommand.new("", ctx ) }
|
18
18
|
|
19
|
-
|
19
|
+
describe "parameters" do
|
20
20
|
it_should_accept "no arguments"
|
21
21
|
it_should_accept_search_params
|
22
22
|
end
|
23
23
|
|
24
|
-
|
24
|
+
describe "output" do
|
25
25
|
let(:expected_record_count) { count_records(cmd.resource.call(:index)) }
|
26
26
|
it_should_print_n_records
|
27
27
|
it_should_print_columns ["Id", "Login", "Name", "Email", "Admin", "Last login", "Authorized by"]
|
@@ -30,20 +30,20 @@ describe HammerCLIForeman::User do
|
|
30
30
|
end
|
31
31
|
|
32
32
|
|
33
|
-
|
33
|
+
describe "InfoCommand" do
|
34
34
|
before do
|
35
35
|
ResourceMocks.users_show
|
36
36
|
end
|
37
37
|
|
38
38
|
let(:cmd) { cmd_module::InfoCommand.new("", ctx) }
|
39
39
|
|
40
|
-
|
40
|
+
describe "parameters" do
|
41
41
|
it_should_accept "id", ["--id=1"]
|
42
42
|
it_should_accept "login", ["--login=admin"]
|
43
43
|
# it_should_fail_with "no arguments" # TODO: temporarily disabled, parameters are checked in the id resolver
|
44
44
|
end
|
45
45
|
|
46
|
-
|
46
|
+
describe "output" do
|
47
47
|
with_params ["--id=1"] do
|
48
48
|
it_should_print_n_records 1
|
49
49
|
it_should_print_columns ["Id", "Login", "Name", "Email", "Admin", "Effective admin"]
|
@@ -54,11 +54,11 @@ describe HammerCLIForeman::User do
|
|
54
54
|
end
|
55
55
|
|
56
56
|
|
57
|
-
|
57
|
+
describe "CreateCommand" do
|
58
58
|
|
59
59
|
let(:cmd) { cmd_module::CreateCommand.new("", ctx) }
|
60
60
|
|
61
|
-
|
61
|
+
describe "parameters" do
|
62
62
|
it_should_accept "all required", ["--login=login", "--mail=mail", "--password=paswd", "--auth-source-id=1"]
|
63
63
|
it_should_accept "all required plus names", ["--login=login", "--firstname=fname", "--lastname=lname", "--mail=mail", "--password=paswd", "--auth-source-id=1"]
|
64
64
|
# it_should_fail_with "login missing", ["--firstname=fname", "--lastname=lname", "--mail=mail", "--password=paswd", "--auth-source-id=1"]
|
@@ -71,11 +71,11 @@ describe HammerCLIForeman::User do
|
|
71
71
|
end
|
72
72
|
|
73
73
|
|
74
|
-
|
74
|
+
describe "DeleteCommand" do
|
75
75
|
|
76
76
|
let(:cmd) { cmd_module::DeleteCommand.new("", ctx) }
|
77
77
|
|
78
|
-
|
78
|
+
describe "parameters" do
|
79
79
|
it_should_accept "id", ["--id=1"]
|
80
80
|
it_should_accept "login", ["--login=admin"]
|
81
81
|
# it_should_fail_with "id and login missing", [] # TODO: temporarily disabled, parameters are checked in the id resolver
|
@@ -84,7 +84,7 @@ describe HammerCLIForeman::User do
|
|
84
84
|
end
|
85
85
|
|
86
86
|
|
87
|
-
|
87
|
+
describe "UpdateCommand" do
|
88
88
|
|
89
89
|
let(:cmd) { cmd_module::UpdateCommand.new("", ctx) }
|
90
90
|
|
@@ -92,7 +92,7 @@ describe HammerCLIForeman::User do
|
|
92
92
|
HammerCLIForeman::OptionSources::UserParams.any_instance.stubs(:ask_password).returns("password")
|
93
93
|
end
|
94
94
|
|
95
|
-
|
95
|
+
describe "parameters" do
|
96
96
|
it_should_accept "password and current password interactively", ["--login=jane", "--ask-password=true"]
|
97
97
|
it_should_accept "id", ["--id=1"]
|
98
98
|
it_should_accept "login", ["--login=admin"]
|
data/test/unit/usergroup_test.rb
CHANGED
@@ -8,21 +8,21 @@ describe HammerCLIForeman::Usergroup do
|
|
8
8
|
include CommandTestHelper
|
9
9
|
|
10
10
|
|
11
|
-
|
11
|
+
describe "ListCommand" do
|
12
12
|
before do
|
13
13
|
ResourceMocks.mock_action_call(:usergroups, :index, [])
|
14
14
|
end
|
15
15
|
|
16
16
|
let(:cmd) { HammerCLIForeman::Usergroup::ListCommand.new("", ctx) }
|
17
17
|
|
18
|
-
|
18
|
+
describe "parameters" do
|
19
19
|
it_should_accept "no arguments"
|
20
20
|
it_should_accept_search_params
|
21
21
|
it_should_accept 'organization', ['--organization-id=1']
|
22
22
|
it_should_accept 'location', ['--location-id=1']
|
23
23
|
end
|
24
24
|
|
25
|
-
|
25
|
+
describe "output" do
|
26
26
|
it_should_print_column "Id"
|
27
27
|
it_should_print_column "Name"
|
28
28
|
it_should_print_column "Admin"
|
@@ -30,18 +30,18 @@ describe HammerCLIForeman::Usergroup do
|
|
30
30
|
|
31
31
|
end
|
32
32
|
|
33
|
-
|
33
|
+
describe "InfoCommand" do
|
34
34
|
|
35
35
|
let(:cmd) { HammerCLIForeman::Usergroup::InfoCommand.new("", ctx) }
|
36
36
|
|
37
|
-
|
37
|
+
describe "parameters" do
|
38
38
|
it_should_accept "id", ["--id=1"]
|
39
39
|
it_should_accept "name", ["--name=ug"]
|
40
40
|
it_should_accept 'organization', %w[--id=1 --organization-id=1]
|
41
41
|
it_should_accept 'location', %w[--id=1 --location-id=1]
|
42
42
|
end
|
43
43
|
|
44
|
-
|
44
|
+
describe "output" do
|
45
45
|
with_params ["--id=1"] do
|
46
46
|
it_should_print_column "Id"
|
47
47
|
it_should_print_column "Name"
|
@@ -55,11 +55,11 @@ describe HammerCLIForeman::Usergroup do
|
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
|
-
|
58
|
+
describe "CreateCommand" do
|
59
59
|
|
60
60
|
let(:cmd) { HammerCLIForeman::Usergroup::CreateCommand.new("", ctx) }
|
61
61
|
|
62
|
-
|
62
|
+
describe "parameters" do
|
63
63
|
it_should_accept "name", ["--name=ug"]
|
64
64
|
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"]
|
65
65
|
it_should_accept 'organization', %w[--name=ug --organization-id=1]
|
@@ -67,11 +67,11 @@ describe HammerCLIForeman::Usergroup do
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
-
|
70
|
+
describe "DeleteCommand" do
|
71
71
|
|
72
72
|
let(:cmd) { HammerCLIForeman::Usergroup::DeleteCommand.new("", ctx) }
|
73
73
|
|
74
|
-
|
74
|
+
describe "parameters" do
|
75
75
|
it_should_accept "name", ["--name=ug"]
|
76
76
|
it_should_accept "id", ["--id=1"]
|
77
77
|
it_should_accept 'organization', %w[--id=1 --organization-id=1]
|
@@ -79,11 +79,11 @@ describe HammerCLIForeman::Usergroup do
|
|
79
79
|
end
|
80
80
|
end
|
81
81
|
|
82
|
-
|
82
|
+
describe "UpdateCommand" do
|
83
83
|
|
84
84
|
let(:cmd) { HammerCLIForeman::Usergroup::UpdateCommand.new("", ctx) }
|
85
85
|
|
86
|
-
|
86
|
+
describe "parameters" do
|
87
87
|
it_should_accept "name", ["--name=ug"]
|
88
88
|
it_should_accept "id", ["--id=1"]
|
89
89
|
it_should_accept "name and new name", ["--name=ug", "--new-name=ug2"]
|
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: 3.
|
4
|
+
version: 3.9.0
|
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: 2023-
|
12
|
+
date: 2023-11-29 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: 3.
|
20
|
+
version: 3.9.0
|
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: 3.
|
27
|
+
version: 3.9.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: apipie-bindings
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,12 +82,12 @@ extensions: []
|
|
82
82
|
extra_rdoc_files:
|
83
83
|
- doc/configuration.md
|
84
84
|
- doc/developer_docs.md
|
85
|
-
- doc/host_create.md
|
86
85
|
- doc/name_id_resolution.md
|
87
86
|
- doc/option_builder.md
|
88
87
|
- doc/plugin.md
|
89
88
|
- doc/testing.md
|
90
89
|
- doc/using_hammer_cli_foreman_command.md
|
90
|
+
- doc/host_create.md
|
91
91
|
- doc/release_notes.md
|
92
92
|
- README.md
|
93
93
|
files:
|
@@ -149,7 +149,6 @@ files:
|
|
149
149
|
- lib/hammer_cli_foreman/compute_resource/libvirt.rb
|
150
150
|
- lib/hammer_cli_foreman/compute_resource/openstack.rb
|
151
151
|
- lib/hammer_cli_foreman/compute_resource/ovirt.rb
|
152
|
-
- lib/hammer_cli_foreman/compute_resource/rackspace.rb
|
153
152
|
- lib/hammer_cli_foreman/compute_resource/register_compute_resources.rb
|
154
153
|
- lib/hammer_cli_foreman/compute_resource/utils.rb
|
155
154
|
- lib/hammer_cli_foreman/compute_resource/vmware.rb
|
@@ -219,6 +218,7 @@ files:
|
|
219
218
|
- lib/minitest/coverage_reporter.rb
|
220
219
|
- lib/minitest/hammer_coverage_plugin.rb
|
221
220
|
- locale/ca/LC_MESSAGES/hammer-cli-foreman.mo
|
221
|
+
- locale/cs_CZ/LC_MESSAGES/hammer-cli-foreman.mo
|
222
222
|
- locale/de/LC_MESSAGES/hammer-cli-foreman.mo
|
223
223
|
- locale/en/LC_MESSAGES/hammer-cli-foreman.mo
|
224
224
|
- locale/en_GB/LC_MESSAGES/hammer-cli-foreman.mo
|
@@ -226,6 +226,7 @@ files:
|
|
226
226
|
- locale/fr/LC_MESSAGES/hammer-cli-foreman.mo
|
227
227
|
- locale/it/LC_MESSAGES/hammer-cli-foreman.mo
|
228
228
|
- locale/ja/LC_MESSAGES/hammer-cli-foreman.mo
|
229
|
+
- locale/ka/LC_MESSAGES/hammer-cli-foreman.mo
|
229
230
|
- locale/ko/LC_MESSAGES/hammer-cli-foreman.mo
|
230
231
|
- locale/pt_BR/LC_MESSAGES/hammer-cli-foreman.mo
|
231
232
|
- locale/ru/LC_MESSAGES/hammer-cli-foreman.mo
|
@@ -392,30 +393,32 @@ test_files:
|
|
392
393
|
- test/data/3.4/foreman_api.json
|
393
394
|
- test/data/README.md
|
394
395
|
- test/functional/architecture_test.rb
|
395
|
-
- test/functional/associating_commands_test.rb
|
396
396
|
- test/functional/audit_test.rb
|
397
397
|
- test/functional/auth_source_test.rb
|
398
|
+
- test/functional/bookmark_test.rb
|
398
399
|
- test/functional/commands/list_test.rb
|
399
400
|
- test/functional/compute_attribute_test.rb
|
400
401
|
- test/functional/compute_profile_test.rb
|
401
402
|
- test/functional/compute_resource_test.rb
|
402
403
|
- test/functional/domain/create_test.rb
|
403
404
|
- test/functional/domain/update_test.rb
|
405
|
+
- test/functional/filter_test.rb
|
404
406
|
- test/functional/host_test.rb
|
405
407
|
- test/functional/hostgroup/create_test.rb
|
406
408
|
- test/functional/hostgroup/update_test.rb
|
407
409
|
- test/functional/http_proxy_test.rb
|
410
|
+
- test/functional/location_test.rb
|
408
411
|
- test/functional/mail_notification_test.rb
|
412
|
+
- test/functional/media_test.rb
|
409
413
|
- test/functional/model_test.rb
|
410
414
|
- test/functional/operating_system_test.rb
|
411
415
|
- test/functional/organization_test.rb
|
412
416
|
- test/functional/partition_table_test.rb
|
413
417
|
- test/functional/personal_access_token_test.rb
|
414
|
-
- test/functional/ping_test.rb
|
415
418
|
- test/functional/realm_test.rb
|
416
419
|
- test/functional/registration_test.rb
|
417
|
-
- test/functional/report_template_test.rb
|
418
420
|
- test/functional/role_test.rb
|
421
|
+
- test/functional/settings_test.rb
|
419
422
|
- test/functional/ssh_keys_test.rb
|
420
423
|
- test/functional/status_test.rb
|
421
424
|
- test/functional/subnet/create_test.rb
|
@@ -426,13 +429,10 @@ test_files:
|
|
426
429
|
- test/functional/user_mail_notification_test.rb
|
427
430
|
- test/functional/user_test.rb
|
428
431
|
- test/functional/usergroup_test.rb
|
432
|
+
- test/functional/associating_commands_test.rb
|
433
|
+
- test/functional/report_template_test.rb
|
429
434
|
- test/functional/virtual_machine_test.rb
|
430
|
-
- test/functional/
|
431
|
-
- test/functional/filter_test.rb
|
432
|
-
- test/functional/location_test.rb
|
433
|
-
- test/functional/media_test.rb
|
434
|
-
- test/functional/settings_test.rb
|
435
|
-
- test/test_helper.rb
|
435
|
+
- test/functional/ping_test.rb
|
436
436
|
- test/unit/api/oauth/oauth_authentication_code_grant_test.rb
|
437
437
|
- test/unit/api/oauth/oauth_password_grant_test.rb
|
438
438
|
- test/unit/api/void_auth_test.rb
|
@@ -440,52 +440,53 @@ test_files:
|
|
440
440
|
- test/unit/api/session_authenticator_wrapper_test.rb
|
441
441
|
- test/unit/api_test.rb
|
442
442
|
- test/unit/apipie_resource_mock.rb
|
443
|
+
- test/unit/data/test_api.json
|
444
|
+
- test/unit/defaults_test.rb
|
445
|
+
- test/unit/dependency_resolver_test.rb
|
446
|
+
- test/unit/helpers/fake_searchables.rb
|
447
|
+
- test/unit/helpers/command.rb
|
448
|
+
- test/unit/helpers/resource_disabled.rb
|
449
|
+
- test/unit/id_resolver_test.rb
|
450
|
+
- test/unit/messages_test.rb
|
451
|
+
- test/unit/option_sources/id_params_test.rb
|
452
|
+
- test/unit/option_sources/ids_params_test.rb
|
453
|
+
- test/unit/output/formatters_test.rb
|
454
|
+
- test/unit/sessions_test.rb
|
455
|
+
- test/unit/test_helper.rb
|
456
|
+
- test/unit/test_output_adapter.rb
|
443
457
|
- test/unit/architecture_test.rb
|
444
458
|
- test/unit/audit_test.rb
|
445
459
|
- test/unit/auth_source_external.rb
|
446
460
|
- test/unit/auth_source_ldap_test.rb
|
447
461
|
- test/unit/bookmark_test.rb
|
462
|
+
- test/unit/commands_test.rb
|
448
463
|
- test/unit/common_parameter_test.rb
|
449
464
|
- test/unit/compute_profile_test.rb
|
450
465
|
- test/unit/compute_resource_test.rb
|
451
466
|
- test/unit/config_report_test.rb
|
452
|
-
- test/unit/data/test_api.json
|
453
|
-
- test/unit/defaults_test.rb
|
454
|
-
- test/unit/dependency_resolver_test.rb
|
455
467
|
- test/unit/domain_test.rb
|
456
468
|
- test/unit/exception_handler_test.rb
|
457
469
|
- test/unit/external_usergroup_test.rb
|
458
470
|
- test/unit/fact_test.rb
|
459
471
|
- test/unit/filter_test.rb
|
460
|
-
- test/unit/helpers/fake_searchables.rb
|
461
|
-
- test/unit/helpers/resource_disabled.rb
|
462
|
-
- test/unit/helpers/command.rb
|
463
472
|
- test/unit/host_test.rb
|
464
473
|
- test/unit/hostgroup_test.rb
|
465
474
|
- test/unit/image_test.rb
|
466
475
|
- test/unit/location_test.rb
|
467
476
|
- test/unit/mail_notification_test.rb
|
468
477
|
- test/unit/media_test.rb
|
469
|
-
- test/unit/messages_test.rb
|
470
478
|
- test/unit/model_test.rb
|
471
479
|
- test/unit/operating_system_test.rb
|
472
480
|
- test/unit/option_builders_test.rb
|
473
|
-
- test/unit/option_sources/id_params_test.rb
|
474
|
-
- test/unit/option_sources/ids_params_test.rb
|
475
481
|
- test/unit/organization_test.rb
|
476
|
-
- test/unit/output/formatters_test.rb
|
477
482
|
- test/unit/param_filters_test.rb
|
478
483
|
- test/unit/partition_table_test.rb
|
479
484
|
- test/unit/realm_test.rb
|
480
485
|
- test/unit/role_test.rb
|
481
|
-
- test/unit/sessions_test.rb
|
482
486
|
- test/unit/settings_test.rb
|
483
487
|
- test/unit/smart_proxy_test.rb
|
484
488
|
- test/unit/subnet_test.rb
|
485
489
|
- test/unit/template_test.rb
|
486
|
-
- test/unit/test_helper.rb
|
487
|
-
- test/unit/test_output_adapter.rb
|
488
490
|
- test/unit/user_test.rb
|
489
491
|
- test/unit/usergroup_test.rb
|
490
|
-
- test/
|
491
|
-
- test/unit/id_resolver_test.rb
|
492
|
+
- test/test_helper.rb
|
@@ -1,25 +0,0 @@
|
|
1
|
-
module HammerCLIForeman
|
2
|
-
module ComputeResources
|
3
|
-
class Rackspace < Base
|
4
|
-
def name
|
5
|
-
'Rackspace'
|
6
|
-
end
|
7
|
-
|
8
|
-
def compute_attributes
|
9
|
-
%w[flavor_id]
|
10
|
-
end
|
11
|
-
|
12
|
-
def provider_specific_fields
|
13
|
-
super + [
|
14
|
-
Fields::Field.new(:label => _('Region'), :path => [:region])
|
15
|
-
]
|
16
|
-
end
|
17
|
-
|
18
|
-
def mandatory_resource_options
|
19
|
-
super + %i[url]
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
HammerCLIForeman.register_compute_resource('rackspace', Rackspace.new)
|
24
|
-
end
|
25
|
-
end
|