puppet 6.18.0-universal-darwin → 6.21.1-universal-darwin

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of puppet might be problematic. Click here for more details.

Files changed (276) hide show
  1. checksums.yaml +4 -4
  2. data/CODEOWNERS +2 -16
  3. data/Gemfile +2 -0
  4. data/Gemfile.lock +37 -34
  5. data/README.md +1 -2
  6. data/Rakefile +4 -12
  7. data/lib/puppet/agent/locker.rb +0 -7
  8. data/lib/puppet/application.rb +10 -6
  9. data/lib/puppet/application/agent.rb +9 -3
  10. data/lib/puppet/application/apply.rb +3 -2
  11. data/lib/puppet/application/device.rb +1 -0
  12. data/lib/puppet/application/doc.rb +1 -1
  13. data/lib/puppet/application/filebucket.rb +2 -2
  14. data/lib/puppet/application/lookup.rb +5 -5
  15. data/lib/puppet/application/script.rb +1 -0
  16. data/lib/puppet/application_support.rb +7 -0
  17. data/lib/puppet/configurer.rb +50 -8
  18. data/lib/puppet/defaults.rb +67 -35
  19. data/lib/puppet/environments.rb +84 -59
  20. data/lib/puppet/face/catalog.rb +1 -1
  21. data/lib/puppet/face/config.rb +56 -16
  22. data/lib/puppet/face/epp.rb +12 -2
  23. data/lib/puppet/face/facts.rb +60 -0
  24. data/lib/puppet/face/node.rb +3 -3
  25. data/lib/puppet/face/node/clean.rb +2 -2
  26. data/lib/puppet/face/status.rb +1 -1
  27. data/lib/puppet/ffi/posix.rb +10 -0
  28. data/lib/puppet/ffi/posix/constants.rb +14 -0
  29. data/lib/puppet/ffi/posix/functions.rb +24 -0
  30. data/lib/puppet/file_bucket/dipper.rb +1 -1
  31. data/lib/puppet/functions/epp.rb +1 -0
  32. data/lib/puppet/functions/inline_epp.rb +1 -0
  33. data/lib/puppet/functions/new.rb +8 -3
  34. data/lib/puppet/http.rb +1 -0
  35. data/lib/puppet/http/client.rb +1 -1
  36. data/lib/puppet/http/resolver.rb +5 -8
  37. data/lib/puppet/http/resolver/server_list.rb +18 -36
  38. data/lib/puppet/http/resolver/settings.rb +4 -4
  39. data/lib/puppet/http/resolver/srv.rb +5 -5
  40. data/lib/puppet/http/service.rb +3 -1
  41. data/lib/puppet/http/service/compiler.rb +1 -1
  42. data/lib/puppet/http/service/file_server.rb +1 -1
  43. data/lib/puppet/http/service/puppetserver.rb +39 -0
  44. data/lib/puppet/http/session.rb +5 -4
  45. data/lib/puppet/indirector/catalog/compiler.rb +1 -1
  46. data/lib/puppet/indirector/fact_search.rb +60 -0
  47. data/lib/puppet/indirector/facts/json.rb +27 -0
  48. data/lib/puppet/indirector/facts/yaml.rb +4 -59
  49. data/lib/puppet/indirector/json.rb +5 -1
  50. data/lib/puppet/indirector/msgpack.rb +1 -1
  51. data/lib/puppet/indirector/node/json.rb +8 -0
  52. data/lib/puppet/indirector/report/json.rb +34 -0
  53. data/lib/puppet/indirector/request.rb +4 -4
  54. data/lib/puppet/indirector/yaml.rb +1 -1
  55. data/lib/puppet/module_tool/applications/installer.rb +48 -2
  56. data/lib/puppet/module_tool/errors/shared.rb +17 -2
  57. data/lib/puppet/network/formats.rb +2 -1
  58. data/lib/puppet/network/http/api/master/v3/environments.rb +0 -1
  59. data/lib/puppet/node/facts.rb +17 -0
  60. data/lib/puppet/pal/pal_impl.rb +70 -17
  61. data/lib/puppet/parser/ast/leaf.rb +3 -2
  62. data/lib/puppet/parser/templatewrapper.rb +1 -1
  63. data/lib/puppet/pops/evaluator/collectors/abstract_collector.rb +1 -3
  64. data/lib/puppet/pops/evaluator/deferred_resolver.rb +5 -3
  65. data/lib/puppet/pops/evaluator/evaluator_impl.rb +22 -3
  66. data/lib/puppet/pops/evaluator/runtime3_converter.rb +2 -2
  67. data/lib/puppet/pops/model/ast_transformer.rb +1 -1
  68. data/lib/puppet/pops/types/p_meta_type.rb +1 -1
  69. data/lib/puppet/pops/types/p_type_set_type.rb +4 -0
  70. data/lib/puppet/property/list.rb +1 -1
  71. data/lib/puppet/provider/group/groupadd.rb +13 -8
  72. data/lib/puppet/provider/package/apt.rb +34 -2
  73. data/lib/puppet/provider/package/aptitude.rb +6 -0
  74. data/lib/puppet/provider/package/dpkg.rb +1 -1
  75. data/lib/puppet/provider/package/pip2.rb +17 -0
  76. data/lib/puppet/provider/package/puppetserver_gem.rb +180 -0
  77. data/lib/puppet/provider/package/yum.rb +1 -0
  78. data/lib/puppet/provider/service/debian.rb +2 -0
  79. data/lib/puppet/provider/user/aix.rb +2 -2
  80. data/lib/puppet/provider/user/useradd.rb +62 -8
  81. data/lib/puppet/reference/configuration.rb +6 -5
  82. data/lib/puppet/resource/type.rb +2 -1
  83. data/lib/puppet/rest/route.rb +2 -2
  84. data/lib/puppet/settings.rb +62 -20
  85. data/lib/puppet/settings/alias_setting.rb +37 -0
  86. data/lib/puppet/settings/base_setting.rb +26 -2
  87. data/lib/puppet/transaction/report.rb +11 -7
  88. data/lib/puppet/type/file/source.rb +1 -1
  89. data/lib/puppet/type/filebucket.rb +1 -1
  90. data/lib/puppet/type/package.rb +3 -3
  91. data/lib/puppet/util/autoload.rb +1 -8
  92. data/lib/puppet/util/connection.rb +8 -8
  93. data/lib/puppet/util/fact_dif.rb +62 -0
  94. data/lib/puppet/util/posix.rb +54 -5
  95. data/lib/puppet/util/rubygems.rb +5 -1
  96. data/lib/puppet/util/run_mode.rb +5 -1
  97. data/lib/puppet/util/windows/service.rb +1 -1
  98. data/lib/puppet/version.rb +1 -1
  99. data/locales/puppet.pot +289 -268
  100. data/man/man5/puppet.conf.5 +33 -17
  101. data/man/man8/puppet-agent.8 +7 -4
  102. data/man/man8/puppet-apply.8 +2 -2
  103. data/man/man8/puppet-catalog.8 +1 -1
  104. data/man/man8/puppet-config.8 +6 -6
  105. data/man/man8/puppet-describe.8 +1 -1
  106. data/man/man8/puppet-device.8 +2 -2
  107. data/man/man8/puppet-doc.8 +1 -1
  108. data/man/man8/puppet-epp.8 +1 -1
  109. data/man/man8/puppet-facts.8 +32 -1
  110. data/man/man8/puppet-filebucket.8 +3 -3
  111. data/man/man8/puppet-generate.8 +1 -1
  112. data/man/man8/puppet-help.8 +1 -1
  113. data/man/man8/puppet-key.8 +1 -1
  114. data/man/man8/puppet-lookup.8 +1 -1
  115. data/man/man8/puppet-man.8 +1 -1
  116. data/man/man8/puppet-module.8 +1 -1
  117. data/man/man8/puppet-node.8 +7 -4
  118. data/man/man8/puppet-parser.8 +1 -1
  119. data/man/man8/puppet-plugin.8 +1 -1
  120. data/man/man8/puppet-report.8 +4 -1
  121. data/man/man8/puppet-resource.8 +1 -1
  122. data/man/man8/puppet-script.8 +2 -2
  123. data/man/man8/puppet-ssl.8 +1 -1
  124. data/man/man8/puppet-status.8 +2 -2
  125. data/man/man8/puppet.8 +2 -2
  126. data/spec/fixtures/integration/application/agent/cached_deferred_catalog.json +91 -0
  127. data/spec/fixtures/unit/provider/package/puppetserver_gem/gem-list-local-packages +30 -0
  128. data/spec/fixtures/unit/provider/user/aix/aix_passwd_file.out +4 -0
  129. data/spec/integration/application/agent_spec.rb +183 -22
  130. data/spec/integration/application/apply_spec.rb +19 -0
  131. data/spec/integration/application/filebucket_spec.rb +7 -7
  132. data/spec/integration/application/plugin_spec.rb +3 -3
  133. data/spec/integration/configurer_spec.rb +14 -0
  134. data/spec/integration/defaults_spec.rb +19 -1
  135. data/spec/integration/environments/setting_hooks_spec.rb +1 -1
  136. data/spec/integration/resource/type_collection_spec.rb +2 -6
  137. data/spec/integration/transaction_spec.rb +4 -9
  138. data/spec/integration/util/windows/adsi_spec.rb +5 -3
  139. data/spec/integration/util/windows/registry_spec.rb +0 -10
  140. data/spec/lib/puppet_spec/settings.rb +6 -1
  141. data/spec/shared_contexts/types_setup.rb +2 -0
  142. data/spec/spec_helper.rb +1 -4
  143. data/spec/unit/agent_spec.rb +8 -6
  144. data/spec/unit/application/agent_spec.rb +0 -1
  145. data/spec/unit/application/config_spec.rb +224 -4
  146. data/spec/unit/application/doc_spec.rb +2 -2
  147. data/spec/unit/application/facts_spec.rb +3 -1
  148. data/spec/unit/application/filebucket_spec.rb +0 -2
  149. data/spec/unit/application_spec.rb +60 -13
  150. data/spec/unit/configurer_spec.rb +39 -6
  151. data/spec/unit/confine/feature_spec.rb +1 -1
  152. data/spec/unit/confine_spec.rb +8 -2
  153. data/spec/unit/defaults_spec.rb +20 -1
  154. data/spec/unit/environments_spec.rb +176 -32
  155. data/spec/unit/face/config_spec.rb +62 -11
  156. data/spec/unit/face/node_spec.rb +2 -13
  157. data/spec/unit/file_serving/configuration/parser_spec.rb +0 -1
  158. data/spec/unit/file_serving/metadata_spec.rb +3 -3
  159. data/spec/unit/file_serving/terminus_helper_spec.rb +11 -4
  160. data/spec/unit/file_system_spec.rb +1 -2
  161. data/spec/unit/forge/module_release_spec.rb +2 -7
  162. data/spec/unit/functions/inline_epp_spec.rb +26 -1
  163. data/spec/unit/http/resolver_spec.rb +24 -4
  164. data/spec/unit/http/service/ca_spec.rb +2 -2
  165. data/spec/unit/http/service/compiler_spec.rb +51 -2
  166. data/spec/unit/http/service/file_server_spec.rb +2 -2
  167. data/spec/unit/http/service/puppetserver_spec.rb +82 -0
  168. data/spec/unit/http/service/report_spec.rb +2 -2
  169. data/spec/unit/http/service_spec.rb +1 -1
  170. data/spec/unit/http/session_spec.rb +8 -20
  171. data/spec/unit/indirector/catalog/json_spec.rb +1 -1
  172. data/spec/unit/indirector/catalog/rest_spec.rb +1 -1
  173. data/spec/unit/indirector/face_spec.rb +0 -1
  174. data/spec/unit/indirector/facts/facter_spec.rb +0 -1
  175. data/spec/unit/indirector/facts/json_spec.rb +255 -0
  176. data/spec/unit/indirector/facts/rest_spec.rb +1 -1
  177. data/spec/unit/indirector/file_bucket_file/selector_spec.rb +26 -8
  178. data/spec/unit/indirector/indirection_spec.rb +8 -12
  179. data/spec/unit/indirector/json_spec.rb +8 -8
  180. data/spec/unit/indirector/key/file_spec.rb +0 -1
  181. data/spec/unit/indirector/msgpack_spec.rb +8 -8
  182. data/spec/unit/indirector/node/json_spec.rb +33 -0
  183. data/spec/unit/indirector/node/rest_spec.rb +1 -1
  184. data/spec/{integration/indirector/report/yaml.rb → unit/indirector/report/json_spec.rb} +13 -24
  185. data/spec/unit/indirector/report/yaml_spec.rb +72 -8
  186. data/spec/unit/indirector/request_spec.rb +4 -4
  187. data/spec/unit/indirector/rest_spec.rb +1 -1
  188. data/spec/unit/indirector/status/rest_spec.rb +1 -1
  189. data/spec/unit/indirector/yaml_spec.rb +7 -7
  190. data/spec/unit/indirector_spec.rb +2 -2
  191. data/spec/unit/module_tool/applications/installer_spec.rb +66 -0
  192. data/spec/unit/network/authconfig_spec.rb +0 -3
  193. data/spec/unit/network/http/api/indirected_routes_spec.rb +0 -9
  194. data/spec/unit/network/http/api/master/v3/environments_spec.rb +12 -23
  195. data/spec/unit/network/http/handler_spec.rb +0 -5
  196. data/spec/unit/parser/compiler_spec.rb +3 -19
  197. data/spec/unit/parser/resource_spec.rb +14 -8
  198. data/spec/unit/parser/templatewrapper_spec.rb +4 -3
  199. data/spec/unit/pops/evaluator/deferred_resolver_spec.rb +20 -0
  200. data/spec/unit/property_spec.rb +1 -0
  201. data/spec/unit/provider/exec_spec.rb +4 -3
  202. data/spec/unit/provider/group/groupadd_spec.rb +5 -2
  203. data/spec/unit/provider/nameservice_spec.rb +66 -65
  204. data/spec/unit/provider/package/apt_spec.rb +28 -23
  205. data/spec/unit/provider/package/aptitude_spec.rb +1 -1
  206. data/spec/unit/provider/package/base_spec.rb +6 -5
  207. data/spec/unit/provider/package/dpkg_spec.rb +22 -7
  208. data/spec/unit/provider/package/openbsd_spec.rb +2 -0
  209. data/spec/unit/provider/package/pacman_spec.rb +18 -12
  210. data/spec/unit/provider/package/pip2_spec.rb +36 -0
  211. data/spec/unit/provider/package/pip_spec.rb +6 -11
  212. data/spec/unit/provider/package/pkgdmg_spec.rb +0 -4
  213. data/spec/unit/provider/package/puppetserver_gem_spec.rb +137 -0
  214. data/spec/unit/provider/package/yum_spec.rb +31 -0
  215. data/spec/unit/provider/service/base_spec.rb +2 -4
  216. data/spec/unit/provider/service/bsd_spec.rb +5 -1
  217. data/spec/unit/provider/service/daemontools_spec.rb +1 -1
  218. data/spec/unit/provider/service/debian_spec.rb +3 -5
  219. data/spec/unit/provider/service/freebsd_spec.rb +1 -1
  220. data/spec/unit/provider/service/gentoo_spec.rb +4 -5
  221. data/spec/unit/provider/service/init_spec.rb +4 -5
  222. data/spec/unit/provider/service/launchd_spec.rb +5 -6
  223. data/spec/unit/provider/service/openrc_spec.rb +4 -5
  224. data/spec/unit/provider/service/openwrt_spec.rb +1 -1
  225. data/spec/unit/provider/service/redhat_spec.rb +1 -1
  226. data/spec/unit/provider/service/runit_spec.rb +2 -1
  227. data/spec/unit/provider/service/smf_spec.rb +1 -1
  228. data/spec/unit/provider/service/src_spec.rb +3 -5
  229. data/spec/unit/provider/service/systemd_spec.rb +3 -1
  230. data/spec/unit/provider/service/upstart_spec.rb +4 -5
  231. data/spec/unit/provider/user/aix_spec.rb +5 -0
  232. data/spec/unit/provider/user/hpux_spec.rb +1 -1
  233. data/spec/unit/provider/user/pw_spec.rb +2 -0
  234. data/spec/unit/provider/user/useradd_spec.rb +56 -3
  235. data/spec/unit/provider_spec.rb +8 -10
  236. data/spec/unit/puppet_pal_catalog_spec.rb +45 -0
  237. data/spec/unit/resource/capability_finder_spec.rb +6 -1
  238. data/spec/unit/resource/type_spec.rb +1 -1
  239. data/spec/unit/resource_spec.rb +11 -10
  240. data/spec/unit/rest/route_spec.rb +4 -4
  241. data/spec/unit/settings_spec.rb +576 -239
  242. data/spec/unit/ssl/base_spec.rb +0 -1
  243. data/spec/unit/ssl/host_spec.rb +0 -5
  244. data/spec/unit/ssl/ssl_provider_spec.rb +14 -8
  245. data/spec/unit/transaction/additional_resource_generator_spec.rb +3 -7
  246. data/spec/unit/transaction/event_manager_spec.rb +14 -11
  247. data/spec/unit/transaction/report_spec.rb +2 -0
  248. data/spec/unit/transaction_spec.rb +13 -4
  249. data/spec/unit/type/file/content_spec.rb +0 -1
  250. data/spec/unit/type/file/selinux_spec.rb +0 -2
  251. data/spec/unit/type/file/source_spec.rb +1 -1
  252. data/spec/unit/type/file_spec.rb +0 -6
  253. data/spec/unit/type/filebucket_spec.rb +1 -1
  254. data/spec/unit/type/group_spec.rb +13 -6
  255. data/spec/unit/type/resources_spec.rb +7 -7
  256. data/spec/unit/type/service_spec.rb +1 -1
  257. data/spec/unit/type/tidy_spec.rb +0 -1
  258. data/spec/unit/type_spec.rb +2 -2
  259. data/spec/unit/util/at_fork_spec.rb +2 -2
  260. data/spec/unit/util/autoload_spec.rb +5 -1
  261. data/spec/unit/util/backups_spec.rb +1 -2
  262. data/spec/unit/util/execution_spec.rb +15 -11
  263. data/spec/unit/util/inifile_spec.rb +6 -14
  264. data/spec/unit/util/log_spec.rb +8 -7
  265. data/spec/unit/util/logging_spec.rb +3 -3
  266. data/spec/unit/util/posix_spec.rb +363 -15
  267. data/spec/unit/util/rubygems_spec.rb +2 -2
  268. data/spec/unit/util/run_mode_spec.rb +6 -6
  269. data/spec/unit/util/selinux_spec.rb +76 -52
  270. data/spec/unit/util/storage_spec.rb +3 -1
  271. data/spec/unit/util/suidmanager_spec.rb +44 -41
  272. data/spec/unit/util_spec.rb +13 -6
  273. metadata +32 -10
  274. data/spec/integration/application/config_spec.rb +0 -74
  275. data/spec/unit/face/catalog_spec.rb +0 -6
  276. data/spec/unit/face/module_spec.rb +0 -3
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.18.0
4
+ version: 6.21.1
5
5
  platform: universal-darwin
6
6
  authors:
7
7
  - Puppet Labs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-24 00:00:00.000000000 Z
11
+ date: 2021-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: facter
@@ -436,6 +436,9 @@ files:
436
436
  - lib/puppet/feature/ssh.rb
437
437
  - lib/puppet/feature/telnet.rb
438
438
  - lib/puppet/feature/zlib.rb
439
+ - lib/puppet/ffi/posix.rb
440
+ - lib/puppet/ffi/posix/constants.rb
441
+ - lib/puppet/ffi/posix/functions.rb
439
442
  - lib/puppet/file_bucket.rb
440
443
  - lib/puppet/file_bucket/dipper.rb
441
444
  - lib/puppet/file_bucket/file.rb
@@ -587,6 +590,7 @@ files:
587
590
  - lib/puppet/http/service/ca.rb
588
591
  - lib/puppet/http/service/compiler.rb
589
592
  - lib/puppet/http/service/file_server.rb
593
+ - lib/puppet/http/service/puppetserver.rb
590
594
  - lib/puppet/http/service/report.rb
591
595
  - lib/puppet/http/session.rb
592
596
  - lib/puppet/indirector.rb
@@ -609,7 +613,9 @@ files:
609
613
  - lib/puppet/indirector/errors.rb
610
614
  - lib/puppet/indirector/exec.rb
611
615
  - lib/puppet/indirector/face.rb
616
+ - lib/puppet/indirector/fact_search.rb
612
617
  - lib/puppet/indirector/facts/facter.rb
618
+ - lib/puppet/indirector/facts/json.rb
613
619
  - lib/puppet/indirector/facts/memory.rb
614
620
  - lib/puppet/indirector/facts/network_device.rb
615
621
  - lib/puppet/indirector/facts/rest.rb
@@ -640,6 +646,7 @@ files:
640
646
  - lib/puppet/indirector/memory.rb
641
647
  - lib/puppet/indirector/msgpack.rb
642
648
  - lib/puppet/indirector/node/exec.rb
649
+ - lib/puppet/indirector/node/json.rb
643
650
  - lib/puppet/indirector/node/memory.rb
644
651
  - lib/puppet/indirector/node/msgpack.rb
645
652
  - lib/puppet/indirector/node/plain.rb
@@ -648,6 +655,7 @@ files:
648
655
  - lib/puppet/indirector/node/yaml.rb
649
656
  - lib/puppet/indirector/none.rb
650
657
  - lib/puppet/indirector/plain.rb
658
+ - lib/puppet/indirector/report/json.rb
651
659
  - lib/puppet/indirector/report/msgpack.rb
652
660
  - lib/puppet/indirector/report/processor.rb
653
661
  - lib/puppet/indirector/report/rest.rb
@@ -1067,6 +1075,7 @@ files:
1067
1075
  - lib/puppet/provider/package/opkg.rb
1068
1076
  - lib/puppet/provider/package/pacman.rb
1069
1077
  - lib/puppet/provider/package/pip.rb
1078
+ - lib/puppet/provider/package/pip2.rb
1070
1079
  - lib/puppet/provider/package/pip3.rb
1071
1080
  - lib/puppet/provider/package/pkg.rb
1072
1081
  - lib/puppet/provider/package/pkgdmg.rb
@@ -1077,6 +1086,7 @@ files:
1077
1086
  - lib/puppet/provider/package/ports.rb
1078
1087
  - lib/puppet/provider/package/portupgrade.rb
1079
1088
  - lib/puppet/provider/package/puppet_gem.rb
1089
+ - lib/puppet/provider/package/puppetserver_gem.rb
1080
1090
  - lib/puppet/provider/package/rpm.rb
1081
1091
  - lib/puppet/provider/package/rug.rb
1082
1092
  - lib/puppet/provider/package/sun.rb
@@ -1150,6 +1160,7 @@ files:
1150
1160
  - lib/puppet/scheduler/splay_job.rb
1151
1161
  - lib/puppet/scheduler/timer.rb
1152
1162
  - lib/puppet/settings.rb
1163
+ - lib/puppet/settings/alias_setting.rb
1153
1164
  - lib/puppet/settings/array_setting.rb
1154
1165
  - lib/puppet/settings/autosign_setting.rb
1155
1166
  - lib/puppet/settings/base_setting.rb
@@ -1258,6 +1269,7 @@ files:
1258
1269
  - lib/puppet/util/errors.rb
1259
1270
  - lib/puppet/util/execution.rb
1260
1271
  - lib/puppet/util/execution_stub.rb
1272
+ - lib/puppet/util/fact_dif.rb
1261
1273
  - lib/puppet/util/feature.rb
1262
1274
  - lib/puppet/util/file_watcher.rb
1263
1275
  - lib/puppet/util/fileparsing.rb
@@ -1412,6 +1424,7 @@ files:
1412
1424
  - man/man8/puppet.8
1413
1425
  - spec/fixtures/faulty_face/puppet/face/syntax.rb
1414
1426
  - spec/fixtures/hiera.yaml
1427
+ - spec/fixtures/integration/application/agent/cached_deferred_catalog.json
1415
1428
  - spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/provider/applytest/applytest.rb
1416
1429
  - spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/type/applytest.rb
1417
1430
  - spec/fixtures/integration/node/environment/sitedir/00_a.pp
@@ -1764,6 +1777,7 @@ files:
1764
1777
  - spec/fixtures/unit/provider/package/pkgng/pkg.query
1765
1778
  - spec/fixtures/unit/provider/package/pkgng/pkg.query.zsh
1766
1779
  - spec/fixtures/unit/provider/package/pkgng/pkg.version
1780
+ - spec/fixtures/unit/provider/package/puppetserver_gem/gem-list-local-packages
1767
1781
  - spec/fixtures/unit/provider/package/sun/dummy.server
1768
1782
  - spec/fixtures/unit/provider/package/sun/simple
1769
1783
  - spec/fixtures/unit/provider/package/yum/yum-check-update-broken-notices.txt
@@ -1810,7 +1824,6 @@ files:
1810
1824
  - spec/integration/agent/logging_spec.rb
1811
1825
  - spec/integration/application/agent_spec.rb
1812
1826
  - spec/integration/application/apply_spec.rb
1813
- - spec/integration/application/config_spec.rb
1814
1827
  - spec/integration/application/doc_spec.rb
1815
1828
  - spec/integration/application/filebucket_spec.rb
1816
1829
  - spec/integration/application/help_spec.rb
@@ -1831,7 +1844,6 @@ files:
1831
1844
  - spec/integration/indirector/facts/facter_spec.rb
1832
1845
  - spec/integration/indirector/file_content/file_server_spec.rb
1833
1846
  - spec/integration/indirector/file_metadata/file_server_spec.rb
1834
- - spec/integration/indirector/report/yaml.rb
1835
1847
  - spec/integration/network/authconfig_spec.rb
1836
1848
  - spec/integration/network/formats_spec.rb
1837
1849
  - spec/integration/network/http/api/indirected_routes_spec.rb
@@ -1977,7 +1989,6 @@ files:
1977
1989
  - spec/unit/environments_spec.rb
1978
1990
  - spec/unit/etc_spec.rb
1979
1991
  - spec/unit/external/pson_spec.rb
1980
- - spec/unit/face/catalog_spec.rb
1981
1992
  - spec/unit/face/config_spec.rb
1982
1993
  - spec/unit/face/epp_face_spec.rb
1983
1994
  - spec/unit/face/facts_spec.rb
@@ -1989,7 +2000,6 @@ files:
1989
2000
  - spec/unit/face/module/search_spec.rb
1990
2001
  - spec/unit/face/module/uninstall_spec.rb
1991
2002
  - spec/unit/face/module/upgrade_spec.rb
1992
- - spec/unit/face/module_spec.rb
1993
2003
  - spec/unit/face/node_spec.rb
1994
2004
  - spec/unit/face/parser_spec.rb
1995
2005
  - spec/unit/face/plugin_spec.rb
@@ -2113,6 +2123,7 @@ files:
2113
2123
  - spec/unit/http/service/ca_spec.rb
2114
2124
  - spec/unit/http/service/compiler_spec.rb
2115
2125
  - spec/unit/http/service/file_server_spec.rb
2126
+ - spec/unit/http/service/puppetserver_spec.rb
2116
2127
  - spec/unit/http/service/report_spec.rb
2117
2128
  - spec/unit/http/service_spec.rb
2118
2129
  - spec/unit/http/session_spec.rb
@@ -2133,6 +2144,7 @@ files:
2133
2144
  - spec/unit/indirector/exec_spec.rb
2134
2145
  - spec/unit/indirector/face_spec.rb
2135
2146
  - spec/unit/indirector/facts/facter_spec.rb
2147
+ - spec/unit/indirector/facts/json_spec.rb
2136
2148
  - spec/unit/indirector/facts/network_device_spec.rb
2137
2149
  - spec/unit/indirector/facts/rest_spec.rb
2138
2150
  - spec/unit/indirector/facts/store_configs_spec.rb
@@ -2157,6 +2169,7 @@ files:
2157
2169
  - spec/unit/indirector/memory_spec.rb
2158
2170
  - spec/unit/indirector/msgpack_spec.rb
2159
2171
  - spec/unit/indirector/node/exec_spec.rb
2172
+ - spec/unit/indirector/node/json_spec.rb
2160
2173
  - spec/unit/indirector/node/memory_spec.rb
2161
2174
  - spec/unit/indirector/node/msgpack_spec.rb
2162
2175
  - spec/unit/indirector/node/plain_spec.rb
@@ -2165,6 +2178,7 @@ files:
2165
2178
  - spec/unit/indirector/node/yaml_spec.rb
2166
2179
  - spec/unit/indirector/none_spec.rb
2167
2180
  - spec/unit/indirector/plain_spec.rb
2181
+ - spec/unit/indirector/report/json_spec.rb
2168
2182
  - spec/unit/indirector/report/msgpack_spec.rb
2169
2183
  - spec/unit/indirector/report/processor_spec.rb
2170
2184
  - spec/unit/indirector/report/rest_spec.rb
@@ -2289,6 +2303,7 @@ files:
2289
2303
  - spec/unit/pops/evaluator/collections_ops_spec.rb
2290
2304
  - spec/unit/pops/evaluator/comparison_ops_spec.rb
2291
2305
  - spec/unit/pops/evaluator/conditionals_spec.rb
2306
+ - spec/unit/pops/evaluator/deferred_resolver_spec.rb
2292
2307
  - spec/unit/pops/evaluator/evaluating_parser_spec.rb
2293
2308
  - spec/unit/pops/evaluator/evaluator_rspec_helper.rb
2294
2309
  - spec/unit/pops/evaluator/json_strict_literal_evaluator_spec.rb
@@ -2415,6 +2430,7 @@ files:
2415
2430
  - spec/unit/provider/package/openbsd_spec.rb
2416
2431
  - spec/unit/provider/package/opkg_spec.rb
2417
2432
  - spec/unit/provider/package/pacman_spec.rb
2433
+ - spec/unit/provider/package/pip2_spec.rb
2418
2434
  - spec/unit/provider/package/pip3_spec.rb
2419
2435
  - spec/unit/provider/package/pip_spec.rb
2420
2436
  - spec/unit/provider/package/pkg_spec.rb
@@ -2424,6 +2440,7 @@ files:
2424
2440
  - spec/unit/provider/package/pkgutil_spec.rb
2425
2441
  - spec/unit/provider/package/portage_spec.rb
2426
2442
  - spec/unit/provider/package/puppet_gem_spec.rb
2443
+ - spec/unit/provider/package/puppetserver_gem_spec.rb
2427
2444
  - spec/unit/provider/package/rpm_spec.rb
2428
2445
  - spec/unit/provider/package/sun_spec.rb
2429
2446
  - spec/unit/provider/package/tdnf_spec.rb
@@ -2677,6 +2694,7 @@ summary: Puppet, an automated configuration management tool
2677
2694
  test_files:
2678
2695
  - spec/fixtures/faulty_face/puppet/face/syntax.rb
2679
2696
  - spec/fixtures/hiera.yaml
2697
+ - spec/fixtures/integration/application/agent/cached_deferred_catalog.json
2680
2698
  - spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/provider/applytest/applytest.rb
2681
2699
  - spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/type/applytest.rb
2682
2700
  - spec/fixtures/integration/node/environment/sitedir/00_a.pp
@@ -3029,6 +3047,7 @@ test_files:
3029
3047
  - spec/fixtures/unit/provider/package/pkgng/pkg.query
3030
3048
  - spec/fixtures/unit/provider/package/pkgng/pkg.query.zsh
3031
3049
  - spec/fixtures/unit/provider/package/pkgng/pkg.version
3050
+ - spec/fixtures/unit/provider/package/puppetserver_gem/gem-list-local-packages
3032
3051
  - spec/fixtures/unit/provider/package/sun/dummy.server
3033
3052
  - spec/fixtures/unit/provider/package/sun/simple
3034
3053
  - spec/fixtures/unit/provider/package/yum/yum-check-update-broken-notices.txt
@@ -3075,7 +3094,6 @@ test_files:
3075
3094
  - spec/integration/agent/logging_spec.rb
3076
3095
  - spec/integration/application/agent_spec.rb
3077
3096
  - spec/integration/application/apply_spec.rb
3078
- - spec/integration/application/config_spec.rb
3079
3097
  - spec/integration/application/doc_spec.rb
3080
3098
  - spec/integration/application/filebucket_spec.rb
3081
3099
  - spec/integration/application/help_spec.rb
@@ -3096,7 +3114,6 @@ test_files:
3096
3114
  - spec/integration/indirector/facts/facter_spec.rb
3097
3115
  - spec/integration/indirector/file_content/file_server_spec.rb
3098
3116
  - spec/integration/indirector/file_metadata/file_server_spec.rb
3099
- - spec/integration/indirector/report/yaml.rb
3100
3117
  - spec/integration/network/authconfig_spec.rb
3101
3118
  - spec/integration/network/formats_spec.rb
3102
3119
  - spec/integration/network/http/api/indirected_routes_spec.rb
@@ -3242,7 +3259,6 @@ test_files:
3242
3259
  - spec/unit/environments_spec.rb
3243
3260
  - spec/unit/etc_spec.rb
3244
3261
  - spec/unit/external/pson_spec.rb
3245
- - spec/unit/face/catalog_spec.rb
3246
3262
  - spec/unit/face/config_spec.rb
3247
3263
  - spec/unit/face/epp_face_spec.rb
3248
3264
  - spec/unit/face/facts_spec.rb
@@ -3254,7 +3270,6 @@ test_files:
3254
3270
  - spec/unit/face/module/search_spec.rb
3255
3271
  - spec/unit/face/module/uninstall_spec.rb
3256
3272
  - spec/unit/face/module/upgrade_spec.rb
3257
- - spec/unit/face/module_spec.rb
3258
3273
  - spec/unit/face/node_spec.rb
3259
3274
  - spec/unit/face/parser_spec.rb
3260
3275
  - spec/unit/face/plugin_spec.rb
@@ -3378,6 +3393,7 @@ test_files:
3378
3393
  - spec/unit/http/service/ca_spec.rb
3379
3394
  - spec/unit/http/service/compiler_spec.rb
3380
3395
  - spec/unit/http/service/file_server_spec.rb
3396
+ - spec/unit/http/service/puppetserver_spec.rb
3381
3397
  - spec/unit/http/service/report_spec.rb
3382
3398
  - spec/unit/http/service_spec.rb
3383
3399
  - spec/unit/http/session_spec.rb
@@ -3398,6 +3414,7 @@ test_files:
3398
3414
  - spec/unit/indirector/exec_spec.rb
3399
3415
  - spec/unit/indirector/face_spec.rb
3400
3416
  - spec/unit/indirector/facts/facter_spec.rb
3417
+ - spec/unit/indirector/facts/json_spec.rb
3401
3418
  - spec/unit/indirector/facts/network_device_spec.rb
3402
3419
  - spec/unit/indirector/facts/rest_spec.rb
3403
3420
  - spec/unit/indirector/facts/store_configs_spec.rb
@@ -3422,6 +3439,7 @@ test_files:
3422
3439
  - spec/unit/indirector/memory_spec.rb
3423
3440
  - spec/unit/indirector/msgpack_spec.rb
3424
3441
  - spec/unit/indirector/node/exec_spec.rb
3442
+ - spec/unit/indirector/node/json_spec.rb
3425
3443
  - spec/unit/indirector/node/memory_spec.rb
3426
3444
  - spec/unit/indirector/node/msgpack_spec.rb
3427
3445
  - spec/unit/indirector/node/plain_spec.rb
@@ -3430,6 +3448,7 @@ test_files:
3430
3448
  - spec/unit/indirector/node/yaml_spec.rb
3431
3449
  - spec/unit/indirector/none_spec.rb
3432
3450
  - spec/unit/indirector/plain_spec.rb
3451
+ - spec/unit/indirector/report/json_spec.rb
3433
3452
  - spec/unit/indirector/report/msgpack_spec.rb
3434
3453
  - spec/unit/indirector/report/processor_spec.rb
3435
3454
  - spec/unit/indirector/report/rest_spec.rb
@@ -3554,6 +3573,7 @@ test_files:
3554
3573
  - spec/unit/pops/evaluator/collections_ops_spec.rb
3555
3574
  - spec/unit/pops/evaluator/comparison_ops_spec.rb
3556
3575
  - spec/unit/pops/evaluator/conditionals_spec.rb
3576
+ - spec/unit/pops/evaluator/deferred_resolver_spec.rb
3557
3577
  - spec/unit/pops/evaluator/evaluating_parser_spec.rb
3558
3578
  - spec/unit/pops/evaluator/evaluator_rspec_helper.rb
3559
3579
  - spec/unit/pops/evaluator/json_strict_literal_evaluator_spec.rb
@@ -3680,6 +3700,7 @@ test_files:
3680
3700
  - spec/unit/provider/package/openbsd_spec.rb
3681
3701
  - spec/unit/provider/package/opkg_spec.rb
3682
3702
  - spec/unit/provider/package/pacman_spec.rb
3703
+ - spec/unit/provider/package/pip2_spec.rb
3683
3704
  - spec/unit/provider/package/pip3_spec.rb
3684
3705
  - spec/unit/provider/package/pip_spec.rb
3685
3706
  - spec/unit/provider/package/pkg_spec.rb
@@ -3689,6 +3710,7 @@ test_files:
3689
3710
  - spec/unit/provider/package/pkgutil_spec.rb
3690
3711
  - spec/unit/provider/package/portage_spec.rb
3691
3712
  - spec/unit/provider/package/puppet_gem_spec.rb
3713
+ - spec/unit/provider/package/puppetserver_gem_spec.rb
3692
3714
  - spec/unit/provider/package/rpm_spec.rb
3693
3715
  - spec/unit/provider/package/sun_spec.rb
3694
3716
  - spec/unit/provider/package/tdnf_spec.rb
@@ -1,74 +0,0 @@
1
- # coding: utf-8
2
- require 'spec_helper'
3
- require 'puppet/application/config'
4
-
5
- #describe "puppet config" do
6
- describe Puppet::Face[:config, '0.0.1'] do
7
- include PuppetSpec::Files
8
-
9
- # different UTF-8 widths
10
- # 1-byte A
11
- # 2-byte ۿ - http://www.fileformat.info/info/unicode/char/06ff/index.htm - 0xDB 0xBF / 219 191
12
- # 3-byte ᚠ - http://www.fileformat.info/info/unicode/char/16A0/index.htm - 0xE1 0x9A 0xA0 / 225 154 160
13
- # 4-byte 𠜎 - http://www.fileformat.info/info/unicode/char/2070E/index.htm - 0xF0 0xA0 0x9C 0x8E / 240 160 156 142
14
- MIXED_UTF8 = "A\u06FF\u16A0\u{2070E}" # Aۿᚠ𠜎
15
-
16
- let(:tmp_config) { tmpfile('puppet.conf') }
17
- let(:config) { Puppet::Application[:config] }
18
-
19
- def read_utf8(path)
20
- File.read(tmp_config, :encoding => 'UTF-8')
21
- end
22
-
23
- def write_utf8(path, content)
24
- File.write(tmp_config, content, 0, :encoding => 'UTF-8')
25
- end
26
-
27
- it "reads a UTF-8 value" do
28
- write_utf8(tmp_config, <<~EOF)
29
- [main]
30
- tags=#{MIXED_UTF8}
31
- EOF
32
-
33
- Puppet.initialize_settings(['--config', tmp_config])
34
- config.command_line.args = ['print', 'tags' ]
35
-
36
- expect {
37
- config.run
38
- }.to exit_with(0)
39
- .and output("#{MIXED_UTF8}\n").to_stdout
40
- end
41
-
42
- it "sets a UTF-8 value" do
43
- Puppet.initialize_settings(['--config', tmp_config])
44
- config.command_line.args = ['set', 'tags', MIXED_UTF8 ]
45
-
46
- expect {
47
- config.run
48
- }.to exit_with(0)
49
-
50
- expect(read_utf8(tmp_config)).to eq(<<~EOF)
51
- [main]
52
- tags = #{MIXED_UTF8}
53
- EOF
54
- end
55
-
56
- it "deletes a key" do
57
- write_utf8(tmp_config, <<~EOF)
58
- [main]
59
- tags=#{MIXED_UTF8}
60
- EOF
61
-
62
- Puppet.initialize_settings(['--config', tmp_config])
63
- config.command_line.args = ['delete', 'tags']
64
-
65
- expect {
66
- config.run
67
- }.to exit_with(0)
68
- .and output(/Deleted setting from 'main': 'tags=#{MIXED_UTF8}'/).to_stdout
69
-
70
- expect(read_utf8(tmp_config)).to eq(<<~EOF)
71
- [main]
72
- EOF
73
- end
74
- end
@@ -1,6 +0,0 @@
1
- require 'spec_helper'
2
- require 'puppet/face'
3
-
4
- describe Puppet::Face[:catalog, '0.0.1'] do
5
- it "should actually have some testing..."
6
- end
@@ -1,3 +0,0 @@
1
- # For face related tests, look in the spec/unit/faces/module folder.
2
- # For integration tests, which test the behavior of module, look in the
3
- # spec/unit/integration folder.