hammer_cli_katello 1.17.1 → 1.19.0
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/lib/hammer_cli_katello/activation_key.rb +0 -65
- data/lib/hammer_cli_katello/content_override.rb +19 -16
- data/lib/hammer_cli_katello/filter.rb +1 -0
- data/lib/hammer_cli_katello/filter_rule.rb +2 -0
- data/lib/hammer_cli_katello/host_extensions.rb +12 -13
- data/lib/hammer_cli_katello/host_subscription.rb +0 -65
- data/lib/hammer_cli_katello/version.rb +1 -1
- data/locale/bn/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/bn/hammer_cli_katello.po +1 -1
- data/locale/bn_IN/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/bn_IN/hammer_cli_katello.po +1 -1
- data/locale/bqi/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/bqi/hammer_cli_katello.po +1 -1
- data/locale/ca/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/ca/hammer_cli_katello.po +1 -1
- data/locale/cs_CZ/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/cs_CZ/hammer_cli_katello.po +1 -1
- data/locale/de/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/de/hammer_cli_katello.po +1 -1
- data/locale/de_AT/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/de_AT/hammer_cli_katello.po +1 -1
- data/locale/de_DE/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/de_DE/hammer_cli_katello.po +1 -1
- data/locale/el/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/el/hammer_cli_katello.po +1 -1
- data/locale/en/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/en/hammer_cli_katello.po +1 -1
- data/locale/en_GB/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/en_GB/hammer_cli_katello.po +9 -9
- data/locale/en_US/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/en_US/hammer_cli_katello.po +1 -1
- data/locale/es/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/es/hammer_cli_katello.po +4 -4
- data/locale/et_EE/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/et_EE/hammer_cli_katello.po +1 -1
- data/locale/fr/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/fr/hammer_cli_katello.po +34 -34
- data/locale/gl/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/gl/hammer_cli_katello.po +1 -1
- data/locale/gu/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/gu/hammer_cli_katello.po +1 -1
- data/locale/he_IL/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/he_IL/hammer_cli_katello.po +1 -1
- data/locale/hi/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/hi/hammer_cli_katello.po +1 -1
- data/locale/id/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/id/hammer_cli_katello.po +1 -1
- data/locale/it/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/it/hammer_cli_katello.po +1 -1
- data/locale/ja/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/ja/hammer_cli_katello.po +8 -8
- data/locale/ka/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/ka/hammer_cli_katello.po +4 -4
- data/locale/kn/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/kn/hammer_cli_katello.po +1 -1
- data/locale/ko/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/ko/hammer_cli_katello.po +8 -8
- data/locale/ml_IN/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/ml_IN/hammer_cli_katello.po +1 -1
- data/locale/mr/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/mr/hammer_cli_katello.po +1 -1
- data/locale/nl_NL/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/nl_NL/hammer_cli_katello.po +1 -1
- data/locale/or/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/or/hammer_cli_katello.po +1 -1
- data/locale/pa/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/pa/hammer_cli_katello.po +1 -1
- data/locale/pl/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/pl/hammer_cli_katello.po +4 -4
- data/locale/pl_PL/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/pl_PL/hammer_cli_katello.po +4 -4
- data/locale/pt/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/pt/hammer_cli_katello.po +1 -1
- data/locale/pt_BR/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/pt_BR/hammer_cli_katello.po +1 -1
- data/locale/ro/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/ro/hammer_cli_katello.po +1 -1
- data/locale/ro_RO/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/ro_RO/hammer_cli_katello.po +1 -1
- data/locale/ru/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/ru/hammer_cli_katello.po +4 -4
- data/locale/sl/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/sl/hammer_cli_katello.po +3 -3
- data/locale/sv_SE/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/sv_SE/hammer_cli_katello.po +1 -1
- data/locale/ta/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/ta/hammer_cli_katello.po +1 -1
- data/locale/ta_IN/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/ta_IN/hammer_cli_katello.po +1 -1
- data/locale/te/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/te/hammer_cli_katello.po +1 -1
- data/locale/tr/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/tr/hammer_cli_katello.po +1 -1
- data/locale/vi/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/vi/hammer_cli_katello.po +1 -1
- data/locale/vi_VN/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/vi_VN/hammer_cli_katello.po +1 -1
- data/locale/zh/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/zh/hammer_cli_katello.po +1 -1
- data/locale/zh_CN/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/zh_CN/hammer_cli_katello.po +3 -3
- data/locale/zh_TW/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/zh_TW/hammer_cli_katello.po +1 -1
- data/test/functional/host/extensions/data/host.json +0 -3
- data/test/functional/host/extensions/data/host_list.json +0 -3
- metadata +2 -10
- data/test/functional/activation_key/subscriptions_test.rb +0 -74
- data/test/functional/host/subscription/attach_test.rb +0 -54
- data/test/functional/host/subscription/auto_attach_test.rb +0 -35
- data/test/functional/host/subscription/remove_test.rb +0 -52
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
#, fuzzy
|
|
15
15
|
msgid ""
|
|
16
16
|
msgstr ""
|
|
17
|
-
"Project-Id-Version: hammer_cli_katello 1.
|
|
17
|
+
"Project-Id-Version: hammer_cli_katello 1.19.0.pre.main\n"
|
|
18
18
|
"Report-Msgid-Bugs-To: \n"
|
|
19
19
|
"POT-Creation-Date: 2023-07-12 17:04+0000\n"
|
|
20
20
|
"PO-Revision-Date: 2017-09-11 13:28+0000\n"
|
|
@@ -24,9 +24,9 @@ msgstr ""
|
|
|
24
24
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
25
25
|
"Content-Transfer-Encoding: 8bit\n"
|
|
26
26
|
"Language: ru\n"
|
|
27
|
-
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
|
|
28
|
-
"
|
|
29
|
-
"
|
|
27
|
+
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
|
28
|
+
"%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n"
|
|
29
|
+
"%100>=11 && n%100<=14)? 2 : 3);\n"
|
|
30
30
|
|
|
31
31
|
msgid "Manipulate activation keys"
|
|
32
32
|
msgstr ""
|
|
Binary file
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
#, fuzzy
|
|
10
10
|
msgid ""
|
|
11
11
|
msgstr ""
|
|
12
|
-
"Project-Id-Version: hammer_cli_katello 1.
|
|
12
|
+
"Project-Id-Version: hammer_cli_katello 1.19.0.pre.main\n"
|
|
13
13
|
"Report-Msgid-Bugs-To: \n"
|
|
14
14
|
"POT-Creation-Date: 2023-07-12 17:04+0000\n"
|
|
15
15
|
"PO-Revision-Date: 2017-09-11 13:28+0000\n"
|
|
@@ -19,8 +19,8 @@ msgstr ""
|
|
|
19
19
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
20
20
|
"Content-Transfer-Encoding: 8bit\n"
|
|
21
21
|
"Language: sl\n"
|
|
22
|
-
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || "
|
|
23
|
-
"
|
|
22
|
+
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
|
|
23
|
+
"%100==4 ? 2 : 3);\n"
|
|
24
24
|
|
|
25
25
|
msgid "Manipulate activation keys"
|
|
26
26
|
msgstr ""
|
|
Binary file
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
#, fuzzy
|
|
11
11
|
msgid ""
|
|
12
12
|
msgstr ""
|
|
13
|
-
"Project-Id-Version: hammer_cli_katello 1.
|
|
13
|
+
"Project-Id-Version: hammer_cli_katello 1.19.0.pre.main\n"
|
|
14
14
|
"Report-Msgid-Bugs-To: \n"
|
|
15
15
|
"POT-Creation-Date: 2023-07-12 17:04+0000\n"
|
|
16
16
|
"PO-Revision-Date: 2017-09-11 13:28+0000\n"
|
|
Binary file
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
#, fuzzy
|
|
10
10
|
msgid ""
|
|
11
11
|
msgstr ""
|
|
12
|
-
"Project-Id-Version: hammer_cli_katello 1.
|
|
12
|
+
"Project-Id-Version: hammer_cli_katello 1.19.0.pre.main\n"
|
|
13
13
|
"Report-Msgid-Bugs-To: \n"
|
|
14
14
|
"POT-Creation-Date: 2023-07-12 17:04+0000\n"
|
|
15
15
|
"PO-Revision-Date: 2017-09-11 13:28+0000\n"
|
|
Binary file
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
#, fuzzy
|
|
10
10
|
msgid ""
|
|
11
11
|
msgstr ""
|
|
12
|
-
"Project-Id-Version: hammer_cli_katello 1.
|
|
12
|
+
"Project-Id-Version: hammer_cli_katello 1.19.0.pre.main\n"
|
|
13
13
|
"Report-Msgid-Bugs-To: \n"
|
|
14
14
|
"POT-Creation-Date: 2023-07-12 17:04+0000\n"
|
|
15
15
|
"PO-Revision-Date: 2017-09-11 13:28+0000\n"
|
|
Binary file
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
#, fuzzy
|
|
10
10
|
msgid ""
|
|
11
11
|
msgstr ""
|
|
12
|
-
"Project-Id-Version: hammer_cli_katello 1.
|
|
12
|
+
"Project-Id-Version: hammer_cli_katello 1.19.0.pre.main\n"
|
|
13
13
|
"Report-Msgid-Bugs-To: \n"
|
|
14
14
|
"POT-Creation-Date: 2023-07-12 17:04+0000\n"
|
|
15
15
|
"PO-Revision-Date: 2017-09-11 13:28+0000\n"
|
|
Binary file
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
#, fuzzy
|
|
10
10
|
msgid ""
|
|
11
11
|
msgstr ""
|
|
12
|
-
"Project-Id-Version: hammer_cli_katello 1.
|
|
12
|
+
"Project-Id-Version: hammer_cli_katello 1.19.0.pre.main\n"
|
|
13
13
|
"Report-Msgid-Bugs-To: \n"
|
|
14
14
|
"POT-Creation-Date: 2023-07-12 17:04+0000\n"
|
|
15
15
|
"PO-Revision-Date: 2017-09-11 13:28+0000\n"
|
|
Binary file
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
#, fuzzy
|
|
7
7
|
msgid ""
|
|
8
8
|
msgstr ""
|
|
9
|
-
"Project-Id-Version: hammer_cli_katello 1.
|
|
9
|
+
"Project-Id-Version: hammer_cli_katello 1.19.0.pre.main\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
11
|
"POT-Creation-Date: 2023-07-12 17:04+0000\n"
|
|
12
12
|
"PO-Revision-Date: 2017-09-11 13:28+0000\n"
|
|
Binary file
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
#, fuzzy
|
|
7
7
|
msgid ""
|
|
8
8
|
msgstr ""
|
|
9
|
-
"Project-Id-Version: hammer_cli_katello 1.
|
|
9
|
+
"Project-Id-Version: hammer_cli_katello 1.19.0.pre.main\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
11
|
"POT-Creation-Date: 2023-07-12 17:04+0000\n"
|
|
12
12
|
"PO-Revision-Date: 2017-09-11 13:28+0000\n"
|
|
Binary file
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
#, fuzzy
|
|
7
7
|
msgid ""
|
|
8
8
|
msgstr ""
|
|
9
|
-
"Project-Id-Version: hammer_cli_katello 1.
|
|
9
|
+
"Project-Id-Version: hammer_cli_katello 1.19.0.pre.main\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
11
|
"POT-Creation-Date: 2023-07-12 17:04+0000\n"
|
|
12
12
|
"PO-Revision-Date: 2017-09-11 13:28+0000\n"
|
|
Binary file
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
#, fuzzy
|
|
15
15
|
msgid ""
|
|
16
16
|
msgstr ""
|
|
17
|
-
"Project-Id-Version: hammer_cli_katello 1.
|
|
17
|
+
"Project-Id-Version: hammer_cli_katello 1.19.0.pre.main\n"
|
|
18
18
|
"Report-Msgid-Bugs-To: \n"
|
|
19
19
|
"POT-Creation-Date: 2023-07-12 17:04+0000\n"
|
|
20
20
|
"PO-Revision-Date: 2017-09-11 13:28+0000\n"
|
|
21
|
-
"Last-Translator: Ewoud Kohl van Wijngaarden "
|
|
22
|
-
"
|
|
21
|
+
"Last-Translator: Ewoud Kohl van Wijngaarden <ewoud"
|
|
22
|
+
"+transifex@kohlvanwijngaarden.nl>, 2024\n"
|
|
23
23
|
"Language-Team: Chinese (China) (https://app.transifex.com/foreman/teams/114/"
|
|
24
24
|
"zh_CN/)\n"
|
|
25
25
|
"MIME-Version: 1.0\n"
|
|
Binary file
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
#, fuzzy
|
|
12
12
|
msgid ""
|
|
13
13
|
msgstr ""
|
|
14
|
-
"Project-Id-Version: hammer_cli_katello 1.
|
|
14
|
+
"Project-Id-Version: hammer_cli_katello 1.19.0.pre.main\n"
|
|
15
15
|
"Report-Msgid-Bugs-To: \n"
|
|
16
16
|
"POT-Creation-Date: 2023-07-12 17:04+0000\n"
|
|
17
17
|
"PO-Revision-Date: 2017-09-11 13:28+0000\n"
|
|
@@ -61,8 +61,6 @@
|
|
|
61
61
|
"model_name":"Standard PC (i440FX + PIIX, 1996)",
|
|
62
62
|
"errata_status":1,
|
|
63
63
|
"errata_status_label":"Could not calculate errata status, ensure host is registered and katello-agent is installed",
|
|
64
|
-
"subscription_status":0,
|
|
65
|
-
"subscription_status_label":"Fully entitled",
|
|
66
64
|
"name":"robot.example.com",
|
|
67
65
|
"id":1,
|
|
68
66
|
"hostgroup_name":null,
|
|
@@ -117,7 +115,6 @@
|
|
|
117
115
|
"release_version":"7Server",
|
|
118
116
|
"purpose_usage":"Production",
|
|
119
117
|
"purpose_role":"Role",
|
|
120
|
-
"autoheal":true,
|
|
121
118
|
"registered_at":"2016-05-26 10:46:22 -0400",
|
|
122
119
|
"activation_keys":[
|
|
123
120
|
|
|
@@ -72,8 +72,6 @@
|
|
|
72
72
|
"model_name":"Standard PC (i440FX + PIIX, 1996)",
|
|
73
73
|
"errata_status":1,
|
|
74
74
|
"errata_status_label":"Could not calculate errata status, ensure host is registered and katello-agent is installed",
|
|
75
|
-
"subscription_status":0,
|
|
76
|
-
"subscription_status_label":"Fully entitled",
|
|
77
75
|
"traces_status":0,
|
|
78
76
|
"traces_status_label":"updated",
|
|
79
77
|
"name":"robot.example.com",
|
|
@@ -137,7 +135,6 @@
|
|
|
137
135
|
"last_checkin":"2016-05-26 10:46:18 -0400",
|
|
138
136
|
"service_level":null,
|
|
139
137
|
"release_version":"{\"releaseVer\"=>nil}",
|
|
140
|
-
"autoheal":true,
|
|
141
138
|
"registered_at":"2016-05-26 10:46:22 -0400"
|
|
142
139
|
},
|
|
143
140
|
"content_host_id":2
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hammer_cli_katello
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.19.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adam Price
|
|
@@ -37,7 +37,7 @@ authors:
|
|
|
37
37
|
autorequire:
|
|
38
38
|
bindir: bin
|
|
39
39
|
cert_chain: []
|
|
40
|
-
date: 2025-
|
|
40
|
+
date: 2025-11-11 00:00:00.000000000 Z
|
|
41
41
|
dependencies:
|
|
42
42
|
- !ruby/object:Gem::Dependency
|
|
43
43
|
name: csv
|
|
@@ -362,7 +362,6 @@ files:
|
|
|
362
362
|
- test/functional/activation_key/list_test.rb
|
|
363
363
|
- test/functional/activation_key/product_content_test.rb
|
|
364
364
|
- test/functional/activation_key/remove_host_collection_test.rb
|
|
365
|
-
- test/functional/activation_key/subscriptions_test.rb
|
|
366
365
|
- test/functional/activation_key/update_test.rb
|
|
367
366
|
- test/functional/apipie_helper_test.rb
|
|
368
367
|
- test/functional/capsule/capsule_helpers.rb
|
|
@@ -457,13 +456,10 @@ files:
|
|
|
457
456
|
- test/functional/host/extensions/list_test.rb
|
|
458
457
|
- test/functional/host/extensions/update_test.rb
|
|
459
458
|
- test/functional/host/host_helpers.rb
|
|
460
|
-
- test/functional/host/subscription/attach_test.rb
|
|
461
|
-
- test/functional/host/subscription/auto_attach_test.rb
|
|
462
459
|
- test/functional/host/subscription/content_override_test.rb
|
|
463
460
|
- test/functional/host/subscription/enabled_repositories_test.rb
|
|
464
461
|
- test/functional/host/subscription/product_content_test.rb
|
|
465
462
|
- test/functional/host/subscription/register_test.rb
|
|
466
|
-
- test/functional/host/subscription/remove_test.rb
|
|
467
463
|
- test/functional/host/subscription/unregister_test.rb
|
|
468
464
|
- test/functional/host/traces/list_test.rb
|
|
469
465
|
- test/functional/host/traces/resolve_test.rb
|
|
@@ -613,7 +609,6 @@ test_files:
|
|
|
613
609
|
- test/functional/activation_key/list_test.rb
|
|
614
610
|
- test/functional/activation_key/product_content_test.rb
|
|
615
611
|
- test/functional/activation_key/remove_host_collection_test.rb
|
|
616
|
-
- test/functional/activation_key/subscriptions_test.rb
|
|
617
612
|
- test/functional/activation_key/update_test.rb
|
|
618
613
|
- test/functional/apipie_helper_test.rb
|
|
619
614
|
- test/functional/capsule/capsule_helpers.rb
|
|
@@ -708,13 +703,10 @@ test_files:
|
|
|
708
703
|
- test/functional/host/extensions/list_test.rb
|
|
709
704
|
- test/functional/host/extensions/update_test.rb
|
|
710
705
|
- test/functional/host/host_helpers.rb
|
|
711
|
-
- test/functional/host/subscription/attach_test.rb
|
|
712
|
-
- test/functional/host/subscription/auto_attach_test.rb
|
|
713
706
|
- test/functional/host/subscription/content_override_test.rb
|
|
714
707
|
- test/functional/host/subscription/enabled_repositories_test.rb
|
|
715
708
|
- test/functional/host/subscription/product_content_test.rb
|
|
716
709
|
- test/functional/host/subscription/register_test.rb
|
|
717
|
-
- test/functional/host/subscription/remove_test.rb
|
|
718
710
|
- test/functional/host/subscription/unregister_test.rb
|
|
719
711
|
- test/functional/host/traces/list_test.rb
|
|
720
712
|
- test/functional/host/traces/resolve_test.rb
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
require_relative '../test_helper'
|
|
2
|
-
require 'hammer_cli_katello/activation_key'
|
|
3
|
-
|
|
4
|
-
module HammerCLIKatello
|
|
5
|
-
describe ActivationKeyCommand::SubscriptionsCommand do
|
|
6
|
-
it 'requires organization options' do
|
|
7
|
-
expected_error = "Could not find organization"
|
|
8
|
-
result = run_cmd(%w(activation-key subscriptions --name test))
|
|
9
|
-
assert_equal(result.err[/#{expected_error}/], expected_error)
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
it 'allows organization name' do
|
|
13
|
-
api_expects(:organizations, :index) { |par| par[:search] == "name = \"org1\"" }
|
|
14
|
-
.returns(index_response([{'id' => 1}]))
|
|
15
|
-
|
|
16
|
-
api_expects(:subscriptions, :index) { |par| par['organization_id'].to_i == 1 }
|
|
17
|
-
|
|
18
|
-
run_cmd(%w(activation-key subscriptions --id 1 --organization org1))
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
it 'allows organization label' do
|
|
22
|
-
api_expects(:organizations, :index) { |par| par[:search] == "label = \"org1\"" }
|
|
23
|
-
.returns(index_response([{'id' => 1}]))
|
|
24
|
-
|
|
25
|
-
api_expects(:subscriptions, :index) { |par| par['organization_id'].to_i == 1 }
|
|
26
|
-
|
|
27
|
-
run_cmd(%w(activation-key subscriptions --id 1 --organization-label org1))
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
it 'lists subscriptions available for the activation key' do
|
|
31
|
-
api_expects(:subscriptions, :index) do |p|
|
|
32
|
-
p['available_for'] == 'activation_key'
|
|
33
|
-
end
|
|
34
|
-
run_cmd(%w(activation-key subscriptions --organization-id 1 --id 1
|
|
35
|
-
--available-for activation_key))
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
it 'lists subscriptions used by the activation key' do
|
|
39
|
-
api_expects(:subscriptions, :index) { |p| p['activation_key_id'] == '1' }
|
|
40
|
-
run_cmd(%w(activation-key subscriptions --organization-id 1 --id 1))
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
it 'allows activation_key_name' do
|
|
44
|
-
api_expects(:activation_keys, :index) { |p| p['name'] == 'ak1' }
|
|
45
|
-
.returns(index_response([{'id' => 1}]))
|
|
46
|
-
api_expects(:subscriptions, :index) { |p| p['activation_key_id'] == 1 }
|
|
47
|
-
run_cmd(%w(activation-key subscriptions --organization-id 1 --name ak1))
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
it 'allows a subscription to be added to an activation key' do
|
|
51
|
-
api_expects(:activation_keys, :add_subscriptions) do |p|
|
|
52
|
-
p['id'] == 1 && p['subscription_id'] == 3
|
|
53
|
-
end
|
|
54
|
-
run_cmd(%w(activation-key add-subscription --id 1 --subscription-id 3))
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
it 'allows a subscription to be added by name to an activation key with org label' do
|
|
58
|
-
api_expects(:organizations, :index) { |par| par[:search] == "label = \"org1\"" }
|
|
59
|
-
.returns(index_response([{'id' => 1}]))
|
|
60
|
-
api_expects(:subscriptions, :index) { |p| p['name'] == 'sub' }
|
|
61
|
-
.returns(index_response([{'name' => 'sub'}]))
|
|
62
|
-
api_expects(:activation_keys, :add_subscriptions) { |p| p['id'] == 1 }
|
|
63
|
-
run_cmd(%w(activation-key add-subscription --id 1 --subscription sub
|
|
64
|
-
--organization-label org1))
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
it 'allows multiple subscriptions to be added to an activation key' do
|
|
68
|
-
api_expects(:activation_keys, :add_subscriptions) do |p|
|
|
69
|
-
p['id'] == 1 && p['subscriptions'] == [{'id' => '3'}, {'id' => '4'}]
|
|
70
|
-
end
|
|
71
|
-
run_cmd(%w(activation-key add-subscription --id 1 --subscriptions id=3,id=4))
|
|
72
|
-
end
|
|
73
|
-
end
|
|
74
|
-
end
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
require File.join(File.dirname(__FILE__), '../../test_helper')
|
|
2
|
-
require File.join(File.dirname(__FILE__), '../host_helpers')
|
|
3
|
-
|
|
4
|
-
describe 'host subscription attach' do
|
|
5
|
-
include HostHelpers
|
|
6
|
-
|
|
7
|
-
before do
|
|
8
|
-
@cmd = %w(host subscription attach)
|
|
9
|
-
end
|
|
10
|
-
it "attach a subscription to a host No Quantity" do
|
|
11
|
-
params = ['--host-id=3', '--subscription-id=100']
|
|
12
|
-
ex = api_expects(:host_subscriptions, :add_subscriptions, "attach host") do |par|
|
|
13
|
-
par['host_id'] == 3 && par[:subscriptions][0][:id].to_s == '100' &&
|
|
14
|
-
par[:subscriptions][0][:quantity].to_s == '1'
|
|
15
|
-
end
|
|
16
|
-
ex.returns({})
|
|
17
|
-
|
|
18
|
-
expected_result = success_result(
|
|
19
|
-
'Subscription attached to the host successfully.
|
|
20
|
-
'
|
|
21
|
-
)
|
|
22
|
-
|
|
23
|
-
result = run_cmd(@cmd + params)
|
|
24
|
-
assert_cmd(expected_result, result)
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
it "attach a subscription to a host with Quantity" do
|
|
28
|
-
params = ['--host-id=3', '--subscription-id=100', "--quantity=10"]
|
|
29
|
-
ex = api_expects(:host_subscriptions, :add_subscriptions, "attach host") do |par|
|
|
30
|
-
par['host_id'] == 3 && par[:subscriptions][0][:id].to_s == '100' &&
|
|
31
|
-
par[:subscriptions][0][:quantity].to_s == '10'
|
|
32
|
-
end
|
|
33
|
-
ex.returns({})
|
|
34
|
-
|
|
35
|
-
expected_result = success_result(
|
|
36
|
-
'Subscription attached to the host successfully.
|
|
37
|
-
'
|
|
38
|
-
)
|
|
39
|
-
|
|
40
|
-
result = run_cmd(@cmd + params)
|
|
41
|
-
assert_cmd(expected_result, result)
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
it "resolves id from name" do
|
|
45
|
-
params = ['--host=boo', '--subscription-id=100']
|
|
46
|
-
api_expects(:host_subscriptions, :add_subscriptions, "attach host") do |par|
|
|
47
|
-
par['host_id'].to_s == "3" && par[:subscriptions][0][:id].to_s == '100' &&
|
|
48
|
-
par[:subscriptions][0][:quantity].to_s == '1'
|
|
49
|
-
end
|
|
50
|
-
expect_host_search('boo', '3')
|
|
51
|
-
|
|
52
|
-
run_cmd(@cmd + params)
|
|
53
|
-
end
|
|
54
|
-
end
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
require File.join(File.dirname(__FILE__), '../../test_helper')
|
|
2
|
-
require File.join(File.dirname(__FILE__), '../host_helpers')
|
|
3
|
-
|
|
4
|
-
describe 'host subscription auto-attach' do
|
|
5
|
-
include HostHelpers
|
|
6
|
-
|
|
7
|
-
before do
|
|
8
|
-
@cmd = %w(host subscription auto-attach)
|
|
9
|
-
end
|
|
10
|
-
it "auto-attach to a host" do
|
|
11
|
-
params = ['--host-id=3']
|
|
12
|
-
ex = api_expects(:host_subscriptions, :auto_attach, "auto-attach subs host") do |par|
|
|
13
|
-
par['host_id'] == 3
|
|
14
|
-
end
|
|
15
|
-
ex.returns({})
|
|
16
|
-
|
|
17
|
-
expected_result = success_result(
|
|
18
|
-
'Auto attached subscriptions to the host successfully.
|
|
19
|
-
'
|
|
20
|
-
)
|
|
21
|
-
|
|
22
|
-
result = run_cmd(@cmd + params)
|
|
23
|
-
assert_cmd(expected_result, result)
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
it "resolves id from name" do
|
|
27
|
-
params = ['--host=boo']
|
|
28
|
-
api_expects(:host_subscriptions, :auto_attach, "auto-attach subs host") do |par|
|
|
29
|
-
par['host_id'].to_s == "3"
|
|
30
|
-
end
|
|
31
|
-
expect_host_search('boo', '3')
|
|
32
|
-
|
|
33
|
-
run_cmd(@cmd + params)
|
|
34
|
-
end
|
|
35
|
-
end
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
require File.join(File.dirname(__FILE__), '../../test_helper')
|
|
2
|
-
require File.join(File.dirname(__FILE__), '../host_helpers')
|
|
3
|
-
|
|
4
|
-
describe 'host subscription remove' do
|
|
5
|
-
include HostHelpers
|
|
6
|
-
|
|
7
|
-
before do
|
|
8
|
-
@cmd = %w(host subscription remove)
|
|
9
|
-
end
|
|
10
|
-
it "remove a subscription to a host No Quantity" do
|
|
11
|
-
params = ['--host-id=3', '--subscription-id=100']
|
|
12
|
-
ex = api_expects(:host_subscriptions, :remove_subscriptions, "remove subs host") do |par|
|
|
13
|
-
par['host_id'] == 3 && par[:subscriptions][0][:id].to_s == '100'
|
|
14
|
-
end
|
|
15
|
-
ex.returns({})
|
|
16
|
-
|
|
17
|
-
expected_result = success_result(
|
|
18
|
-
'Subscription removed from the host successfully.
|
|
19
|
-
'
|
|
20
|
-
)
|
|
21
|
-
|
|
22
|
-
result = run_cmd(@cmd + params)
|
|
23
|
-
assert_cmd(expected_result, result)
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
it "remove a subscription to a host with Quantity" do
|
|
27
|
-
params = ['--host-id=3', '--subscription-id=100', "--quantity=10"]
|
|
28
|
-
ex = api_expects(:host_subscriptions, :remove_subscriptions, "remove subs host") do |par|
|
|
29
|
-
par['host_id'] == 3 && par[:subscriptions][0][:id].to_s == '100' &&
|
|
30
|
-
par[:subscriptions][0][:quantity].to_s == '10'
|
|
31
|
-
end
|
|
32
|
-
ex.returns({})
|
|
33
|
-
|
|
34
|
-
expected_result = success_result(
|
|
35
|
-
'Subscription removed from the host successfully.
|
|
36
|
-
'
|
|
37
|
-
)
|
|
38
|
-
|
|
39
|
-
result = run_cmd(@cmd + params)
|
|
40
|
-
assert_cmd(expected_result, result)
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
it "resolves id from name" do
|
|
44
|
-
params = ['--host=boo', '--subscription-id=100']
|
|
45
|
-
api_expects(:host_subscriptions, :remove_subscriptions, "remove subs host") do |par|
|
|
46
|
-
par['host_id'].to_s == "3" && par[:subscriptions][0][:id].to_s == '100'
|
|
47
|
-
end
|
|
48
|
-
expect_host_search('boo', '3')
|
|
49
|
-
|
|
50
|
-
run_cmd(@cmd + params)
|
|
51
|
-
end
|
|
52
|
-
end
|