3 Provides unit tests and examples for the <Rhsm> lens.
10 let conf = "# Red Hat Subscription Manager Configuration File:
12 # Unified Entitlement Platform Configuration
15 hostname = subscription.rhn.redhat.com
18 prefix = /subscription
23 # Set to 1 to disable certificate validation:
26 # Set the depth of certs which should be checked
27 # when validating a certificate
30 # an http proxy server to use
33 # port for http proxy server
36 # user name for authenticating to an http proxy, if needed
39 # password for basic http proxy auth, if needed
44 baseurl= https://cdn.redhat.com
46 # Server CA certificate location:
47 ca_cert_dir = /etc/rhsm/ca/
49 # Default CA cert to use when generating yum repo configs:
50 repo_ca_cert = %(ca_cert_dir)sredhat-uep.pem
52 # Where the certificates should be stored
53 productCertDir = /etc/pki/product
54 entitlementCertDir = /etc/pki/entitlement
55 consumerCertDir = /etc/pki/consumer
57 # Manage generation of yum repositories for subscribed content:
60 # Refresh repo files with server overrides on every yum command
61 full_refresh_on_yum = 0
63 # If set to zero, the client will not report the package profile to
64 # the subscription management service.
65 report_package_profile = 1
67 # The directory to search for subscription manager plugins
68 pluginDir = /usr/share/rhsm-plugins
70 # The directory to search for plugin configuration files
71 pluginConfDir = /etc/rhsm/pluginconf.d
74 # Interval to run cert check (in minutes):
75 certCheckInterval = 240
76 # Interval to run auto-attach (in minutes):
77 autoAttachInterval = 1440
80 test Rhsm.lns get conf =
81 { "#comment" = "Red Hat Subscription Manager Configuration File:" }
83 { "#comment" = "Unified Entitlement Platform Configuration" }
85 { "#comment" = "Server hostname:" }
86 { "hostname" = "subscription.rhn.redhat.com" }
88 { "#comment" = "Server prefix:" }
89 { "prefix" = "/subscription" }
91 { "#comment" = "Server port:" }
94 { "#comment" = "Set to 1 to disable certificate validation:" }
97 { "#comment" = "Set the depth of certs which should be checked" }
98 { "#comment" = "when validating a certificate" }
99 { "ssl_verify_depth" = "3" }
101 { "#comment" = "an http proxy server to use" }
104 { "#comment" = "port for http proxy server" }
107 { "#comment" = "user name for authenticating to an http proxy, if needed" }
110 { "#comment" = "password for basic http proxy auth, if needed" }
115 { "#comment" = "Content base URL:" }
116 { "baseurl" = "https://cdn.redhat.com" }
118 { "#comment" = "Server CA certificate location:" }
119 { "ca_cert_dir" = "/etc/rhsm/ca/" }
121 { "#comment" = "Default CA cert to use when generating yum repo configs:" }
122 { "repo_ca_cert" = "%(ca_cert_dir)sredhat-uep.pem" }
124 { "#comment" = "Where the certificates should be stored" }
125 { "productCertDir" = "/etc/pki/product" }
126 { "entitlementCertDir" = "/etc/pki/entitlement" }
127 { "consumerCertDir" = "/etc/pki/consumer" }
129 { "#comment" = "Manage generation of yum repositories for subscribed content:" }
130 { "manage_repos" = "1" }
132 { "#comment" = "Refresh repo files with server overrides on every yum command" }
133 { "full_refresh_on_yum" = "0" }
135 { "#comment" = "If set to zero, the client will not report the package profile to" }
136 { "#comment" = "the subscription management service." }
137 { "report_package_profile" = "1" }
139 { "#comment" = "The directory to search for subscription manager plugins" }
140 { "pluginDir" = "/usr/share/rhsm-plugins" }
142 { "#comment" = "The directory to search for plugin configuration files" }
143 { "pluginConfDir" = "/etc/rhsm/pluginconf.d" }
147 { "#comment" = "Interval to run cert check (in minutes):" }
148 { "certCheckInterval" = "240" }
149 { "#comment" = "Interval to run auto-attach (in minutes):" }
150 { "autoAttachInterval" = "1440" }