You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Red Hat Virtualization: Change from "RHEV" to "RHV"
- Red Hat Openstack Platform: Change from "RHEL Openstack Platform" to "Red Hat Openstack Platform"
- Fix link to docs for registering hosts using bootstrap script
- Simplify regular expressions
- Add test based on documentation strings
Copy file name to clipboardExpand all lines: test/unit/replacer_repository_test.rb
+24-2Lines changed: 24 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,30 @@ class TranslationsTest < ActiveSupport::TestCase
14
14
end
15
15
16
16
test'Can work with whitelist branding'do
17
-
actual=_('HTTP proxy for proxy')
17
+
actual=_('http proxy for smart proxy')
18
18
19
-
assert_equal'HTTP Proxy for Capsule',actual
19
+
assert_equal'HTTP proxy for Capsule',actual
20
+
end
21
+
22
+
test'random branding test'do
23
+
# Tests branding based on strings randomly picked from Foreman- and Satellite-documentation
24
+
test_strings=[
25
+
'An operating system is a collection of resources that define how Foreman server installs a base operating system on a host.',
26
+
'Installing the Infoblox CA certificate on Smart Proxy server',
27
+
'In the Foreman web UI, navigate to Infrastructure > Smart Proxies, select the Smart Proxy with the DHCP Infoblox module, and ensure that the dhcp feature is listed.',
28
+
'Foreman Server automatically manages the PXE configuration, organizes networking services, and provides the operating system and configuration for the host.',
29
+
'In Foreman, you can create an HTTP proxy and then assign the HTTP proxy to your EC2 compute resource.',
30
+
]
31
+
translated_strings=[
32
+
'An operating system is a collection of resources that define how Satellite server installs a base operating system on a host.',# Pr. Hosts: 2.3
33
+
'Installing the Infoblox CA certificate on Capsule server',# Pr. Hosts: 4.3
34
+
'In the Satellite web UI, navigate to Infrastructure > Capsules, select the Capsule with the DHCP Infoblox module, and ensure that the dhcp feature is listed.',# Pr. Hosts: 4.4
35
+
'Satellite Server automatically manages the PXE configuration, organizes networking services, and provides the operating system and configuration for the host.',# Pr. Hosts: 5.3
36
+
'In Satellite, you can create an HTTP proxy and then assign the HTTP proxy to your EC2 compute resource.',# Pr. Hosts: 14.4
0 commit comments