Bump to 1.14.1
[platform/upstream/augeas.git] / lenses / tests / test_rhsm.aug
1 (*
2 Module: Test_Rhsm
3   Provides unit tests and examples for the <Rhsm> lens.
4 *)
5
6 module Test_rhsm =
7
8   (* Variable: conf
9      A full rhsm.conf *)
10   let conf = "# Red Hat Subscription Manager Configuration File:
11
12 # Unified Entitlement Platform Configuration
13 [server]
14 # Server hostname:
15 hostname = subscription.rhn.redhat.com
16
17 # Server prefix:
18 prefix = /subscription
19
20 # Server port:
21 port = 443
22
23 # Set to 1 to disable certificate validation:
24 insecure = 0
25
26 # Set the depth of certs which should be checked
27 # when validating a certificate
28 ssl_verify_depth = 3
29
30 # an http proxy server to use
31 proxy_hostname =
32
33 # port for http proxy server
34 proxy_port =
35
36 # user name for authenticating to an http proxy, if needed
37 proxy_user =
38
39 # password for basic http proxy auth, if needed
40 proxy_password =
41
42 [rhsm]
43 # Content base URL:
44 baseurl= https://cdn.redhat.com
45
46 # Server CA certificate location:
47 ca_cert_dir = /etc/rhsm/ca/
48
49 # Default CA cert to use when generating yum repo configs:
50 repo_ca_cert = %(ca_cert_dir)sredhat-uep.pem
51
52 # Where the certificates should be stored
53 productCertDir = /etc/pki/product
54 entitlementCertDir = /etc/pki/entitlement
55 consumerCertDir = /etc/pki/consumer
56
57 # Manage generation of yum repositories for subscribed content:
58 manage_repos = 1
59
60 # Refresh repo files with server overrides on every yum command
61 full_refresh_on_yum = 0
62
63 # If set to zero, the client will not report the package profile to
64 # the subscription management service.
65 report_package_profile = 1
66
67 # The directory to search for subscription manager plugins
68 pluginDir = /usr/share/rhsm-plugins
69
70 # The directory to search for plugin configuration files
71 pluginConfDir = /etc/rhsm/pluginconf.d
72
73 [rhsmcertd]
74 # Interval to run cert check (in minutes):
75 certCheckInterval = 240
76 # Interval to run auto-attach (in minutes):
77 autoAttachInterval = 1440
78 "
79
80   test Rhsm.lns get conf =
81     { "#comment" = "Red Hat Subscription Manager Configuration File:" }
82     {  }
83     { "#comment" = "Unified Entitlement Platform Configuration" }
84     { "server"
85       { "#comment" = "Server hostname:" }
86       { "hostname" = "subscription.rhn.redhat.com" }
87       {  }
88       { "#comment" = "Server prefix:" }
89       { "prefix" = "/subscription" }
90       {  }
91       { "#comment" = "Server port:" }
92       { "port" = "443" }
93       {  }
94       { "#comment" = "Set to 1 to disable certificate validation:" }
95       { "insecure" = "0" }
96       {  }
97       { "#comment" = "Set the depth of certs which should be checked" }
98       { "#comment" = "when validating a certificate" }
99       { "ssl_verify_depth" = "3" }
100       {  }
101       { "#comment" = "an http proxy server to use" }
102       { "proxy_hostname" }
103       {  }
104       { "#comment" = "port for http proxy server" }
105       { "proxy_port" }
106       {  }
107       { "#comment" = "user name for authenticating to an http proxy, if needed" }
108       { "proxy_user" }
109       {  }
110       { "#comment" = "password for basic http proxy auth, if needed" }
111       { "proxy_password" }
112       {  }
113     }
114     { "rhsm"
115       { "#comment" = "Content base URL:" }
116       { "baseurl" = "https://cdn.redhat.com" }
117       {  }
118       { "#comment" = "Server CA certificate location:" }
119       { "ca_cert_dir" = "/etc/rhsm/ca/" }
120       {  }
121       { "#comment" = "Default CA cert to use when generating yum repo configs:" }
122       { "repo_ca_cert" = "%(ca_cert_dir)sredhat-uep.pem" }
123       {  }
124       { "#comment" = "Where the certificates should be stored" }
125       { "productCertDir" = "/etc/pki/product" }
126       { "entitlementCertDir" = "/etc/pki/entitlement" }
127       { "consumerCertDir" = "/etc/pki/consumer" }
128       {  }
129       { "#comment" = "Manage generation of yum repositories for subscribed content:" }
130       { "manage_repos" = "1" }
131       {  }
132       { "#comment" = "Refresh repo files with server overrides on every yum command" }
133       { "full_refresh_on_yum" = "0" }
134       {  }
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" }
138       {  }
139       { "#comment" = "The directory to search for subscription manager plugins" }
140       { "pluginDir" = "/usr/share/rhsm-plugins" }
141       {  }
142       { "#comment" = "The directory to search for plugin configuration files" }
143       { "pluginConfDir" = "/etc/rhsm/pluginconf.d" }
144       {  }
145     }
146     { "rhsmcertd"
147       { "#comment" = "Interval to run cert check (in minutes):" }
148       { "certCheckInterval" = "240" }
149       { "#comment" = "Interval to run auto-attach (in minutes):" }
150       { "autoAttachInterval" = "1440" }
151     }