chef 17.7.29-universal-mingw32 → 17.9.42-universal-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (322) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -3
  3. data/README.md +1 -1
  4. data/distro/ruby_bin_folder/AMD64/Chef.PowerShell.Wrapper.dll +0 -0
  5. data/distro/ruby_bin_folder/AMD64/Chef.PowerShell.dll +0 -0
  6. data/distro/ruby_bin_folder/AMD64/Ijwhost.dll +0 -0
  7. data/distro/ruby_bin_folder/AMD64/concrt140.dll +0 -0
  8. data/distro/ruby_bin_folder/AMD64/host/fxr/5.0.0/hostfxr.dll +0 -0
  9. data/distro/ruby_bin_folder/AMD64/msvcp140.dll +0 -0
  10. data/distro/ruby_bin_folder/AMD64/msvcp140_1.dll +0 -0
  11. data/distro/ruby_bin_folder/AMD64/msvcp140_2.dll +0 -0
  12. data/distro/ruby_bin_folder/AMD64/msvcp140_atomic_wait.dll +0 -0
  13. data/distro/ruby_bin_folder/AMD64/msvcp140_codecvt_ids.dll +0 -0
  14. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/Chef.PowerShell.Wrapper.Core.dll +0 -0
  15. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/Chef.Powershell.Core.dll +0 -0
  16. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/Chef.Powershell.Core.pdb +0 -0
  17. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/Ijwhost.dll +0 -0
  18. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/Microsoft.CSharp.dll +0 -0
  19. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/Microsoft.NETCore.App.deps.json +180 -180
  20. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/Microsoft.VisualBasic.Core.dll +0 -0
  21. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/Microsoft.VisualBasic.dll +0 -0
  22. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/Microsoft.Win32.Primitives.dll +0 -0
  23. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/Microsoft.Win32.Registry.dll +0 -0
  24. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.AppContext.dll +0 -0
  25. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Buffers.dll +0 -0
  26. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Collections.Concurrent.dll +0 -0
  27. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Collections.Immutable.dll +0 -0
  28. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Collections.NonGeneric.dll +0 -0
  29. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Collections.Specialized.dll +0 -0
  30. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Collections.dll +0 -0
  31. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.ComponentModel.Annotations.dll +0 -0
  32. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.ComponentModel.DataAnnotations.dll +0 -0
  33. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.ComponentModel.EventBasedAsync.dll +0 -0
  34. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.ComponentModel.Primitives.dll +0 -0
  35. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.ComponentModel.TypeConverter.dll +0 -0
  36. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.ComponentModel.dll +0 -0
  37. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Configuration.dll +0 -0
  38. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Console.dll +0 -0
  39. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Core.dll +0 -0
  40. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Data.Common.dll +0 -0
  41. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Data.DataSetExtensions.dll +0 -0
  42. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Data.dll +0 -0
  43. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Diagnostics.Contracts.dll +0 -0
  44. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Diagnostics.Debug.dll +0 -0
  45. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Diagnostics.DiagnosticSource.dll +0 -0
  46. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Diagnostics.FileVersionInfo.dll +0 -0
  47. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Diagnostics.Process.dll +0 -0
  48. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Diagnostics.StackTrace.dll +0 -0
  49. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Diagnostics.TextWriterTraceListener.dll +0 -0
  50. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Diagnostics.Tools.dll +0 -0
  51. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Diagnostics.TraceSource.dll +0 -0
  52. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Diagnostics.Tracing.dll +0 -0
  53. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Drawing.Primitives.dll +0 -0
  54. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Drawing.dll +0 -0
  55. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Dynamic.Runtime.dll +0 -0
  56. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Formats.Asn1.dll +0 -0
  57. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Globalization.Calendars.dll +0 -0
  58. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Globalization.Extensions.dll +0 -0
  59. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Globalization.dll +0 -0
  60. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.Compression.Brotli.dll +0 -0
  61. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.Compression.FileSystem.dll +0 -0
  62. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.Compression.ZipFile.dll +0 -0
  63. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.Compression.dll +0 -0
  64. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.FileSystem.AccessControl.dll +0 -0
  65. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.FileSystem.DriveInfo.dll +0 -0
  66. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.FileSystem.Primitives.dll +0 -0
  67. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.FileSystem.Watcher.dll +0 -0
  68. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.FileSystem.dll +0 -0
  69. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.IsolatedStorage.dll +0 -0
  70. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.MemoryMappedFiles.dll +0 -0
  71. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.Pipes.AccessControl.dll +0 -0
  72. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.Pipes.dll +0 -0
  73. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.UnmanagedMemoryStream.dll +0 -0
  74. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.dll +0 -0
  75. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Linq.Expressions.dll +0 -0
  76. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Linq.Parallel.dll +0 -0
  77. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Linq.Queryable.dll +0 -0
  78. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Linq.dll +0 -0
  79. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Memory.dll +0 -0
  80. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.Http.Json.dll +0 -0
  81. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.Http.dll +0 -0
  82. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.HttpListener.dll +0 -0
  83. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.Mail.dll +0 -0
  84. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.NameResolution.dll +0 -0
  85. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.NetworkInformation.dll +0 -0
  86. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.Ping.dll +0 -0
  87. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.Primitives.dll +0 -0
  88. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.Requests.dll +0 -0
  89. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.Security.dll +0 -0
  90. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.ServicePoint.dll +0 -0
  91. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.Sockets.dll +0 -0
  92. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.WebClient.dll +0 -0
  93. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.WebHeaderCollection.dll +0 -0
  94. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.WebProxy.dll +0 -0
  95. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.WebSockets.Client.dll +0 -0
  96. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.WebSockets.dll +0 -0
  97. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.dll +0 -0
  98. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Numerics.Vectors.dll +0 -0
  99. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Numerics.dll +0 -0
  100. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.ObjectModel.dll +0 -0
  101. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Private.CoreLib.dll +0 -0
  102. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Private.DataContractSerialization.dll +0 -0
  103. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Private.Uri.dll +0 -0
  104. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Private.Xml.Linq.dll +0 -0
  105. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Private.Xml.dll +0 -0
  106. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Reflection.DispatchProxy.dll +0 -0
  107. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Reflection.Emit.ILGeneration.dll +0 -0
  108. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Reflection.Emit.Lightweight.dll +0 -0
  109. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Reflection.Emit.dll +0 -0
  110. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Reflection.Extensions.dll +0 -0
  111. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Reflection.Metadata.dll +0 -0
  112. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Reflection.Primitives.dll +0 -0
  113. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Reflection.TypeExtensions.dll +0 -0
  114. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Reflection.dll +0 -0
  115. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Resources.Reader.dll +0 -0
  116. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Resources.ResourceManager.dll +0 -0
  117. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Resources.Writer.dll +0 -0
  118. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.CompilerServices.Unsafe.dll +0 -0
  119. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.CompilerServices.VisualC.dll +0 -0
  120. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.Extensions.dll +0 -0
  121. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.Handles.dll +0 -0
  122. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.InteropServices.RuntimeInformation.dll +0 -0
  123. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.InteropServices.dll +0 -0
  124. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.Intrinsics.dll +0 -0
  125. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.Loader.dll +0 -0
  126. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.Numerics.dll +0 -0
  127. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.Serialization.Formatters.dll +0 -0
  128. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.Serialization.Json.dll +0 -0
  129. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.Serialization.Primitives.dll +0 -0
  130. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.Serialization.Xml.dll +0 -0
  131. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.Serialization.dll +0 -0
  132. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.dll +0 -0
  133. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Security.AccessControl.dll +0 -0
  134. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Security.Claims.dll +0 -0
  135. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Security.Cryptography.Algorithms.dll +0 -0
  136. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Security.Cryptography.Cng.dll +0 -0
  137. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Security.Cryptography.Csp.dll +0 -0
  138. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Security.Cryptography.Encoding.dll +0 -0
  139. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Security.Cryptography.OpenSsl.dll +0 -0
  140. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Security.Cryptography.Primitives.dll +0 -0
  141. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Security.Cryptography.X509Certificates.dll +0 -0
  142. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Security.Principal.Windows.dll +0 -0
  143. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Security.Principal.dll +0 -0
  144. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Security.SecureString.dll +0 -0
  145. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Security.dll +0 -0
  146. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.ServiceModel.Web.dll +0 -0
  147. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.ServiceProcess.dll +0 -0
  148. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Text.Encoding.CodePages.dll +0 -0
  149. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Text.Encoding.Extensions.dll +0 -0
  150. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Text.Encoding.dll +0 -0
  151. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Text.Encodings.Web.dll +0 -0
  152. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Text.Json.dll +0 -0
  153. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Text.RegularExpressions.dll +0 -0
  154. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Threading.Channels.dll +0 -0
  155. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Threading.Overlapped.dll +0 -0
  156. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Threading.Tasks.Dataflow.dll +0 -0
  157. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Threading.Tasks.Extensions.dll +0 -0
  158. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Threading.Tasks.Parallel.dll +0 -0
  159. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Threading.Tasks.dll +0 -0
  160. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Threading.Thread.dll +0 -0
  161. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Threading.ThreadPool.dll +0 -0
  162. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Threading.Timer.dll +0 -0
  163. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Threading.dll +0 -0
  164. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Transactions.Local.dll +0 -0
  165. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Transactions.dll +0 -0
  166. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.ValueTuple.dll +0 -0
  167. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Web.HttpUtility.dll +0 -0
  168. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Web.dll +0 -0
  169. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Windows.dll +0 -0
  170. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Xml.Linq.dll +0 -0
  171. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Xml.ReaderWriter.dll +0 -0
  172. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Xml.Serialization.dll +0 -0
  173. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Xml.XDocument.dll +0 -0
  174. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Xml.XPath.XDocument.dll +0 -0
  175. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Xml.XPath.dll +0 -0
  176. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Xml.XmlDocument.dll +0 -0
  177. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Xml.XmlSerializer.dll +0 -0
  178. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Xml.dll +0 -0
  179. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.dll +0 -0
  180. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/WindowsBase.dll +0 -0
  181. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/clrcompression.dll +0 -0
  182. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/clretwrc.dll +0 -0
  183. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/clrjit.dll +0 -0
  184. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/coreclr.dll +0 -0
  185. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/createdump.exe +0 -0
  186. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/dbgshim.dll +0 -0
  187. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/hostfxr.dll +0 -0
  188. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/hostpolicy.dll +0 -0
  189. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/mscordaccore.dll +0 -0
  190. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/mscordaccore_amd64_amd64_5.0.521.16609.dll +0 -0
  191. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/mscordbi.dll +0 -0
  192. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/mscorlib.dll +0 -0
  193. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/mscorrc.dll +0 -0
  194. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/netstandard.dll +0 -0
  195. data/distro/ruby_bin_folder/AMD64/vccorlib140.dll +0 -0
  196. data/distro/ruby_bin_folder/AMD64/vcruntime140.dll +0 -0
  197. data/distro/ruby_bin_folder/AMD64/vcruntime140_1.dll +0 -0
  198. data/distro/ruby_bin_folder/x86/Chef.PowerShell.dll +0 -0
  199. data/distro/ruby_bin_folder/x86/Chef.Powershell.Wrapper.dll +0 -0
  200. data/distro/ruby_bin_folder/x86/concrt140.dll +0 -0
  201. data/distro/ruby_bin_folder/x86/msvcp140.dll +0 -0
  202. data/distro/ruby_bin_folder/x86/msvcp140_1.dll +0 -0
  203. data/distro/ruby_bin_folder/x86/msvcp140_2.dll +0 -0
  204. data/distro/ruby_bin_folder/x86/msvcp140_atomic_wait.dll +0 -0
  205. data/distro/ruby_bin_folder/x86/msvcp140_codecvt_ids.dll +0 -0
  206. data/distro/ruby_bin_folder/x86/shared/Microsoft.NETCore.App/5.0.0/Chef.PowerShell.Wrapper.Core.dll +0 -0
  207. data/distro/ruby_bin_folder/x86/shared/Microsoft.NETCore.App/5.0.0/Chef.Powershell.Core.dll +0 -0
  208. data/distro/ruby_bin_folder/x86/shared/Microsoft.NETCore.App/5.0.0/Chef.Powershell.Core.pdb +0 -0
  209. data/distro/ruby_bin_folder/x86/vccorlib140.dll +0 -0
  210. data/distro/ruby_bin_folder/x86/vcruntime140.dll +0 -0
  211. data/lib/chef/application/base.rb +1 -1
  212. data/lib/chef/application/exit_code.rb +7 -21
  213. data/lib/chef/chef_fs/file_system/chef_server/cookbook_file.rb +1 -1
  214. data/lib/chef/chef_fs/file_system/repository/base_file.rb +1 -1
  215. data/lib/chef/chef_fs/file_system/repository/file_system_entry.rb +1 -1
  216. data/lib/chef/compliance/default_attributes.rb +12 -2
  217. data/lib/chef/compliance/input_collection.rb +1 -1
  218. data/lib/chef/compliance/runner.rb +51 -5
  219. data/lib/chef/compliance/waiver_collection.rb +1 -1
  220. data/lib/chef/cookbook/syntax_check.rb +1 -1
  221. data/lib/chef/cookbook_uploader.rb +1 -1
  222. data/lib/chef/cookbook_version.rb +1 -1
  223. data/lib/chef/mixin/powershell_exec.rb +6 -5
  224. data/lib/chef/mixin/why_run.rb +8 -2
  225. data/lib/chef/powershell.rb +8 -6
  226. data/lib/chef/provider/cron.rb +2 -2
  227. data/lib/chef/provider/directory.rb +2 -2
  228. data/lib/chef/provider/ifconfig.rb +5 -5
  229. data/lib/chef/provider/mount/linux.rb +16 -2
  230. data/lib/chef/provider/mount/mount.rb +1 -1
  231. data/lib/chef/provider/package/dnf.rb +1 -1
  232. data/lib/chef/provider/package/powershell.rb +13 -10
  233. data/lib/chef/provider/package/yum/python_helper.rb +81 -25
  234. data/lib/chef/provider/package/yum.rb +39 -12
  235. data/lib/chef/provider/package/zypper.rb +2 -0
  236. data/lib/chef/provider/package.rb +63 -28
  237. data/lib/chef/provider/user/mac.rb +3 -3
  238. data/lib/chef/provider.rb +5 -2
  239. data/lib/chef/providers.rb +0 -1
  240. data/lib/chef/pwsh.rb +3 -2
  241. data/lib/chef/resource/apt_package.rb +2 -2
  242. data/lib/chef/resource/chef_client_config.rb +21 -1
  243. data/lib/chef/resource/chef_client_launchd.rb +1 -1
  244. data/lib/chef/resource/chocolatey_package.rb +3 -3
  245. data/lib/chef/resource/cron/cron.rb +75 -1
  246. data/lib/chef/resource/cron/cron_d.rb +2 -1
  247. data/lib/chef/resource/dnf_package.rb +4 -6
  248. data/lib/chef/resource/dpkg_package.rb +5 -0
  249. data/lib/chef/resource/execute.rb +1 -4
  250. data/lib/chef/resource/habitat/habitat_sup.rb +1 -1
  251. data/lib/chef/resource/habitat/habitat_sup_windows.rb +1 -1
  252. data/lib/chef/resource/homebrew_tap.rb +1 -5
  253. data/lib/chef/resource/inspec_waiver_file_entry.rb +1 -1
  254. data/lib/chef/resource/launchd.rb +2 -5
  255. data/lib/chef/resource/lwrp_base.rb +1 -1
  256. data/lib/chef/resource/macos_userdefaults.rb +5 -7
  257. data/lib/chef/resource/powershell_package_source.rb +8 -8
  258. data/lib/chef/resource/remote_file.rb +1 -1
  259. data/lib/chef/resource/rhsm_register.rb +31 -0
  260. data/lib/chef/resource/support/client.erb +7 -0
  261. data/lib/chef/resource/windows_feature_powershell.rb +8 -9
  262. data/lib/chef/resource/windows_task.rb +25 -10
  263. data/lib/chef/resource.rb +3 -3
  264. data/lib/chef/resource_reporter.rb +1 -1
  265. data/lib/chef/run_lock.rb +1 -1
  266. data/lib/chef/secret_fetcher/azure_key_vault.rb +4 -2
  267. data/lib/chef/secret_fetcher/hashi_vault.rb +37 -3
  268. data/lib/chef/util/dsc/configuration_generator.rb +1 -1
  269. data/lib/chef/version.rb +1 -1
  270. data/spec/functional/resource/cookbook_file_spec.rb +1 -1
  271. data/spec/functional/resource/dnf_package_spec.rb +138 -124
  272. data/spec/functional/resource/dpkg_package_spec.rb +16 -0
  273. data/spec/functional/resource/dsc_script_spec.rb +2 -2
  274. data/spec/functional/resource/macos_userdefaults_spec.rb +20 -0
  275. data/spec/functional/resource/template_spec.rb +1 -1
  276. data/spec/functional/resource/yum_package_spec.rb +789 -129
  277. data/spec/functional/resource/zypper_package_spec.rb +7 -0
  278. data/spec/integration/client/client_spec.rb +32 -1
  279. data/spec/spec_helper.rb +3 -3
  280. data/spec/support/platform_helpers.rb +1 -1
  281. data/spec/support/ruby_installer.rb +1 -1
  282. data/spec/support/shared/functional/file_resource.rb +2 -2
  283. data/spec/support/shared/functional/http.rb +9 -9
  284. data/spec/support/shared/unit/provider/useradd_based_user_provider.rb +1 -1
  285. data/spec/unit/application/base_spec.rb +40 -0
  286. data/spec/unit/compliance/runner_spec.rb +62 -1
  287. data/spec/unit/dsl/registry_helper_spec.rb +6 -6
  288. data/spec/unit/file_access_control_spec.rb +1 -1
  289. data/spec/unit/guard_interpreter/resource_guard_interpreter_spec.rb +1 -1
  290. data/spec/unit/lwrp_spec.rb +2 -2
  291. data/spec/unit/mixin/why_run_spec.rb +53 -0
  292. data/spec/unit/provider/dsc_script_spec.rb +8 -8
  293. data/spec/unit/provider/group/groupadd_spec.rb +1 -0
  294. data/spec/unit/provider/group/usermod_spec.rb +4 -4
  295. data/spec/unit/provider/ifconfig/aix_spec.rb +14 -14
  296. data/spec/unit/provider/ifconfig/debian_spec.rb +1 -1
  297. data/spec/unit/provider/ifconfig/redhat_spec.rb +1 -1
  298. data/spec/unit/provider/ifconfig_spec.rb +5 -3
  299. data/spec/unit/provider/mount/linux_spec.rb +16 -3
  300. data/spec/unit/provider/package/bff_spec.rb +1 -0
  301. data/spec/unit/provider/package/powershell_spec.rb +114 -114
  302. data/spec/unit/provider/package/rubygems_spec.rb +3 -0
  303. data/spec/unit/provider/package/solaris_spec.rb +1 -0
  304. data/spec/unit/provider/remote_file/cache_control_data_spec.rb +3 -3
  305. data/spec/unit/provider/service/arch_service_spec.rb +2 -2
  306. data/spec/unit/provider/service/debian_service_spec.rb +1 -0
  307. data/spec/unit/provider/service/gentoo_service_spec.rb +3 -2
  308. data/spec/unit/provider/service/macosx_spec.rb +1 -0
  309. data/spec/unit/provider/service/redhat_spec.rb +4 -1
  310. data/spec/unit/provider/service/simple_service_spec.rb +6 -4
  311. data/spec/unit/provider/service/upstart_service_spec.rb +3 -3
  312. data/spec/unit/provider/user/solaris_spec.rb +1 -1
  313. data/spec/unit/provider/user_spec.rb +2 -0
  314. data/spec/unit/resource/conditional_spec.rb +4 -4
  315. data/spec/unit/resource/dpkg_package_spec.rb +12 -0
  316. data/spec/unit/resource/rhsm_register_spec.rb +42 -0
  317. data/spec/unit/resource_spec.rb +2 -2
  318. data/spec/unit/secret_fetcher/hashi_vault_spec.rb +46 -0
  319. metadata +10 -10
  320. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/mscordaccore_amd64_amd64_5.0.20.51904.dll +0 -0
  321. data/lib/chef/provider/group/suse.rb +0 -82
  322. data/spec/unit/provider/group/suse_spec.rb +0 -90
@@ -65,6 +65,7 @@ describe Chef::Provider::Package::Solaris do
65
65
  allow(@provider).to receive(:shell_out_compacted).and_return(@status)
66
66
  allow(::File).to receive(:exist?).and_return(false)
67
67
  @provider.load_current_resource
68
+ @provider.action = :install
68
69
  @provider.define_resource_requirements
69
70
  expect { @provider.process_resource_requirements }.to raise_error(Chef::Exceptions::Package)
70
71
  end
@@ -219,11 +219,11 @@ describe Chef::Provider::RemoteFile::CacheControlData do
219
219
  let(:truncated_remote_uri) { URI.parse(long_remote_path[0...CACHE_FILE_TRUNCATED_FRIENDLY_FILE_NAME_LENGTH]) }
220
220
  let(:truncated_file_cache_path) do
221
221
  cache_control_data_truncated = Chef::Provider::RemoteFile::CacheControlData.load_and_validate(truncated_remote_uri, current_file_checksum)
222
- cache_control_data_truncated.send("sanitized_cache_file_basename")[0...CACHE_FILE_TRUNCATED_FRIENDLY_FILE_NAME_LENGTH]
222
+ cache_control_data_truncated.send(:sanitized_cache_file_basename)[0...CACHE_FILE_TRUNCATED_FRIENDLY_FILE_NAME_LENGTH]
223
223
  end
224
224
 
225
225
  it "truncates the file cache path to 102 characters" do
226
- normalized_cache_path = cache_control_data.send("sanitized_cache_file_basename")
226
+ normalized_cache_path = cache_control_data.send(:sanitized_cache_file_basename)
227
227
 
228
228
  expect(Chef::FileCache).to receive(:store).with("remote_file/" + normalized_cache_path, cache_control_data.json_data)
229
229
 
@@ -233,7 +233,7 @@ describe Chef::Provider::RemoteFile::CacheControlData do
233
233
  end
234
234
 
235
235
  it "uses a file cache path that starts with the first #{CACHE_FILE_TRUNCATED_FRIENDLY_FILE_NAME_LENGTH} characters of the URI" do
236
- normalized_cache_path = cache_control_data.send("sanitized_cache_file_basename")
236
+ normalized_cache_path = cache_control_data.send(:sanitized_cache_file_basename)
237
237
 
238
238
  expect(truncated_file_cache_path.length).to eq(CACHE_FILE_TRUNCATED_FRIENDLY_FILE_NAME_LENGTH)
239
239
  expect(normalized_cache_path.start_with?(truncated_file_cache_path)).to eq(true)
@@ -95,15 +95,15 @@ describe Chef::Provider::Service::Arch, "load_current_resource" do
95
95
 
96
96
  it "should raise error if the node has a nil ps property and no other means to get status" do
97
97
  @node.automatic_attrs[:command] = { ps: nil }
98
- @provider.define_resource_requirements
99
98
  @provider.action = :start
99
+ @provider.define_resource_requirements
100
100
  expect { @provider.process_resource_requirements }.to raise_error(Chef::Exceptions::Service)
101
101
  end
102
102
 
103
103
  it "should raise error if the node has an empty ps property and no other means to get status" do
104
104
  @node.automatic_attrs[:command] = { ps: "" }
105
- @provider.define_resource_requirements
106
105
  @provider.action = :start
106
+ @provider.define_resource_requirements
107
107
  expect { @provider.process_resource_requirements }.to raise_error(Chef::Exceptions::Service)
108
108
  end
109
109
 
@@ -50,6 +50,7 @@ describe Chef::Provider::Service::Debian do
50
50
  it "ensures /usr/sbin/update-rc.d is available" do
51
51
  expect(File).to receive(:exist?).with("/usr/sbin/update-rc.d").and_return(false)
52
52
 
53
+ @provider.action = :start
53
54
  @provider.define_resource_requirements
54
55
  expect do
55
56
  @provider.process_resource_requirements
@@ -42,19 +42,20 @@ describe Chef::Provider::Service::Gentoo do
42
42
  describe "load_current_resource" do
43
43
  it "should raise Chef::Exceptions::Service if /sbin/rc-update does not exist" do
44
44
  expect(File).to receive(:exist?).with("/sbin/rc-update").and_return(false)
45
+ @provider.action = :start
45
46
  @provider.define_resource_requirements
46
47
  expect { @provider.process_resource_requirements }.to raise_error(Chef::Exceptions::Service)
47
48
  end
48
49
 
49
50
  it "should track when service file is not found in /etc/runlevels" do
50
51
  @provider.load_current_resource
51
- expect(@provider.instance_variable_get("@found_script")).to be_falsey
52
+ expect(@provider.instance_variable_get(:@found_script)).to be_falsey
52
53
  end
53
54
 
54
55
  it "should track when service file is found in /etc/runlevels/**/" do
55
56
  allow(Dir).to receive(:glob).with("/etc/runlevels/**/chef").and_return(["/etc/runlevels/default/chef"])
56
57
  @provider.load_current_resource
57
- expect(@provider.instance_variable_get("@found_script")).to be_truthy
58
+ expect(@provider.instance_variable_get(:@found_script)).to be_truthy
58
59
  end
59
60
 
60
61
  describe "when detecting the service enable state" do
@@ -237,6 +237,7 @@ describe Chef::Provider::Service::Macosx do
237
237
  allow(Dir).to receive(:glob).and_return([(plist).to_s,
238
238
  "/Users/wtf/something.plist"])
239
239
  provider.load_current_resource
240
+ provider.action = :enable
240
241
  provider.define_resource_requirements
241
242
  expect { provider.process_resource_requirements }.to raise_error(Chef::Exceptions::Service)
242
243
  end
@@ -34,6 +34,7 @@ shared_examples_for "define_resource_requirements_common" do
34
34
  expect(@provider).to receive(:shell_out).with("/sbin/service chef status").and_return(status)
35
35
  chkconfig = double("Chkconfig", exitstatus: 0, stdout: "", stderr: "service chef supports chkconfig, but is not referenced in any runlevel (run 'chkconfig --add chef')")
36
36
  expect(@provider).to receive(:shell_out!).with("/sbin/chkconfig --list chef", returns: [0, 1]).and_return(chkconfig)
37
+ @provider.action = :start
37
38
  @provider.load_current_resource
38
39
  @provider.define_resource_requirements
39
40
  expect { @provider.process_resource_requirements }.not_to raise_error
@@ -147,12 +148,12 @@ describe "Chef::Provider::Service::Redhat" do
147
148
  chkconfig = double("Chkconfig", existatus: 1, stdout: "", stderr: "error reading information on service chef: No such file or directory")
148
149
  expect(@provider).to receive(:shell_out!).with("/sbin/chkconfig --list chef", returns: [0, 1]).and_return(chkconfig)
149
150
  @provider.load_current_resource
150
- @provider.define_resource_requirements
151
151
  end
152
152
 
153
153
  %w{start reload restart enable}.each do |action|
154
154
  it "should raise an error when the action is #{action}" do
155
155
  @provider.action = action
156
+ @provider.define_resource_requirements
156
157
  expect { @provider.process_resource_requirements }.to raise_error(Chef::Exceptions::Service)
157
158
  end
158
159
  end
@@ -161,12 +162,14 @@ describe "Chef::Provider::Service::Redhat" do
161
162
  it "should not raise an error when the action is #{action} and init_command is set" do
162
163
  @new_resource.init_command("/etc/init.d/chef")
163
164
  @provider.action = action
165
+ @provider.define_resource_requirements
164
166
  expect { @provider.process_resource_requirements }.not_to raise_error
165
167
  end
166
168
 
167
169
  it "should not raise an error when the action is #{action} and #{action}_command is set" do
168
170
  @new_resource.send("#{action}_command", "/etc/init.d/chef #{action}")
169
171
  @provider.action = action
172
+ @provider.define_resource_requirements
170
173
  expect { @provider.process_resource_requirements }.not_to raise_error
171
174
  end
172
175
  end
@@ -52,12 +52,14 @@ describe Chef::Provider::Service::Simple, "load_current_resource" do
52
52
 
53
53
  it "should raise error if the node has a nil ps property and no other means to get status" do
54
54
  @node.automatic_attrs[:command] = { ps: nil }
55
+ @provider.action = :start
55
56
  @provider.define_resource_requirements
56
57
  expect { @provider.process_resource_requirements }.to raise_error(Chef::Exceptions::Service)
57
58
  end
58
59
 
59
60
  it "should raise error if the node has an empty ps property and no other means to get status" do
60
61
  @node.automatic_attrs[:command] = { ps: "" }
62
+ @provider.action = :start
61
63
  @provider.define_resource_requirements
62
64
  expect { @provider.process_resource_requirements }.to raise_error(Chef::Exceptions::Service)
63
65
  end
@@ -112,8 +114,8 @@ describe Chef::Provider::Service::Simple, "load_current_resource" do
112
114
  end
113
115
 
114
116
  it "should raise an exception if no start command is specified" do
115
- @provider.define_resource_requirements
116
117
  @provider.action = :start
118
+ @provider.define_resource_requirements
117
119
  expect { @provider.process_resource_requirements }.to raise_error(Chef::Exceptions::Service)
118
120
  end
119
121
  end
@@ -126,8 +128,8 @@ describe Chef::Provider::Service::Simple, "load_current_resource" do
126
128
  end
127
129
 
128
130
  it "should raise an exception if no stop command is specified" do
129
- @provider.define_resource_requirements
130
131
  @provider.action = :stop
132
+ @provider.define_resource_requirements
131
133
  expect { @provider.process_resource_requirements }.to raise_error(Chef::Exceptions::Service)
132
134
  end
133
135
  end
@@ -140,8 +142,8 @@ describe Chef::Provider::Service::Simple, "load_current_resource" do
140
142
  end
141
143
 
142
144
  it "should raise an exception if the resource doesn't support restart, no restart command is provided, and no stop command is provided" do
143
- @provider.define_resource_requirements
144
145
  @provider.action = :restart
146
+ @provider.define_resource_requirements
145
147
  expect { @provider.process_resource_requirements }.to raise_error(Chef::Exceptions::Service)
146
148
  end
147
149
 
@@ -155,8 +157,8 @@ describe Chef::Provider::Service::Simple, "load_current_resource" do
155
157
 
156
158
  describe Chef::Provider::Service::Simple, "reload_service" do
157
159
  it "should raise an exception if reload is requested but no command is specified" do
158
- @provider.define_resource_requirements
159
160
  @provider.action = :reload
161
+ @provider.define_resource_requirements
160
162
  expect { @provider.process_resource_requirements }.to raise_error(Chef::Exceptions::UnsupportedAction)
161
163
  end
162
164
 
@@ -160,7 +160,7 @@ describe Chef::Provider::Service::Upstart do
160
160
  it "should track state when the upstart configuration file fails to load" do
161
161
  expect(File).to receive(:exist?).and_return false
162
162
  @provider.load_current_resource
163
- expect(@provider.instance_variable_get("@config_file_found")).to eq(false)
163
+ expect(@provider.instance_variable_get(:@config_file_found)).to eq(false)
164
164
  end
165
165
 
166
166
  describe "when a status command has been specified" do
@@ -177,7 +177,7 @@ describe Chef::Provider::Service::Upstart do
177
177
  it "should track state when the user-provided status command fails" do
178
178
  allow(@provider).to receive(:shell_out!).and_raise(Errno::ENOENT)
179
179
  @provider.load_current_resource
180
- expect(@provider.instance_variable_get("@command_success")).to eq(false)
180
+ expect(@provider.instance_variable_get(:@command_success)).to eq(false)
181
181
  end
182
182
 
183
183
  it "should set running to false if it catches a Chef::Exceptions::Exec when using a status command" do
@@ -190,7 +190,7 @@ describe Chef::Provider::Service::Upstart do
190
190
  it "should track state when we fail to obtain service status via upstart_goal_state" do
191
191
  expect(@provider).to receive(:upstart_goal_state).and_raise Chef::Exceptions::Exec
192
192
  @provider.load_current_resource
193
- expect(@provider.instance_variable_get("@command_success")).to eq(false)
193
+ expect(@provider.instance_variable_get(:@command_success)).to eq(false)
194
194
  end
195
195
 
196
196
  it "should return the current resource" do
@@ -74,7 +74,7 @@ describe Chef::Provider::User::Solaris do
74
74
  allow(Tempfile).to receive(:new).with("shadow", "/etc").and_return(temp_file)
75
75
  new_resource.password "verysecurepassword"
76
76
  provider.manage_user
77
- expect(::File.open(password_file.path, "r").read).to match(/adam:verysecurepassword:/)
77
+ expect(::File.read(password_file.path)).to match(/adam:verysecurepassword:/)
78
78
  password_file.unlink
79
79
  end
80
80
  end
@@ -170,6 +170,7 @@ describe Chef::Provider::User do
170
170
  sp_warn: 7, sp_inact: -1, sp_expire: -1, sp_flag: -1)
171
171
  expect(Shadow::Passwd).to receive(:getspnam).with("notarealuser").and_return(passwd_info)
172
172
  @provider.load_current_resource
173
+ @provider.action = :create
173
174
  @provider.define_resource_requirements
174
175
  @provider.process_resource_requirements
175
176
  end
@@ -180,6 +181,7 @@ describe Chef::Provider::User do
180
181
  it "should fail assertions when ruby-shadow cannot be loaded" do
181
182
  expect(@provider).to receive(:require).with("shadow") { raise LoadError }
182
183
  @provider.load_current_resource
184
+ @provider.action = :create
183
185
  @provider.define_resource_requirements
184
186
  expect { @provider.process_resource_requirements }.to raise_error Chef::Exceptions::MissingLibrary
185
187
  end
@@ -59,7 +59,7 @@ describe Chef::Resource::Conditional do
59
59
 
60
60
  describe "after running a negative/false command given as a string" do
61
61
  before do
62
- @status.send("success?=", false)
62
+ @status.send(:"success?=", false)
63
63
  @conditional = Chef::Resource::Conditional.only_if(@parent_resource, "false")
64
64
  end
65
65
 
@@ -80,7 +80,7 @@ describe Chef::Resource::Conditional do
80
80
 
81
81
  describe "after running a negative/false command given as an array" do
82
82
  before do
83
- @status.send("success?=", false)
83
+ @status.send(:"success?=", false)
84
84
  @conditional = Chef::Resource::Conditional.only_if(@parent_resource, ["false"])
85
85
  end
86
86
 
@@ -162,7 +162,7 @@ describe Chef::Resource::Conditional do
162
162
 
163
163
  describe "after running a failed/false command given as a string" do
164
164
  before do
165
- @status.send("success?=", false)
165
+ @status.send(:"success?=", false)
166
166
  @conditional = Chef::Resource::Conditional.not_if(@parent_resource, "false")
167
167
  end
168
168
 
@@ -183,7 +183,7 @@ describe Chef::Resource::Conditional do
183
183
 
184
184
  describe "after running a failed/false command given as an array" do
185
185
  before do
186
- @status.send("success?=", false)
186
+ @status.send(:"success?=", false)
187
187
  @conditional = Chef::Resource::Conditional.not_if(@parent_resource, ["false"])
188
188
  end
189
189
 
@@ -57,4 +57,16 @@ describe Chef::Resource::DpkgPackage, "initialize" do
57
57
  end
58
58
  end
59
59
 
60
+ describe Chef::Resource::DpkgPackage, "allow_downgrade" do
61
+ before(:each) do
62
+ @resource = Chef::Resource::DpkgPackage.new("fakey_fakerton")
63
+ end
64
+
65
+ it "should allow you to specify whether allow_downgrade is true or false" do
66
+ expect { @resource.allow_downgrade true }.not_to raise_error
67
+ expect { @resource.allow_downgrade false }.not_to raise_error
68
+ expect { @resource.allow_downgrade "something" }.to raise_error(ArgumentError)
69
+ end
70
+ end
71
+
60
72
  end
@@ -158,6 +158,48 @@ describe Chef::Resource::RhsmRegister do
158
158
  end
159
159
  end
160
160
 
161
+ context "when a server_url is provided" do
162
+ it "returns a command containing the server url" do
163
+ allow(resource).to receive(:server_url).and_return("https://fqdn.example")
164
+ expect(provider.register_command).to match("--serverurl=https://fqdn.example")
165
+ end
166
+ end
167
+
168
+ context "when a base_url is provided" do
169
+ it "returns a command containing the base url" do
170
+ allow(resource).to receive(:base_url).and_return("https://fqdn.example")
171
+ expect(provider.register_command).to match("--baseurl=https://fqdn.example")
172
+ end
173
+ end
174
+
175
+ context "when a service_level is provided" do
176
+ it "returns a command containing the service level" do
177
+ allow(resource).to receive(:service_level).and_return("None")
178
+ allow(resource).to receive(:auto_attach).and_return(true)
179
+ expect(provider.register_command).to match("--servicelevel=None")
180
+ end
181
+
182
+ it "raises an exception if auto_attach is not set" do
183
+ allow(resource).to receive(:service_level).and_return("None")
184
+ allow(resource).to receive(:auto_attach).and_return(nil)
185
+ expect { provider.register_command }.to raise_error(RuntimeError)
186
+ end
187
+ end
188
+
189
+ context "when a release is provided" do
190
+ it "returns a command containing the release" do
191
+ allow(resource).to receive(:release).and_return("8.4")
192
+ allow(resource).to receive(:auto_attach).and_return(true)
193
+ expect(provider.register_command).to match("--release=8.4")
194
+ end
195
+
196
+ it "raises an exception if auto_attach is not set" do
197
+ allow(resource).to receive(:release).and_return("8.4")
198
+ allow(resource).to receive(:auto_attach).and_return(nil)
199
+ expect { provider.register_command }.to raise_error(RuntimeError)
200
+ end
201
+ end
202
+
161
203
  context "when a system_name is not provided" do
162
204
  it "returns a command containing the system name" do
163
205
  allow(resource).to receive(:system_name).and_return(nil)
@@ -955,7 +955,7 @@ describe Chef::Resource do
955
955
  node.name("bumblebee")
956
956
  node.automatic[:platform] = "autobots"
957
957
  node.automatic[:platform_version] = "6.1"
958
- Object.const_set("Soundwave", klz1)
958
+ Object.const_set(:Soundwave, klz1)
959
959
  klz1.provides :soundwave
960
960
  end
961
961
 
@@ -978,7 +978,7 @@ describe Chef::Resource do
978
978
  node.automatic[:platform] = "autobots"
979
979
  node.automatic[:platform_version] = "6.1"
980
980
  klz2.provides :dinobot, platform: ["autobots"]
981
- Object.const_set("Grimlock", klz2)
981
+ Object.const_set(:Grimlock, klz2)
982
982
  klz2.provides :grimlock
983
983
  end
984
984
 
@@ -65,6 +65,52 @@ describe Chef::SecretFetcher::HashiVault do
65
65
  fetcher.validate!
66
66
  end
67
67
  end
68
+
69
+ context "and using auth_method: :approle" do
70
+ it "raises ConfigurationInvalid message when :approle_name or :approle_id are not specified" do
71
+ fetcher = Chef::SecretFetcher::HashiVault.new( { auth_method: :approle, vault_addr: "https://vault.example.com:8200" }, run_context)
72
+ expect { fetcher.validate! }.to raise_error(Chef::Exceptions::Secret::ConfigurationInvalid)
73
+ end
74
+
75
+ it "authenticates using the approle_id and approle_secret_id during validation when all configuration is correct" do
76
+ fetcher = Chef::SecretFetcher::HashiVault.new({
77
+ auth_method: :approle,
78
+ approle_id: "idguid",
79
+ approle_secret_id: "secretguid",
80
+ vault_addr: "https://vault.example.com:8200" },
81
+ run_context)
82
+ auth = instance_double(Vault::Authenticate)
83
+ allow(auth).to receive(:approle)
84
+ allow(Vault).to receive(:auth).and_return(auth)
85
+ expect(auth).to receive(:approle).with("idguid", "secretguid")
86
+ fetcher.validate!
87
+ end
88
+
89
+ it "looks up the :role_id and :secret_id when all configuration is correct" do
90
+ fetcher = Chef::SecretFetcher::HashiVault.new({
91
+ auth_method: :approle,
92
+ approle_name: "myapprole",
93
+ token: "t.1234abcd",
94
+ vault_addr: "https://vault.example.com:8200" },
95
+ run_context)
96
+ approle = instance_double(Vault::AppRole)
97
+ auth = instance_double(Vault::Authenticate)
98
+ allow(Vault).to receive(:approle).and_return(approle)
99
+ allow(approle).to receive(:role_id).with("myapprole").and_return("idguid")
100
+ allow(approle).to receive(:create_secret_id).with("myapprole").and_return(Vault::Secret.new({
101
+ data: {
102
+ secret_id: "secretguid",
103
+ secret_id_accessor: "accessor_guid",
104
+ secret_id_ttl: 0,
105
+ },
106
+ lease_duration: 0,
107
+ lease_id: "",
108
+ }))
109
+ allow(Vault).to receive(:auth).and_return(auth)
110
+ expect(auth).to receive(:approle).with("idguid", "secretguid")
111
+ fetcher.validate!
112
+ end
113
+ end
68
114
  end
69
115
 
70
116
  context "when fetching a secret from Hashi Vault" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef
3
3
  version: !ruby/object:Gem::Version
4
- version: 17.7.29
4
+ version: 17.9.42
5
5
  platform: universal-mingw32
6
6
  authors:
7
7
  - Adam Jacob
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-29 00:00:00.000000000 Z
11
+ date: 2022-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef-config
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 17.7.29
19
+ version: 17.9.42
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 17.7.29
26
+ version: 17.9.42
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: chef-utils
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 17.7.29
33
+ version: 17.9.42
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 17.7.29
40
+ version: 17.9.42
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: train-core
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -961,7 +961,7 @@ files:
961
961
  - distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/mi.dll
962
962
  - distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/miutils.dll
963
963
  - distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/mscordaccore.dll
964
- - distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/mscordaccore_amd64_amd64_5.0.20.51904.dll
964
+ - distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/mscordaccore_amd64_amd64_5.0.521.16609.dll
965
965
  - distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/mscordbi.dll
966
966
  - distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/mscorlib.dll
967
967
  - distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/mscorrc.dll
@@ -1648,7 +1648,6 @@ files:
1648
1648
  - lib/chef/provider/group/groupmod.rb
1649
1649
  - lib/chef/provider/group/pw.rb
1650
1650
  - lib/chef/provider/group/solaris.rb
1651
- - lib/chef/provider/group/suse.rb
1652
1651
  - lib/chef/provider/group/usermod.rb
1653
1652
  - lib/chef/provider/group/windows.rb
1654
1653
  - lib/chef/provider/http_request.rb
@@ -2646,6 +2645,7 @@ files:
2646
2645
  - spec/unit/api_client_v1_spec.rb
2647
2646
  - spec/unit/application/agent_spec.rb
2648
2647
  - spec/unit/application/apply_spec.rb
2648
+ - spec/unit/application/base_spec.rb
2649
2649
  - spec/unit/application/client_spec.rb
2650
2650
  - spec/unit/application/exit_code_spec.rb
2651
2651
  - spec/unit/application/server_spec.rb
@@ -2779,6 +2779,7 @@ files:
2779
2779
  - spec/unit/mixin/user_context_spec.rb
2780
2780
  - spec/unit/mixin/versioned_api_spec.rb
2781
2781
  - spec/unit/mixin/which.rb
2782
+ - spec/unit/mixin/why_run_spec.rb
2782
2783
  - spec/unit/mixin/windows_architecture_helper_spec.rb
2783
2784
  - spec/unit/mixin/xml_escape_spec.rb
2784
2785
  - spec/unit/monologger_spec.rb
@@ -2818,7 +2819,6 @@ files:
2818
2819
  - spec/unit/provider/group/groupmod_spec.rb
2819
2820
  - spec/unit/provider/group/pw_spec.rb
2820
2821
  - spec/unit/provider/group/solaris_spec.rb
2821
- - spec/unit/provider/group/suse_spec.rb
2822
2822
  - spec/unit/provider/group/usermod_spec.rb
2823
2823
  - spec/unit/provider/group/windows_spec.rb
2824
2824
  - spec/unit/provider/group_spec.rb
@@ -3167,7 +3167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
3167
3167
  - !ruby/object:Gem::Version
3168
3168
  version: '0'
3169
3169
  requirements: []
3170
- rubygems_version: 3.2.22
3170
+ rubygems_version: 3.2.32
3171
3171
  signing_key:
3172
3172
  specification_version: 4
3173
3173
  summary: A systems integration framework, built to bring the benefits of configuration
@@ -1,82 +0,0 @@
1
- #
2
- # Author:: AJ Christensen (<aj@chef.io>)
3
- # Copyright:: Copyright (c) Chef Software Inc.
4
- # License:: Apache License, Version 2.0
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
- require_relative "groupadd"
20
- require "etc" unless defined?(Etc)
21
-
22
- class Chef
23
- class Provider
24
- class Group
25
- class Suse < Chef::Provider::Group::Groupadd
26
- provides :group, platform: "suse", platform_version: "< 12.0"
27
-
28
- def load_current_resource
29
- super
30
- end
31
-
32
- def define_resource_requirements
33
- super
34
- requirements.assert(:all_actions) do |a|
35
- a.assertion { ::File.exist?("/usr/sbin/groupmod") }
36
- a.failure_message Chef::Exceptions::Group, "Could not find binary /usr/sbin/groupmod for #{new_resource.name}"
37
- # No whyrun alternative: this component should be available in the base install of any given system that uses it
38
- end
39
-
40
- requirements.assert(:create, :manage, :modify) do |a|
41
- a.assertion do
42
-
43
- to_add(new_resource.members).all? { |member| Etc.getpwnam(member) }
44
- rescue
45
- false
46
-
47
- end
48
- a.failure_message Chef::Exceptions::Group, "Could not add users #{to_add(new_resource.members).join(", ")} to #{new_resource.group_name}: one of these users does not exist"
49
- a.whyrun "Could not find one of these users: #{to_add(new_resource.members).join(", ")}. Assuming it will be created by a prior step"
50
- end
51
- end
52
-
53
- def set_members(members)
54
- to_remove(members).each do |member|
55
- remove_member(member)
56
- end
57
-
58
- to_add(members).each do |member|
59
- add_member(member)
60
- end
61
- end
62
-
63
- def to_add(members)
64
- members - current_resource.members
65
- end
66
-
67
- def add_member(member)
68
- shell_out!("groupmod", "-A", member, new_resource.group_name)
69
- end
70
-
71
- def to_remove(members)
72
- current_resource.members - members
73
- end
74
-
75
- def remove_member(member)
76
- shell_out!("groupmod", "-R", member, new_resource.group_name)
77
- end
78
-
79
- end
80
- end
81
- end
82
- end