puppet 6.19.1-universal-darwin → 6.20.0-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 (171) hide show
  1. checksums.yaml +4 -4
  2. data/CODEOWNERS +2 -16
  3. data/Gemfile +2 -0
  4. data/Gemfile.lock +30 -25
  5. data/lib/puppet/application.rb +10 -6
  6. data/lib/puppet/application/agent.rb +1 -0
  7. data/lib/puppet/application/apply.rb +3 -2
  8. data/lib/puppet/application/device.rb +1 -0
  9. data/lib/puppet/application/filebucket.rb +2 -2
  10. data/lib/puppet/application/script.rb +1 -0
  11. data/lib/puppet/application_support.rb +7 -0
  12. data/lib/puppet/configurer.rb +28 -18
  13. data/lib/puppet/defaults.rb +24 -18
  14. data/lib/puppet/environments.rb +38 -54
  15. data/lib/puppet/face/config.rb +10 -0
  16. data/lib/puppet/face/epp.rb +12 -2
  17. data/lib/puppet/face/facts.rb +60 -0
  18. data/lib/puppet/ffi/posix.rb +10 -0
  19. data/lib/puppet/ffi/posix/constants.rb +14 -0
  20. data/lib/puppet/ffi/posix/functions.rb +24 -0
  21. data/lib/puppet/functions/epp.rb +1 -0
  22. data/lib/puppet/functions/inline_epp.rb +1 -0
  23. data/lib/puppet/indirector/fact_search.rb +60 -0
  24. data/lib/puppet/indirector/facts/json.rb +27 -0
  25. data/lib/puppet/indirector/facts/yaml.rb +3 -58
  26. data/lib/puppet/indirector/json.rb +5 -1
  27. data/lib/puppet/indirector/node/json.rb +8 -0
  28. data/lib/puppet/indirector/report/json.rb +34 -0
  29. data/lib/puppet/module_tool/applications/installer.rb +48 -2
  30. data/lib/puppet/module_tool/errors/shared.rb +17 -2
  31. data/lib/puppet/network/formats.rb +2 -1
  32. data/lib/puppet/pal/pal_impl.rb +70 -17
  33. data/lib/puppet/parser/ast/leaf.rb +3 -2
  34. data/lib/puppet/parser/templatewrapper.rb +1 -1
  35. data/lib/puppet/pops/evaluator/deferred_resolver.rb +5 -3
  36. data/lib/puppet/pops/evaluator/evaluator_impl.rb +22 -3
  37. data/lib/puppet/pops/model/ast_transformer.rb +1 -1
  38. data/lib/puppet/provider/package/apt.rb +4 -0
  39. data/lib/puppet/provider/user/aix.rb +2 -2
  40. data/lib/puppet/reference/configuration.rb +6 -5
  41. data/lib/puppet/settings.rb +33 -28
  42. data/lib/puppet/settings/alias_setting.rb +37 -0
  43. data/lib/puppet/settings/base_setting.rb +26 -2
  44. data/lib/puppet/util/autoload.rb +1 -8
  45. data/lib/puppet/util/fact_dif.rb +62 -0
  46. data/lib/puppet/util/posix.rb +54 -5
  47. data/lib/puppet/util/rubygems.rb +5 -1
  48. data/lib/puppet/version.rb +1 -1
  49. data/locales/puppet.pot +188 -164
  50. data/man/man5/puppet.conf.5 +6 -6
  51. data/man/man8/puppet-agent.8 +2 -2
  52. data/man/man8/puppet-apply.8 +2 -2
  53. data/man/man8/puppet-catalog.8 +1 -1
  54. data/man/man8/puppet-config.8 +1 -1
  55. data/man/man8/puppet-describe.8 +1 -1
  56. data/man/man8/puppet-device.8 +2 -2
  57. data/man/man8/puppet-doc.8 +1 -1
  58. data/man/man8/puppet-epp.8 +1 -1
  59. data/man/man8/puppet-facts.8 +32 -1
  60. data/man/man8/puppet-filebucket.8 +3 -3
  61. data/man/man8/puppet-generate.8 +1 -1
  62. data/man/man8/puppet-help.8 +1 -1
  63. data/man/man8/puppet-key.8 +1 -1
  64. data/man/man8/puppet-lookup.8 +1 -1
  65. data/man/man8/puppet-man.8 +1 -1
  66. data/man/man8/puppet-module.8 +1 -1
  67. data/man/man8/puppet-node.8 +4 -1
  68. data/man/man8/puppet-parser.8 +1 -1
  69. data/man/man8/puppet-plugin.8 +1 -1
  70. data/man/man8/puppet-report.8 +4 -1
  71. data/man/man8/puppet-resource.8 +1 -1
  72. data/man/man8/puppet-script.8 +2 -2
  73. data/man/man8/puppet-ssl.8 +1 -1
  74. data/man/man8/puppet-status.8 +1 -1
  75. data/man/man8/puppet.8 +2 -2
  76. data/spec/fixtures/integration/application/agent/cached_deferred_catalog.json +91 -0
  77. data/spec/fixtures/unit/provider/user/aix/aix_passwd_file.out +4 -0
  78. data/spec/integration/application/agent_spec.rb +127 -3
  79. data/spec/integration/application/apply_spec.rb +19 -0
  80. data/spec/integration/defaults_spec.rb +0 -7
  81. data/spec/integration/environments/setting_hooks_spec.rb +1 -1
  82. data/spec/integration/resource/type_collection_spec.rb +2 -6
  83. data/spec/integration/transaction_spec.rb +4 -9
  84. data/spec/integration/util/windows/adsi_spec.rb +3 -1
  85. data/spec/integration/util/windows/registry_spec.rb +0 -10
  86. data/spec/lib/puppet_spec/settings.rb +6 -1
  87. data/spec/spec_helper.rb +1 -4
  88. data/spec/unit/agent_spec.rb +8 -6
  89. data/spec/unit/application/agent_spec.rb +0 -1
  90. data/spec/unit/application/config_spec.rb +224 -4
  91. data/spec/unit/application/filebucket_spec.rb +0 -2
  92. data/spec/unit/application_spec.rb +51 -9
  93. data/spec/unit/confine/feature_spec.rb +1 -1
  94. data/spec/unit/confine_spec.rb +8 -2
  95. data/spec/unit/defaults_spec.rb +20 -1
  96. data/spec/unit/environments_spec.rb +96 -19
  97. data/spec/unit/face/config_spec.rb +27 -32
  98. data/spec/unit/face/node_spec.rb +0 -11
  99. data/spec/unit/file_serving/configuration/parser_spec.rb +0 -1
  100. data/spec/unit/file_serving/metadata_spec.rb +3 -3
  101. data/spec/unit/file_serving/terminus_helper_spec.rb +11 -4
  102. data/spec/unit/forge/module_release_spec.rb +2 -7
  103. data/spec/unit/functions/inline_epp_spec.rb +26 -1
  104. data/spec/unit/http/service/compiler_spec.rb +49 -0
  105. data/spec/unit/http/service_spec.rb +1 -1
  106. data/spec/unit/indirector/face_spec.rb +0 -1
  107. data/spec/unit/indirector/facts/facter_spec.rb +0 -1
  108. data/spec/unit/indirector/facts/json_spec.rb +255 -0
  109. data/spec/unit/indirector/file_bucket_file/selector_spec.rb +26 -8
  110. data/spec/unit/indirector/indirection_spec.rb +8 -12
  111. data/spec/unit/indirector/key/file_spec.rb +0 -1
  112. data/spec/unit/indirector/node/json_spec.rb +33 -0
  113. data/spec/{integration/indirector/report/yaml.rb → unit/indirector/report/json_spec.rb} +13 -24
  114. data/spec/unit/indirector/report/yaml_spec.rb +72 -8
  115. data/spec/unit/indirector_spec.rb +2 -2
  116. data/spec/unit/module_tool/applications/installer_spec.rb +66 -0
  117. data/spec/unit/network/authconfig_spec.rb +0 -3
  118. data/spec/unit/network/http/api/indirected_routes_spec.rb +0 -9
  119. data/spec/unit/network/http/handler_spec.rb +0 -5
  120. data/spec/unit/parser/compiler_spec.rb +3 -19
  121. data/spec/unit/parser/resource_spec.rb +14 -8
  122. data/spec/unit/parser/templatewrapper_spec.rb +4 -3
  123. data/spec/unit/pops/evaluator/deferred_resolver_spec.rb +20 -0
  124. data/spec/unit/property_spec.rb +1 -0
  125. data/spec/unit/provider/nameservice_spec.rb +66 -65
  126. data/spec/unit/provider/package/apt_spec.rb +4 -8
  127. data/spec/unit/provider/package/base_spec.rb +6 -5
  128. data/spec/unit/provider/package/pacman_spec.rb +18 -12
  129. data/spec/unit/provider/package/pip_spec.rb +6 -11
  130. data/spec/unit/provider/package/pkgdmg_spec.rb +0 -4
  131. data/spec/unit/provider/user/aix_spec.rb +5 -0
  132. data/spec/unit/provider/user/hpux_spec.rb +1 -1
  133. data/spec/unit/provider/user/pw_spec.rb +2 -0
  134. data/spec/unit/provider/user/useradd_spec.rb +1 -0
  135. data/spec/unit/provider_spec.rb +8 -10
  136. data/spec/unit/puppet_pal_catalog_spec.rb +45 -0
  137. data/spec/unit/resource/capability_finder_spec.rb +6 -1
  138. data/spec/unit/resource/type_spec.rb +1 -1
  139. data/spec/unit/resource_spec.rb +11 -10
  140. data/spec/unit/settings_spec.rb +419 -242
  141. data/spec/unit/ssl/base_spec.rb +0 -1
  142. data/spec/unit/ssl/host_spec.rb +0 -5
  143. data/spec/unit/ssl/ssl_provider_spec.rb +14 -8
  144. data/spec/unit/transaction/additional_resource_generator_spec.rb +3 -7
  145. data/spec/unit/transaction/event_manager_spec.rb +14 -11
  146. data/spec/unit/transaction_spec.rb +13 -4
  147. data/spec/unit/type/file/content_spec.rb +0 -1
  148. data/spec/unit/type/file/selinux_spec.rb +0 -2
  149. data/spec/unit/type/file_spec.rb +0 -6
  150. data/spec/unit/type/group_spec.rb +13 -6
  151. data/spec/unit/type/resources_spec.rb +7 -7
  152. data/spec/unit/type/service_spec.rb +1 -1
  153. data/spec/unit/type/tidy_spec.rb +0 -1
  154. data/spec/unit/type_spec.rb +2 -2
  155. data/spec/unit/util/at_fork_spec.rb +2 -2
  156. data/spec/unit/util/autoload_spec.rb +5 -1
  157. data/spec/unit/util/backups_spec.rb +1 -2
  158. data/spec/unit/util/execution_spec.rb +15 -11
  159. data/spec/unit/util/inifile_spec.rb +6 -14
  160. data/spec/unit/util/log_spec.rb +8 -7
  161. data/spec/unit/util/logging_spec.rb +3 -3
  162. data/spec/unit/util/posix_spec.rb +363 -15
  163. data/spec/unit/util/rubygems_spec.rb +2 -2
  164. data/spec/unit/util/selinux_spec.rb +76 -52
  165. data/spec/unit/util/storage_spec.rb +3 -1
  166. data/spec/unit/util/suidmanager_spec.rb +44 -41
  167. data/spec/unit/util_spec.rb +13 -6
  168. metadata +21 -10
  169. data/spec/integration/application/config_spec.rb +0 -74
  170. data/spec/unit/face/catalog_spec.rb +0 -6
  171. 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.19.1
4
+ version: 6.20.0
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-10-22 00:00:00.000000000 Z
11
+ date: 2021-01-18 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
@@ -610,7 +613,9 @@ files:
610
613
  - lib/puppet/indirector/errors.rb
611
614
  - lib/puppet/indirector/exec.rb
612
615
  - lib/puppet/indirector/face.rb
616
+ - lib/puppet/indirector/fact_search.rb
613
617
  - lib/puppet/indirector/facts/facter.rb
618
+ - lib/puppet/indirector/facts/json.rb
614
619
  - lib/puppet/indirector/facts/memory.rb
615
620
  - lib/puppet/indirector/facts/network_device.rb
616
621
  - lib/puppet/indirector/facts/rest.rb
@@ -641,6 +646,7 @@ files:
641
646
  - lib/puppet/indirector/memory.rb
642
647
  - lib/puppet/indirector/msgpack.rb
643
648
  - lib/puppet/indirector/node/exec.rb
649
+ - lib/puppet/indirector/node/json.rb
644
650
  - lib/puppet/indirector/node/memory.rb
645
651
  - lib/puppet/indirector/node/msgpack.rb
646
652
  - lib/puppet/indirector/node/plain.rb
@@ -649,6 +655,7 @@ files:
649
655
  - lib/puppet/indirector/node/yaml.rb
650
656
  - lib/puppet/indirector/none.rb
651
657
  - lib/puppet/indirector/plain.rb
658
+ - lib/puppet/indirector/report/json.rb
652
659
  - lib/puppet/indirector/report/msgpack.rb
653
660
  - lib/puppet/indirector/report/processor.rb
654
661
  - lib/puppet/indirector/report/rest.rb
@@ -1153,6 +1160,7 @@ files:
1153
1160
  - lib/puppet/scheduler/splay_job.rb
1154
1161
  - lib/puppet/scheduler/timer.rb
1155
1162
  - lib/puppet/settings.rb
1163
+ - lib/puppet/settings/alias_setting.rb
1156
1164
  - lib/puppet/settings/array_setting.rb
1157
1165
  - lib/puppet/settings/autosign_setting.rb
1158
1166
  - lib/puppet/settings/base_setting.rb
@@ -1261,6 +1269,7 @@ files:
1261
1269
  - lib/puppet/util/errors.rb
1262
1270
  - lib/puppet/util/execution.rb
1263
1271
  - lib/puppet/util/execution_stub.rb
1272
+ - lib/puppet/util/fact_dif.rb
1264
1273
  - lib/puppet/util/feature.rb
1265
1274
  - lib/puppet/util/file_watcher.rb
1266
1275
  - lib/puppet/util/fileparsing.rb
@@ -1415,6 +1424,7 @@ files:
1415
1424
  - man/man8/puppet.8
1416
1425
  - spec/fixtures/faulty_face/puppet/face/syntax.rb
1417
1426
  - spec/fixtures/hiera.yaml
1427
+ - spec/fixtures/integration/application/agent/cached_deferred_catalog.json
1418
1428
  - spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/provider/applytest/applytest.rb
1419
1429
  - spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/type/applytest.rb
1420
1430
  - spec/fixtures/integration/node/environment/sitedir/00_a.pp
@@ -1814,7 +1824,6 @@ files:
1814
1824
  - spec/integration/agent/logging_spec.rb
1815
1825
  - spec/integration/application/agent_spec.rb
1816
1826
  - spec/integration/application/apply_spec.rb
1817
- - spec/integration/application/config_spec.rb
1818
1827
  - spec/integration/application/doc_spec.rb
1819
1828
  - spec/integration/application/filebucket_spec.rb
1820
1829
  - spec/integration/application/help_spec.rb
@@ -1835,7 +1844,6 @@ files:
1835
1844
  - spec/integration/indirector/facts/facter_spec.rb
1836
1845
  - spec/integration/indirector/file_content/file_server_spec.rb
1837
1846
  - spec/integration/indirector/file_metadata/file_server_spec.rb
1838
- - spec/integration/indirector/report/yaml.rb
1839
1847
  - spec/integration/network/authconfig_spec.rb
1840
1848
  - spec/integration/network/formats_spec.rb
1841
1849
  - spec/integration/network/http/api/indirected_routes_spec.rb
@@ -1981,7 +1989,6 @@ files:
1981
1989
  - spec/unit/environments_spec.rb
1982
1990
  - spec/unit/etc_spec.rb
1983
1991
  - spec/unit/external/pson_spec.rb
1984
- - spec/unit/face/catalog_spec.rb
1985
1992
  - spec/unit/face/config_spec.rb
1986
1993
  - spec/unit/face/epp_face_spec.rb
1987
1994
  - spec/unit/face/facts_spec.rb
@@ -1993,7 +2000,6 @@ files:
1993
2000
  - spec/unit/face/module/search_spec.rb
1994
2001
  - spec/unit/face/module/uninstall_spec.rb
1995
2002
  - spec/unit/face/module/upgrade_spec.rb
1996
- - spec/unit/face/module_spec.rb
1997
2003
  - spec/unit/face/node_spec.rb
1998
2004
  - spec/unit/face/parser_spec.rb
1999
2005
  - spec/unit/face/plugin_spec.rb
@@ -2138,6 +2144,7 @@ files:
2138
2144
  - spec/unit/indirector/exec_spec.rb
2139
2145
  - spec/unit/indirector/face_spec.rb
2140
2146
  - spec/unit/indirector/facts/facter_spec.rb
2147
+ - spec/unit/indirector/facts/json_spec.rb
2141
2148
  - spec/unit/indirector/facts/network_device_spec.rb
2142
2149
  - spec/unit/indirector/facts/rest_spec.rb
2143
2150
  - spec/unit/indirector/facts/store_configs_spec.rb
@@ -2162,6 +2169,7 @@ files:
2162
2169
  - spec/unit/indirector/memory_spec.rb
2163
2170
  - spec/unit/indirector/msgpack_spec.rb
2164
2171
  - spec/unit/indirector/node/exec_spec.rb
2172
+ - spec/unit/indirector/node/json_spec.rb
2165
2173
  - spec/unit/indirector/node/memory_spec.rb
2166
2174
  - spec/unit/indirector/node/msgpack_spec.rb
2167
2175
  - spec/unit/indirector/node/plain_spec.rb
@@ -2170,6 +2178,7 @@ files:
2170
2178
  - spec/unit/indirector/node/yaml_spec.rb
2171
2179
  - spec/unit/indirector/none_spec.rb
2172
2180
  - spec/unit/indirector/plain_spec.rb
2181
+ - spec/unit/indirector/report/json_spec.rb
2173
2182
  - spec/unit/indirector/report/msgpack_spec.rb
2174
2183
  - spec/unit/indirector/report/processor_spec.rb
2175
2184
  - spec/unit/indirector/report/rest_spec.rb
@@ -2294,6 +2303,7 @@ files:
2294
2303
  - spec/unit/pops/evaluator/collections_ops_spec.rb
2295
2304
  - spec/unit/pops/evaluator/comparison_ops_spec.rb
2296
2305
  - spec/unit/pops/evaluator/conditionals_spec.rb
2306
+ - spec/unit/pops/evaluator/deferred_resolver_spec.rb
2297
2307
  - spec/unit/pops/evaluator/evaluating_parser_spec.rb
2298
2308
  - spec/unit/pops/evaluator/evaluator_rspec_helper.rb
2299
2309
  - spec/unit/pops/evaluator/json_strict_literal_evaluator_spec.rb
@@ -2684,6 +2694,7 @@ summary: Puppet, an automated configuration management tool
2684
2694
  test_files:
2685
2695
  - spec/fixtures/faulty_face/puppet/face/syntax.rb
2686
2696
  - spec/fixtures/hiera.yaml
2697
+ - spec/fixtures/integration/application/agent/cached_deferred_catalog.json
2687
2698
  - spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/provider/applytest/applytest.rb
2688
2699
  - spec/fixtures/integration/application/apply/environments/spec/modules/amod/lib/puppet/type/applytest.rb
2689
2700
  - spec/fixtures/integration/node/environment/sitedir/00_a.pp
@@ -3083,7 +3094,6 @@ test_files:
3083
3094
  - spec/integration/agent/logging_spec.rb
3084
3095
  - spec/integration/application/agent_spec.rb
3085
3096
  - spec/integration/application/apply_spec.rb
3086
- - spec/integration/application/config_spec.rb
3087
3097
  - spec/integration/application/doc_spec.rb
3088
3098
  - spec/integration/application/filebucket_spec.rb
3089
3099
  - spec/integration/application/help_spec.rb
@@ -3104,7 +3114,6 @@ test_files:
3104
3114
  - spec/integration/indirector/facts/facter_spec.rb
3105
3115
  - spec/integration/indirector/file_content/file_server_spec.rb
3106
3116
  - spec/integration/indirector/file_metadata/file_server_spec.rb
3107
- - spec/integration/indirector/report/yaml.rb
3108
3117
  - spec/integration/network/authconfig_spec.rb
3109
3118
  - spec/integration/network/formats_spec.rb
3110
3119
  - spec/integration/network/http/api/indirected_routes_spec.rb
@@ -3250,7 +3259,6 @@ test_files:
3250
3259
  - spec/unit/environments_spec.rb
3251
3260
  - spec/unit/etc_spec.rb
3252
3261
  - spec/unit/external/pson_spec.rb
3253
- - spec/unit/face/catalog_spec.rb
3254
3262
  - spec/unit/face/config_spec.rb
3255
3263
  - spec/unit/face/epp_face_spec.rb
3256
3264
  - spec/unit/face/facts_spec.rb
@@ -3262,7 +3270,6 @@ test_files:
3262
3270
  - spec/unit/face/module/search_spec.rb
3263
3271
  - spec/unit/face/module/uninstall_spec.rb
3264
3272
  - spec/unit/face/module/upgrade_spec.rb
3265
- - spec/unit/face/module_spec.rb
3266
3273
  - spec/unit/face/node_spec.rb
3267
3274
  - spec/unit/face/parser_spec.rb
3268
3275
  - spec/unit/face/plugin_spec.rb
@@ -3407,6 +3414,7 @@ test_files:
3407
3414
  - spec/unit/indirector/exec_spec.rb
3408
3415
  - spec/unit/indirector/face_spec.rb
3409
3416
  - spec/unit/indirector/facts/facter_spec.rb
3417
+ - spec/unit/indirector/facts/json_spec.rb
3410
3418
  - spec/unit/indirector/facts/network_device_spec.rb
3411
3419
  - spec/unit/indirector/facts/rest_spec.rb
3412
3420
  - spec/unit/indirector/facts/store_configs_spec.rb
@@ -3431,6 +3439,7 @@ test_files:
3431
3439
  - spec/unit/indirector/memory_spec.rb
3432
3440
  - spec/unit/indirector/msgpack_spec.rb
3433
3441
  - spec/unit/indirector/node/exec_spec.rb
3442
+ - spec/unit/indirector/node/json_spec.rb
3434
3443
  - spec/unit/indirector/node/memory_spec.rb
3435
3444
  - spec/unit/indirector/node/msgpack_spec.rb
3436
3445
  - spec/unit/indirector/node/plain_spec.rb
@@ -3439,6 +3448,7 @@ test_files:
3439
3448
  - spec/unit/indirector/node/yaml_spec.rb
3440
3449
  - spec/unit/indirector/none_spec.rb
3441
3450
  - spec/unit/indirector/plain_spec.rb
3451
+ - spec/unit/indirector/report/json_spec.rb
3442
3452
  - spec/unit/indirector/report/msgpack_spec.rb
3443
3453
  - spec/unit/indirector/report/processor_spec.rb
3444
3454
  - spec/unit/indirector/report/rest_spec.rb
@@ -3563,6 +3573,7 @@ test_files:
3563
3573
  - spec/unit/pops/evaluator/collections_ops_spec.rb
3564
3574
  - spec/unit/pops/evaluator/comparison_ops_spec.rb
3565
3575
  - spec/unit/pops/evaluator/conditionals_spec.rb
3576
+ - spec/unit/pops/evaluator/deferred_resolver_spec.rb
3566
3577
  - spec/unit/pops/evaluator/evaluating_parser_spec.rb
3567
3578
  - spec/unit/pops/evaluator/evaluator_rspec_helper.rb
3568
3579
  - spec/unit/pops/evaluator/json_strict_literal_evaluator_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.