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.
- checksums.yaml +4 -4
- data/Gemfile +3 -3
- data/README.md +1 -1
- data/distro/ruby_bin_folder/AMD64/Chef.PowerShell.Wrapper.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/Chef.PowerShell.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/Ijwhost.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/concrt140.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/host/fxr/5.0.0/hostfxr.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/msvcp140.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/msvcp140_1.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/msvcp140_2.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/msvcp140_atomic_wait.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/msvcp140_codecvt_ids.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/Chef.PowerShell.Wrapper.Core.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/Chef.Powershell.Core.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/Chef.Powershell.Core.pdb +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/Ijwhost.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/Microsoft.CSharp.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/Microsoft.NETCore.App.deps.json +180 -180
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/Microsoft.VisualBasic.Core.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/Microsoft.VisualBasic.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/Microsoft.Win32.Primitives.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/Microsoft.Win32.Registry.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.AppContext.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Buffers.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Collections.Concurrent.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Collections.Immutable.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Collections.NonGeneric.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Collections.Specialized.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Collections.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.ComponentModel.Annotations.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.ComponentModel.DataAnnotations.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.ComponentModel.EventBasedAsync.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.ComponentModel.Primitives.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.ComponentModel.TypeConverter.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.ComponentModel.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Configuration.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Console.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Core.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Data.Common.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Data.DataSetExtensions.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Data.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Diagnostics.Contracts.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Diagnostics.Debug.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Diagnostics.DiagnosticSource.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Diagnostics.FileVersionInfo.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Diagnostics.Process.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Diagnostics.StackTrace.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Diagnostics.TextWriterTraceListener.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Diagnostics.Tools.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Diagnostics.TraceSource.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Diagnostics.Tracing.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Drawing.Primitives.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Drawing.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Dynamic.Runtime.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Formats.Asn1.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Globalization.Calendars.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Globalization.Extensions.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Globalization.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.Compression.Brotli.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.Compression.FileSystem.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.Compression.ZipFile.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.Compression.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.FileSystem.AccessControl.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.FileSystem.DriveInfo.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.FileSystem.Primitives.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.FileSystem.Watcher.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.FileSystem.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.IsolatedStorage.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.MemoryMappedFiles.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.Pipes.AccessControl.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.Pipes.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.UnmanagedMemoryStream.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.IO.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Linq.Expressions.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Linq.Parallel.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Linq.Queryable.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Linq.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Memory.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.Http.Json.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.Http.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.HttpListener.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.Mail.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.NameResolution.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.NetworkInformation.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.Ping.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.Primitives.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.Requests.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.Security.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.ServicePoint.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.Sockets.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.WebClient.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.WebHeaderCollection.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.WebProxy.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.WebSockets.Client.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.WebSockets.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Net.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Numerics.Vectors.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Numerics.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.ObjectModel.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Private.CoreLib.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Private.DataContractSerialization.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Private.Uri.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Private.Xml.Linq.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Private.Xml.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Reflection.DispatchProxy.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Reflection.Emit.ILGeneration.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Reflection.Emit.Lightweight.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Reflection.Emit.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Reflection.Extensions.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Reflection.Metadata.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Reflection.Primitives.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Reflection.TypeExtensions.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Reflection.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Resources.Reader.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Resources.ResourceManager.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Resources.Writer.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.CompilerServices.Unsafe.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.CompilerServices.VisualC.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.Extensions.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.Handles.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.InteropServices.RuntimeInformation.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.InteropServices.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.Intrinsics.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.Loader.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.Numerics.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.Serialization.Formatters.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.Serialization.Json.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.Serialization.Primitives.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.Serialization.Xml.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.Serialization.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Security.AccessControl.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Security.Claims.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Security.Cryptography.Algorithms.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Security.Cryptography.Cng.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Security.Cryptography.Csp.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Security.Cryptography.Encoding.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Security.Cryptography.OpenSsl.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Security.Cryptography.Primitives.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Security.Cryptography.X509Certificates.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Security.Principal.Windows.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Security.Principal.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Security.SecureString.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Security.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.ServiceModel.Web.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.ServiceProcess.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Text.Encoding.CodePages.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Text.Encoding.Extensions.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Text.Encoding.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Text.Encodings.Web.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Text.Json.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Text.RegularExpressions.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Threading.Channels.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Threading.Overlapped.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Threading.Tasks.Dataflow.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Threading.Tasks.Extensions.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Threading.Tasks.Parallel.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Threading.Tasks.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Threading.Thread.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Threading.ThreadPool.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Threading.Timer.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Threading.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Transactions.Local.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Transactions.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.ValueTuple.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Web.HttpUtility.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Web.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Windows.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Xml.Linq.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Xml.ReaderWriter.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Xml.Serialization.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Xml.XDocument.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Xml.XPath.XDocument.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Xml.XPath.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Xml.XmlDocument.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Xml.XmlSerializer.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.Xml.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/System.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/WindowsBase.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/clrcompression.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/clretwrc.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/clrjit.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/coreclr.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/createdump.exe +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/dbgshim.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/hostfxr.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/hostpolicy.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/mscordaccore.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/mscordaccore_amd64_amd64_5.0.521.16609.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/mscordbi.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/mscorlib.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/mscorrc.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/netstandard.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/vccorlib140.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/vcruntime140.dll +0 -0
- data/distro/ruby_bin_folder/AMD64/vcruntime140_1.dll +0 -0
- data/distro/ruby_bin_folder/x86/Chef.PowerShell.dll +0 -0
- data/distro/ruby_bin_folder/x86/Chef.Powershell.Wrapper.dll +0 -0
- data/distro/ruby_bin_folder/x86/concrt140.dll +0 -0
- data/distro/ruby_bin_folder/x86/msvcp140.dll +0 -0
- data/distro/ruby_bin_folder/x86/msvcp140_1.dll +0 -0
- data/distro/ruby_bin_folder/x86/msvcp140_2.dll +0 -0
- data/distro/ruby_bin_folder/x86/msvcp140_atomic_wait.dll +0 -0
- data/distro/ruby_bin_folder/x86/msvcp140_codecvt_ids.dll +0 -0
- data/distro/ruby_bin_folder/x86/shared/Microsoft.NETCore.App/5.0.0/Chef.PowerShell.Wrapper.Core.dll +0 -0
- data/distro/ruby_bin_folder/x86/shared/Microsoft.NETCore.App/5.0.0/Chef.Powershell.Core.dll +0 -0
- data/distro/ruby_bin_folder/x86/shared/Microsoft.NETCore.App/5.0.0/Chef.Powershell.Core.pdb +0 -0
- data/distro/ruby_bin_folder/x86/vccorlib140.dll +0 -0
- data/distro/ruby_bin_folder/x86/vcruntime140.dll +0 -0
- data/lib/chef/application/base.rb +1 -1
- data/lib/chef/application/exit_code.rb +7 -21
- data/lib/chef/chef_fs/file_system/chef_server/cookbook_file.rb +1 -1
- data/lib/chef/chef_fs/file_system/repository/base_file.rb +1 -1
- data/lib/chef/chef_fs/file_system/repository/file_system_entry.rb +1 -1
- data/lib/chef/compliance/default_attributes.rb +12 -2
- data/lib/chef/compliance/input_collection.rb +1 -1
- data/lib/chef/compliance/runner.rb +51 -5
- data/lib/chef/compliance/waiver_collection.rb +1 -1
- data/lib/chef/cookbook/syntax_check.rb +1 -1
- data/lib/chef/cookbook_uploader.rb +1 -1
- data/lib/chef/cookbook_version.rb +1 -1
- data/lib/chef/mixin/powershell_exec.rb +6 -5
- data/lib/chef/mixin/why_run.rb +8 -2
- data/lib/chef/powershell.rb +8 -6
- data/lib/chef/provider/cron.rb +2 -2
- data/lib/chef/provider/directory.rb +2 -2
- data/lib/chef/provider/ifconfig.rb +5 -5
- data/lib/chef/provider/mount/linux.rb +16 -2
- data/lib/chef/provider/mount/mount.rb +1 -1
- data/lib/chef/provider/package/dnf.rb +1 -1
- data/lib/chef/provider/package/powershell.rb +13 -10
- data/lib/chef/provider/package/yum/python_helper.rb +81 -25
- data/lib/chef/provider/package/yum.rb +39 -12
- data/lib/chef/provider/package/zypper.rb +2 -0
- data/lib/chef/provider/package.rb +63 -28
- data/lib/chef/provider/user/mac.rb +3 -3
- data/lib/chef/provider.rb +5 -2
- data/lib/chef/providers.rb +0 -1
- data/lib/chef/pwsh.rb +3 -2
- data/lib/chef/resource/apt_package.rb +2 -2
- data/lib/chef/resource/chef_client_config.rb +21 -1
- data/lib/chef/resource/chef_client_launchd.rb +1 -1
- data/lib/chef/resource/chocolatey_package.rb +3 -3
- data/lib/chef/resource/cron/cron.rb +75 -1
- data/lib/chef/resource/cron/cron_d.rb +2 -1
- data/lib/chef/resource/dnf_package.rb +4 -6
- data/lib/chef/resource/dpkg_package.rb +5 -0
- data/lib/chef/resource/execute.rb +1 -4
- data/lib/chef/resource/habitat/habitat_sup.rb +1 -1
- data/lib/chef/resource/habitat/habitat_sup_windows.rb +1 -1
- data/lib/chef/resource/homebrew_tap.rb +1 -5
- data/lib/chef/resource/inspec_waiver_file_entry.rb +1 -1
- data/lib/chef/resource/launchd.rb +2 -5
- data/lib/chef/resource/lwrp_base.rb +1 -1
- data/lib/chef/resource/macos_userdefaults.rb +5 -7
- data/lib/chef/resource/powershell_package_source.rb +8 -8
- data/lib/chef/resource/remote_file.rb +1 -1
- data/lib/chef/resource/rhsm_register.rb +31 -0
- data/lib/chef/resource/support/client.erb +7 -0
- data/lib/chef/resource/windows_feature_powershell.rb +8 -9
- data/lib/chef/resource/windows_task.rb +25 -10
- data/lib/chef/resource.rb +3 -3
- data/lib/chef/resource_reporter.rb +1 -1
- data/lib/chef/run_lock.rb +1 -1
- data/lib/chef/secret_fetcher/azure_key_vault.rb +4 -2
- data/lib/chef/secret_fetcher/hashi_vault.rb +37 -3
- data/lib/chef/util/dsc/configuration_generator.rb +1 -1
- data/lib/chef/version.rb +1 -1
- data/spec/functional/resource/cookbook_file_spec.rb +1 -1
- data/spec/functional/resource/dnf_package_spec.rb +138 -124
- data/spec/functional/resource/dpkg_package_spec.rb +16 -0
- data/spec/functional/resource/dsc_script_spec.rb +2 -2
- data/spec/functional/resource/macos_userdefaults_spec.rb +20 -0
- data/spec/functional/resource/template_spec.rb +1 -1
- data/spec/functional/resource/yum_package_spec.rb +789 -129
- data/spec/functional/resource/zypper_package_spec.rb +7 -0
- data/spec/integration/client/client_spec.rb +32 -1
- data/spec/spec_helper.rb +3 -3
- data/spec/support/platform_helpers.rb +1 -1
- data/spec/support/ruby_installer.rb +1 -1
- data/spec/support/shared/functional/file_resource.rb +2 -2
- data/spec/support/shared/functional/http.rb +9 -9
- data/spec/support/shared/unit/provider/useradd_based_user_provider.rb +1 -1
- data/spec/unit/application/base_spec.rb +40 -0
- data/spec/unit/compliance/runner_spec.rb +62 -1
- data/spec/unit/dsl/registry_helper_spec.rb +6 -6
- data/spec/unit/file_access_control_spec.rb +1 -1
- data/spec/unit/guard_interpreter/resource_guard_interpreter_spec.rb +1 -1
- data/spec/unit/lwrp_spec.rb +2 -2
- data/spec/unit/mixin/why_run_spec.rb +53 -0
- data/spec/unit/provider/dsc_script_spec.rb +8 -8
- data/spec/unit/provider/group/groupadd_spec.rb +1 -0
- data/spec/unit/provider/group/usermod_spec.rb +4 -4
- data/spec/unit/provider/ifconfig/aix_spec.rb +14 -14
- data/spec/unit/provider/ifconfig/debian_spec.rb +1 -1
- data/spec/unit/provider/ifconfig/redhat_spec.rb +1 -1
- data/spec/unit/provider/ifconfig_spec.rb +5 -3
- data/spec/unit/provider/mount/linux_spec.rb +16 -3
- data/spec/unit/provider/package/bff_spec.rb +1 -0
- data/spec/unit/provider/package/powershell_spec.rb +114 -114
- data/spec/unit/provider/package/rubygems_spec.rb +3 -0
- data/spec/unit/provider/package/solaris_spec.rb +1 -0
- data/spec/unit/provider/remote_file/cache_control_data_spec.rb +3 -3
- data/spec/unit/provider/service/arch_service_spec.rb +2 -2
- data/spec/unit/provider/service/debian_service_spec.rb +1 -0
- data/spec/unit/provider/service/gentoo_service_spec.rb +3 -2
- data/spec/unit/provider/service/macosx_spec.rb +1 -0
- data/spec/unit/provider/service/redhat_spec.rb +4 -1
- data/spec/unit/provider/service/simple_service_spec.rb +6 -4
- data/spec/unit/provider/service/upstart_service_spec.rb +3 -3
- data/spec/unit/provider/user/solaris_spec.rb +1 -1
- data/spec/unit/provider/user_spec.rb +2 -0
- data/spec/unit/resource/conditional_spec.rb +4 -4
- data/spec/unit/resource/dpkg_package_spec.rb +12 -0
- data/spec/unit/resource/rhsm_register_spec.rb +42 -0
- data/spec/unit/resource_spec.rb +2 -2
- data/spec/unit/secret_fetcher/hashi_vault_spec.rb +46 -0
- metadata +10 -10
- data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/mscordaccore_amd64_amd64_5.0.20.51904.dll +0 -0
- data/lib/chef/provider/group/suse.rb +0 -82
- data/spec/unit/provider/group/suse_spec.rb +0 -90
@@ -187,6 +187,13 @@ describe Chef::Resource::ZypperPackage, :requires_root, :suse_only do
|
|
187
187
|
expect(zypper_package.updated_by_last_action?).to be true
|
188
188
|
expect(shell_out("rpm -q --queryformat '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' chef_rpm").stdout.chomp).to match("^package chef_rpm is not installed$")
|
189
189
|
end
|
190
|
+
|
191
|
+
it "is idempotent when a package isn't installed" do
|
192
|
+
FileUtils.rm_f "/etc/zypp/repos.d/chef-zypp-localtesting.repo"
|
193
|
+
zypper_package.run_action(:remove)
|
194
|
+
expect(zypper_package.updated_by_last_action?).to be false
|
195
|
+
expect(shell_out("rpm -q --queryformat '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' chef_rpm").stdout.chomp).to match("^package chef_rpm is not installed$")
|
196
|
+
end
|
190
197
|
end
|
191
198
|
end
|
192
199
|
|
@@ -22,7 +22,7 @@ describe "chef-client" do
|
|
22
22
|
# just a normal file
|
23
23
|
# (expected_content should be uncompressed)
|
24
24
|
@api.get("/recipes.tgz", 200) do
|
25
|
-
File.
|
25
|
+
File.binread(recipes_filename)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -48,6 +48,37 @@ describe "chef-client" do
|
|
48
48
|
let(:chef_client) { "bundle exec #{ChefUtils::Dist::Infra::CLIENT} --minimal-ohai" }
|
49
49
|
let(:chef_solo) { "bundle exec #{ChefUtils::Dist::Solo::EXEC} --legacy-mode --minimal-ohai" }
|
50
50
|
|
51
|
+
context "when validation.pem in current Directory" do
|
52
|
+
let(:validation_path) { "" }
|
53
|
+
|
54
|
+
before do
|
55
|
+
tempfile = Tempfile.new(validation_path)
|
56
|
+
tempfile.write "string"
|
57
|
+
tempfile.close
|
58
|
+
@path = tempfile.path
|
59
|
+
Chef::Config.validation_key = @path
|
60
|
+
|
61
|
+
file "config/client.rb", <<~EOM
|
62
|
+
local_mode true
|
63
|
+
cookbook_path "#{path_to("cookbooks")}"
|
64
|
+
EOM
|
65
|
+
end
|
66
|
+
|
67
|
+
it "should find validation.pem successfully in current dir" do
|
68
|
+
validation_path = "validation.pem"
|
69
|
+
shell_out!("#{chef_client} -c \"#{path_to("config/client.rb")}\" -K #{@path} ", cwd: chef_dir)
|
70
|
+
end
|
71
|
+
|
72
|
+
it "should find validation.pem successfully in current dir" do
|
73
|
+
validation_path = "/tmp/validation.pem"
|
74
|
+
shell_out!("#{chef_client} -c \"#{path_to("config/client.rb")}\" -K #{@path} ", cwd: chef_dir)
|
75
|
+
end
|
76
|
+
|
77
|
+
it "should find validation.pem successfully in default directory" do
|
78
|
+
shell_out!("#{chef_client} -c \"#{path_to("config/client.rb")}\" ", cwd: chef_dir)
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
51
82
|
when_the_repository "has a cookbook with a no-op recipe" do
|
52
83
|
before { file "cookbooks/x/recipes/default.rb", "" }
|
53
84
|
|
data/spec/spec_helper.rb
CHANGED
@@ -78,9 +78,9 @@ require "spec/support/recipe_dsl_helper"
|
|
78
78
|
# Excludes support/platforms by default
|
79
79
|
# Do not change the gsub.
|
80
80
|
Dir["spec/support/**/*.rb"]
|
81
|
-
.
|
82
|
-
.
|
83
|
-
.
|
81
|
+
.grep_v(%r{^spec/support/platforms})
|
82
|
+
.grep_v(%r{^spec/support/pedant})
|
83
|
+
.grep_v(%r{^spec/support/shared/integration/knife_support})
|
84
84
|
.map { |f| f.gsub(/.rb$/, "") }
|
85
85
|
.map { |f| f.gsub(%r{spec/}, "") }
|
86
86
|
.each { |f| require f }
|
@@ -48,4 +48,4 @@ rescue LoadError
|
|
48
48
|
$stderr.puts "Failed to load ruby_installer. Assuming Ruby Installer is not being used."
|
49
49
|
end
|
50
50
|
|
51
|
-
add_libarchive_dll_directory if RUBY_PLATFORM
|
51
|
+
add_libarchive_dll_directory if RUBY_PLATFORM.match?(/mswin|mingw32|windows/)
|
@@ -157,7 +157,7 @@ shared_examples_for "a file with the wrong content" do
|
|
157
157
|
|
158
158
|
context "when running :create action" do
|
159
159
|
let(:provider) { resource.provider_for_action(:create) }
|
160
|
-
let(:reporter_messages) { provider.instance_variable_get(
|
160
|
+
let(:reporter_messages) { provider.instance_variable_get(:@converge_actions).actions[0][0] }
|
161
161
|
|
162
162
|
before do
|
163
163
|
provider.run_action
|
@@ -391,7 +391,7 @@ shared_examples_for "a configured file resource" do
|
|
391
391
|
end
|
392
392
|
|
393
393
|
def binread(file)
|
394
|
-
content = File.
|
394
|
+
content = File.binread(file)
|
395
395
|
content.force_encoding(Encoding::BINARY) if "".respond_to?(:force_encoding)
|
396
396
|
content
|
397
397
|
end
|
@@ -30,7 +30,7 @@ module ChefHTTPShared
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def binread(file)
|
33
|
-
content = File.
|
33
|
+
content = File.binread(file)
|
34
34
|
content.force_encoding(Encoding::BINARY) if "".respond_to?(:force_encoding)
|
35
35
|
content
|
36
36
|
end
|
@@ -51,19 +51,19 @@ module ChefHTTPShared
|
|
51
51
|
# just a normal file
|
52
52
|
# (expected_content should be uncompressed)
|
53
53
|
@api.get("/nyan_cat.png", 200) do
|
54
|
-
File.
|
54
|
+
File.binread(nyan_uncompressed_filename)
|
55
55
|
end
|
56
56
|
|
57
57
|
# this ends in .gz, we do not uncompress it and drop it on the filesystem as a .gz file (the internet often lies)
|
58
58
|
# (expected_content should be compressed)
|
59
59
|
@api.get("/nyan_cat.png.gz", 200, nil, { "Content-Type" => "application/gzip", "Content-Encoding" => "gzip" } ) do
|
60
|
-
File.
|
60
|
+
File.binread(nyan_compressed_filename)
|
61
61
|
end
|
62
62
|
|
63
63
|
# this is an uncompressed file that was compressed by some mod_gzip-ish webserver thingy, so we will expand it
|
64
64
|
# (expected_content should be uncompressed)
|
65
65
|
@api.get("/nyan_cat_compressed.png", 200, nil, { "Content-Type" => "application/gzip", "Content-Encoding" => "gzip" } ) do
|
66
|
-
File.
|
66
|
+
File.binread(nyan_compressed_filename)
|
67
67
|
end
|
68
68
|
|
69
69
|
#
|
@@ -75,7 +75,7 @@ module ChefHTTPShared
|
|
75
75
|
{
|
76
76
|
"Content-Length" => nyan_uncompressed_size.to_s,
|
77
77
|
}) do
|
78
|
-
File.
|
78
|
+
File.binread(nyan_uncompressed_filename)
|
79
79
|
end
|
80
80
|
|
81
81
|
# (expected_content should be uncompressed)
|
@@ -85,7 +85,7 @@ module ChefHTTPShared
|
|
85
85
|
"Content-Type" => "application/gzip",
|
86
86
|
"Content-Encoding" => "gzip",
|
87
87
|
}) do
|
88
|
-
File.
|
88
|
+
File.binread(nyan_compressed_filename)
|
89
89
|
end
|
90
90
|
|
91
91
|
#
|
@@ -97,7 +97,7 @@ module ChefHTTPShared
|
|
97
97
|
{
|
98
98
|
"Content-Length" => (nyan_uncompressed_size + 1).to_s,
|
99
99
|
}) do
|
100
|
-
File.
|
100
|
+
File.binread(nyan_uncompressed_filename)
|
101
101
|
end
|
102
102
|
|
103
103
|
# (expected_content should be uncompressed)
|
@@ -107,7 +107,7 @@ module ChefHTTPShared
|
|
107
107
|
"Content-Type" => "application/gzip",
|
108
108
|
"Content-Encoding" => "gzip",
|
109
109
|
}) do
|
110
|
-
File.
|
110
|
+
File.binread(nyan_compressed_filename)
|
111
111
|
end
|
112
112
|
|
113
113
|
#
|
@@ -120,7 +120,7 @@ module ChefHTTPShared
|
|
120
120
|
"Content-Length" => (nyan_uncompressed_size + 1).to_s,
|
121
121
|
"Transfer-Encoding" => "anything",
|
122
122
|
}) do
|
123
|
-
File.
|
123
|
+
File.binread(nyan_uncompressed_filename)
|
124
124
|
end
|
125
125
|
|
126
126
|
#
|
@@ -169,7 +169,7 @@ shared_examples_for "a useradd-based user provider" do |supported_useradd_option
|
|
169
169
|
before do
|
170
170
|
provider.new_resource.system true
|
171
171
|
# there is no public API to set attribute's value to nil
|
172
|
-
provider.new_resource.instance_variable_set(
|
172
|
+
provider.new_resource.instance_variable_set(:@home, nil)
|
173
173
|
end
|
174
174
|
|
175
175
|
it "should not include -m or -d in the command options" do
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe Chef::Application::Base, "setup_application" do
|
4
|
+
let(:validation_path) { "" }
|
5
|
+
|
6
|
+
context "when validation key is supplied" do
|
7
|
+
before do
|
8
|
+
@app = Chef::Application::Base.new
|
9
|
+
tempfile = Tempfile.new(validation_path)
|
10
|
+
tempfile.write "string"
|
11
|
+
tempfile.close
|
12
|
+
@path = tempfile.path
|
13
|
+
Chef::Config.validation_key = @path
|
14
|
+
end
|
15
|
+
|
16
|
+
context "when key is in current directory" do
|
17
|
+
it "should find with full path of validation_key" do
|
18
|
+
validation_path = "validation.pem"
|
19
|
+
expect(Chef::Config.validation_key).to eql(@path)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
context "when path is given" do
|
24
|
+
validation_path = "/tmp/validation.pem"
|
25
|
+
it "should find validation_key" do
|
26
|
+
expect(Chef::Config.validation_key).to eql(@path)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
context "when validation key is not supplied" do
|
32
|
+
it "should return default path for validation_key" do
|
33
|
+
if windows?
|
34
|
+
expect(Chef::Config.validation_key).to eql("C:\\chef\\validation.pem")
|
35
|
+
else
|
36
|
+
expect(Chef::Config.validation_key).to eql("/etc/chef/validation.pem")
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require "spec_helper"
|
2
|
+
require "tmpdir"
|
2
3
|
|
3
4
|
describe Chef::Compliance::Runner do
|
4
5
|
let(:logger) { double(:logger).as_null_object }
|
@@ -216,6 +217,7 @@ describe Chef::Compliance::Runner do
|
|
216
217
|
node.normal["audit"]["reporter"] = [ "chef-automate" ]
|
217
218
|
reporter_double = double("reporter", validate_config!: nil)
|
218
219
|
expect(runner).to receive(:reporter).with("chef-automate").and_return(reporter_double)
|
220
|
+
expect(runner).to receive(:reporter).with("cli").and_return(reporter_double)
|
219
221
|
runner.load_and_validate!
|
220
222
|
end
|
221
223
|
|
@@ -278,8 +280,67 @@ describe Chef::Compliance::Runner do
|
|
278
280
|
inputs = runner.inspec_opts[:inputs]
|
279
281
|
|
280
282
|
expect(inputs["tacos"]).to eq("lunch")
|
281
|
-
expect(inputs["chef_node"]["audit"]["reporter"]).to eq(
|
283
|
+
expect(inputs["chef_node"]["audit"]["reporter"]).to eq(nil)
|
282
284
|
expect(inputs["chef_node"]["chef_environment"]).to eq("_default")
|
283
285
|
end
|
284
286
|
end
|
287
|
+
|
288
|
+
describe "interval running" do
|
289
|
+
let(:tempdir) { Dir.mktmpdir("chef-compliance-tests") }
|
290
|
+
|
291
|
+
before do
|
292
|
+
allow(runner).to receive(:report_timing_file).and_return("#{tempdir}/report_timing.json")
|
293
|
+
end
|
294
|
+
|
295
|
+
it "is disabled by default" do
|
296
|
+
expect(runner.node["audit"]["interval"]["enabled"]).to be false
|
297
|
+
end
|
298
|
+
|
299
|
+
it "defaults to 24 hours / 1440 minutes" do
|
300
|
+
expect(runner.node["audit"]["interval"]["time"]).to be 1440
|
301
|
+
end
|
302
|
+
|
303
|
+
it "runs when the timing file does not exist" do
|
304
|
+
expect(runner).to receive(:report)
|
305
|
+
runner.report_with_interval
|
306
|
+
end
|
307
|
+
|
308
|
+
it "runs when the timing file does not exist and intervals are enabled" do
|
309
|
+
node.normal["audit"]["interval"]["enabled"] = true
|
310
|
+
expect(runner).to receive(:report)
|
311
|
+
runner.report_with_interval
|
312
|
+
end
|
313
|
+
|
314
|
+
it "runs when the timing file exists and has a recent timestamp" do
|
315
|
+
FileUtils.touch runner.report_timing_file
|
316
|
+
expect(runner).to receive(:report)
|
317
|
+
runner.report_with_interval
|
318
|
+
end
|
319
|
+
|
320
|
+
it "does not runs when the timing file exists and has a recent timestamp and intervals are enabled" do
|
321
|
+
node.normal["audit"]["interval"]["enabled"] = true
|
322
|
+
FileUtils.touch runner.report_timing_file
|
323
|
+
expect(runner).not_to receive(:report)
|
324
|
+
runner.report_with_interval
|
325
|
+
end
|
326
|
+
|
327
|
+
it "does not runs when the timing file exists and has a recent timestamp and intervals are enabled" do
|
328
|
+
node.normal["audit"]["interval"]["enabled"] = true
|
329
|
+
FileUtils.touch runner.report_timing_file
|
330
|
+
ten_minutes_ago = Time.now - 600
|
331
|
+
File.utime ten_minutes_ago, ten_minutes_ago, runner.report_timing_file
|
332
|
+
expect(runner).not_to receive(:report)
|
333
|
+
runner.report_with_interval
|
334
|
+
end
|
335
|
+
|
336
|
+
it "runs when the timing file exists and has a recent timestamp and intervals are enabled and the time is short" do
|
337
|
+
node.normal["audit"]["interval"]["enabled"] = true
|
338
|
+
node.normal["audit"]["interval"]["time"] = 9
|
339
|
+
FileUtils.touch runner.report_timing_file
|
340
|
+
ten_minutes_ago = Time.now - 600
|
341
|
+
File.utime ten_minutes_ago, ten_minutes_ago, runner.report_timing_file
|
342
|
+
expect(runner).to receive(:report)
|
343
|
+
runner.report_with_interval
|
344
|
+
end
|
345
|
+
end
|
285
346
|
end
|
@@ -31,22 +31,22 @@ describe Chef::Resource::RegistryKey do
|
|
31
31
|
|
32
32
|
context "tests registry dsl" do
|
33
33
|
it "resource can access registry_helper method registry_key_exists" do
|
34
|
-
expect(@resource.respond_to?(
|
34
|
+
expect(@resource.respond_to?(:registry_key_exists?)).to eq(true)
|
35
35
|
end
|
36
36
|
it "resource can access registry_helper method registry_get_values" do
|
37
|
-
expect(@resource.respond_to?(
|
37
|
+
expect(@resource.respond_to?(:registry_get_values)).to eq(true)
|
38
38
|
end
|
39
39
|
it "resource can access registry_helper method registry_has_subkey" do
|
40
|
-
expect(@resource.respond_to?(
|
40
|
+
expect(@resource.respond_to?(:registry_has_subkeys?)).to eq(true)
|
41
41
|
end
|
42
42
|
it "resource can access registry_helper method registry_get_subkeys" do
|
43
|
-
expect(@resource.respond_to?(
|
43
|
+
expect(@resource.respond_to?(:registry_get_subkeys)).to eq(true)
|
44
44
|
end
|
45
45
|
it "resource can access registry_helper method registry_value_exists" do
|
46
|
-
expect(@resource.respond_to?(
|
46
|
+
expect(@resource.respond_to?(:registry_value_exists?)).to eq(true)
|
47
47
|
end
|
48
48
|
it "resource can access registry_helper method data_value_exists" do
|
49
|
-
expect(@resource.respond_to?(
|
49
|
+
expect(@resource.respond_to?(:registry_data_exists?)).to eq(true)
|
50
50
|
end
|
51
51
|
end
|
52
52
|
end
|
@@ -35,7 +35,7 @@ describe Chef::FileAccessControl do
|
|
35
35
|
@events = Chef::EventDispatch::Dispatcher.new
|
36
36
|
@run_context = Chef::RunContext.new(@node, {}, @events)
|
37
37
|
@current_resource = Chef::Resource::File.new("/tmp/different_file.txt")
|
38
|
-
@provider_requirements = Chef::Provider::ResourceRequirements.new(@resource, @run_context)
|
38
|
+
@provider_requirements = Chef::Provider::ResourceRequirements.new(@resource, @run_context, :create)
|
39
39
|
@provider = double("File provider", requirements: @provider_requirements, manage_symlink_access?: false)
|
40
40
|
|
41
41
|
@fac = Chef::FileAccessControl.new(@current_resource, @resource, @provider)
|
@@ -94,7 +94,7 @@ describe Chef::GuardInterpreter::ResourceGuardInterpreter do
|
|
94
94
|
|
95
95
|
describe "script command opts switch" do
|
96
96
|
let(:guard_interpreter) { Chef::GuardInterpreter::ResourceGuardInterpreter.new(parent_resource, "exit 0", {}) }
|
97
|
-
let(:resource) { guard_interpreter.instance_variable_get(
|
97
|
+
let(:resource) { guard_interpreter.instance_variable_get(:@resource) }
|
98
98
|
|
99
99
|
context "resource is a Script" do
|
100
100
|
context "and guard_interpreter is a :script" do
|
data/spec/unit/lwrp_spec.rb
CHANGED
@@ -54,7 +54,7 @@ describe "LWRP" do
|
|
54
54
|
end
|
55
55
|
|
56
56
|
it "should not skip loading a resource when there's a top level symbol of the same name" do
|
57
|
-
Object.const_set(
|
57
|
+
Object.const_set(:LwrpFoo, Class.new)
|
58
58
|
file = File.expand_path( "lwrp/resources/foo.rb", CHEF_SPEC_DATA)
|
59
59
|
expect(Chef::Log).not_to receive(:info).with(/Skipping/)
|
60
60
|
expect(Chef::Log).not_to receive(:trace).with(/anymore/)
|
@@ -63,7 +63,7 @@ describe "LWRP" do
|
|
63
63
|
end
|
64
64
|
|
65
65
|
it "should not skip loading a provider when there's a top level symbol of the same name" do
|
66
|
-
Object.const_set(
|
66
|
+
Object.const_set(:LwrpBuckPasser, Class.new)
|
67
67
|
file = File.expand_path( "lwrp/providers/buck_passer.rb", CHEF_SPEC_DATA)
|
68
68
|
expect(Chef::Log).not_to receive(:info).with(/Skipping/)
|
69
69
|
expect(Chef::Log).not_to receive(:trace).with(/anymore/)
|
@@ -0,0 +1,53 @@
|
|
1
|
+
#
|
2
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
3
|
+
# License:: Apache License, Version 2.0
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
#
|
17
|
+
|
18
|
+
require "spec_helper"
|
19
|
+
|
20
|
+
describe Chef::Mixin::WhyRun::ResourceRequirements do
|
21
|
+
class TestResource < Chef::Resource
|
22
|
+
action_class do
|
23
|
+
def define_resource_requirements
|
24
|
+
requirements.assert(:boom) do |a|
|
25
|
+
a.assertion { raise "boom1" }
|
26
|
+
a.failure_message("#{raise "boom2"}")
|
27
|
+
a.whyrun("#{raise "boom3"}")
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
action :boom do
|
33
|
+
# nothing
|
34
|
+
end
|
35
|
+
|
36
|
+
action :noboom do
|
37
|
+
# nothing
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
let(:node) { Chef::Node.new }
|
42
|
+
let(:events) { Chef::EventDispatch::Dispatcher.new }
|
43
|
+
let(:run_context) { Chef::RunContext.new(node, {}, events) }
|
44
|
+
let(:resource) { TestResource.new("name", run_context) }
|
45
|
+
|
46
|
+
it "raises an exception for an action where the assertions raise exceptions" do
|
47
|
+
expect { resource.run_action(:boom) }.to raise_error(StandardError, /boom2/)
|
48
|
+
end
|
49
|
+
|
50
|
+
it "does not raise an exception for an action which has no assertions" do
|
51
|
+
resource.run_action(:noboom)
|
52
|
+
end
|
53
|
+
end
|
@@ -39,21 +39,21 @@ describe Chef::Provider::DscScript do
|
|
39
39
|
it "describes the resource as converged if there were 0 DSC resources" do
|
40
40
|
allow(provider).to receive(:run_configuration).with(:test).and_return([])
|
41
41
|
provider.load_current_resource
|
42
|
-
expect(provider.instance_variable_get(
|
42
|
+
expect(provider.instance_variable_get(:@resource_converged)).to be_truthy
|
43
43
|
end
|
44
44
|
|
45
45
|
it "describes the resource as not converged if there is 1 DSC resources that is converged" do
|
46
46
|
dsc_resource_info = Chef::Util::DSC::ResourceInfo.new("resource", false, ["nothing will change something"])
|
47
47
|
allow(provider).to receive(:run_configuration).with(:test).and_return([dsc_resource_info])
|
48
48
|
provider.load_current_resource
|
49
|
-
expect(provider.instance_variable_get(
|
49
|
+
expect(provider.instance_variable_get(:@resource_converged)).to be_truthy
|
50
50
|
end
|
51
51
|
|
52
52
|
it "describes the resource as not converged if there is 1 DSC resources that is not converged" do
|
53
53
|
dsc_resource_info = Chef::Util::DSC::ResourceInfo.new("resource", true, ["will change something"])
|
54
54
|
allow(provider).to receive(:run_configuration).with(:test).and_return([dsc_resource_info])
|
55
55
|
provider.load_current_resource
|
56
|
-
expect(provider.instance_variable_get(
|
56
|
+
expect(provider.instance_variable_get(:@resource_converged)).to be_falsey
|
57
57
|
end
|
58
58
|
|
59
59
|
it "describes the resource as not converged if there are any DSC resources that are not converged" do
|
@@ -62,7 +62,7 @@ describe Chef::Provider::DscScript do
|
|
62
62
|
|
63
63
|
allow(provider).to receive(:run_configuration).with(:test).and_return([dsc_resource_info1, dsc_resource_info2])
|
64
64
|
provider.load_current_resource
|
65
|
-
expect(provider.instance_variable_get(
|
65
|
+
expect(provider.instance_variable_get(:@resource_converged)).to be_falsey
|
66
66
|
end
|
67
67
|
|
68
68
|
it "describes the resource as converged if all DSC resources that are converged" do
|
@@ -71,7 +71,7 @@ describe Chef::Provider::DscScript do
|
|
71
71
|
|
72
72
|
allow(provider).to receive(:run_configuration).with(:test).and_return([dsc_resource_info1, dsc_resource_info2])
|
73
73
|
provider.load_current_resource
|
74
|
-
expect(provider.instance_variable_get(
|
74
|
+
expect(provider.instance_variable_get(:@resource_converged)).to be_truthy
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
@@ -126,19 +126,19 @@ describe Chef::Provider::DscScript do
|
|
126
126
|
describe "#generate_description" do
|
127
127
|
it "removes the resource name from the beginning of any log line from the LCM" do
|
128
128
|
dsc_resource_info = Chef::Util::DSC::ResourceInfo.new("resourcename", true, ["resourcename doing something", "lastline"])
|
129
|
-
provider.instance_variable_set(
|
129
|
+
provider.instance_variable_set(:@dsc_resources_info, [dsc_resource_info])
|
130
130
|
expect(provider.send(:generate_description)[1]).to match(/converge DSC resource resourcename by doing something/)
|
131
131
|
end
|
132
132
|
|
133
133
|
it "ignores the last line" do
|
134
134
|
dsc_resource_info = Chef::Util::DSC::ResourceInfo.new("resourcename", true, ["resourcename doing something", "lastline"])
|
135
|
-
provider.instance_variable_set(
|
135
|
+
provider.instance_variable_set(:@dsc_resources_info, [dsc_resource_info])
|
136
136
|
expect(provider.send(:generate_description)[1]).not_to match(/lastline/)
|
137
137
|
end
|
138
138
|
|
139
139
|
it "reports a dsc resource has not been changed if the LCM reported no change was required" do
|
140
140
|
dsc_resource_info = Chef::Util::DSC::ResourceInfo.new("resourcename", false, ["resourcename does nothing", "lastline"])
|
141
|
-
provider.instance_variable_set(
|
141
|
+
provider.instance_variable_set(:@dsc_resources_info, [dsc_resource_info])
|
142
142
|
expect(provider.send(:generate_description)[1]).to match(/converge DSC resource resourcename by doing nothing/)
|
143
143
|
end
|
144
144
|
end
|
@@ -58,18 +58,18 @@ describe Chef::Provider::Group::Usermod do
|
|
58
58
|
end
|
59
59
|
|
60
60
|
it "should raise an error when setting the entire group directly" do
|
61
|
+
@provider.action = :modify
|
61
62
|
@provider.define_resource_requirements
|
62
63
|
@provider.load_current_resource
|
63
|
-
@provider.instance_variable_set(
|
64
|
-
@provider.action = :modify
|
64
|
+
@provider.instance_variable_set(:@group_exists, true)
|
65
65
|
expect { @provider.run_action(@provider.process_resource_requirements) }.to raise_error(Chef::Exceptions::Group, "setting group members directly is not supported by #{@provider}, must set append true in group")
|
66
66
|
end
|
67
67
|
|
68
68
|
it "should raise an error when excluded_members are set" do
|
69
|
+
@provider.action = :modify
|
69
70
|
@provider.define_resource_requirements
|
70
71
|
@provider.load_current_resource
|
71
|
-
@provider.instance_variable_set(
|
72
|
-
@provider.action = :modify
|
72
|
+
@provider.instance_variable_set(:@group_exists, true)
|
73
73
|
@new_resource.append(true)
|
74
74
|
@new_resource.excluded_members(["someone"])
|
75
75
|
expect { @provider.run_action(@provider.process_resource_requirements) }.to raise_error(Chef::Exceptions::Group, "excluded_members is not supported by #{@provider}")
|
@@ -68,8 +68,8 @@ describe Chef::Provider::Ifconfig::Aix do
|
|
68
68
|
it "should add an interface if it does not exist" do
|
69
69
|
@new_resource.device "en10"
|
70
70
|
allow(@provider).to receive(:load_current_resource) do
|
71
|
-
@provider.instance_variable_set(
|
72
|
-
@provider.instance_variable_set(
|
71
|
+
@provider.instance_variable_set(:@status, double("Status", exitstatus: 0))
|
72
|
+
@provider.instance_variable_set(:@current_resource, Chef::Resource::Ifconfig.new("10.0.0.1", @run_context))
|
73
73
|
end
|
74
74
|
command = "chdev -l #{@new_resource.device} -a netaddr=#{@new_resource.name}"
|
75
75
|
expect(@provider).to receive(:shell_out_compacted!).with(*command.split(" "))
|
@@ -82,8 +82,8 @@ describe Chef::Provider::Ifconfig::Aix do
|
|
82
82
|
@new_resource.device "en0"
|
83
83
|
@new_resource.metric "1"
|
84
84
|
allow(@provider).to receive(:load_current_resource) do
|
85
|
-
@provider.instance_variable_set(
|
86
|
-
@provider.instance_variable_set(
|
85
|
+
@provider.instance_variable_set(:@status, double("Status", exitstatus: 0))
|
86
|
+
@provider.instance_variable_set(:@current_resource, Chef::Resource::Ifconfig.new("10.0.0.1", @run_context))
|
87
87
|
end
|
88
88
|
|
89
89
|
expect { @provider.run_action(:add) }.to raise_error(Chef::Exceptions::Ifconfig, "interface metric property cannot be set for :add action")
|
@@ -94,8 +94,8 @@ describe Chef::Provider::Ifconfig::Aix do
|
|
94
94
|
it "should enable an interface if it does not exist" do
|
95
95
|
@new_resource.device "en10"
|
96
96
|
allow(@provider).to receive(:load_current_resource) do
|
97
|
-
@provider.instance_variable_set(
|
98
|
-
@provider.instance_variable_set(
|
97
|
+
@provider.instance_variable_set(:@status, double("Status", exitstatus: 0))
|
98
|
+
@provider.instance_variable_set(:@current_resource, Chef::Resource::Ifconfig.new("10.0.0.1", @run_context))
|
99
99
|
end
|
100
100
|
command = "ifconfig #{@new_resource.device} #{@new_resource.name}"
|
101
101
|
expect(@provider).to receive(:shell_out_compacted!).with(*command.split(" "))
|
@@ -110,8 +110,8 @@ describe Chef::Provider::Ifconfig::Aix do
|
|
110
110
|
it "should not disable an interface if it does not exist" do
|
111
111
|
@new_resource.device "en10"
|
112
112
|
allow(@provider).to receive(:load_current_resource) do
|
113
|
-
@provider.instance_variable_set(
|
114
|
-
@provider.instance_variable_set(
|
113
|
+
@provider.instance_variable_set(:@status, double("Status", exitstatus: 0))
|
114
|
+
@provider.instance_variable_set(:@current_resource, Chef::Resource::Ifconfig.new("10.0.0.1", @run_context))
|
115
115
|
end
|
116
116
|
|
117
117
|
expect(@provider).not_to receive(:shell_out_compacted!)
|
@@ -124,10 +124,10 @@ describe Chef::Provider::Ifconfig::Aix do
|
|
124
124
|
before do
|
125
125
|
@new_resource.device "en10"
|
126
126
|
allow(@provider).to receive(:load_current_resource) do
|
127
|
-
@provider.instance_variable_set(
|
127
|
+
@provider.instance_variable_set(:@status, double("Status", exitstatus: 0))
|
128
128
|
current_resource = Chef::Resource::Ifconfig.new("10.0.0.1", @run_context)
|
129
129
|
current_resource.device @new_resource.device
|
130
|
-
@provider.instance_variable_set(
|
130
|
+
@provider.instance_variable_set(:@current_resource, current_resource)
|
131
131
|
end
|
132
132
|
end
|
133
133
|
|
@@ -147,8 +147,8 @@ describe Chef::Provider::Ifconfig::Aix do
|
|
147
147
|
it "should not delete an interface if it does not exist" do
|
148
148
|
@new_resource.device "en10"
|
149
149
|
allow(@provider).to receive(:load_current_resource) do
|
150
|
-
@provider.instance_variable_set(
|
151
|
-
@provider.instance_variable_set(
|
150
|
+
@provider.instance_variable_set(:@status, double("Status", exitstatus: 0))
|
151
|
+
@provider.instance_variable_set(:@current_resource, Chef::Resource::Ifconfig.new("10.0.0.1", @run_context))
|
152
152
|
end
|
153
153
|
|
154
154
|
expect(@provider).not_to receive(:shell_out_compacted!)
|
@@ -161,10 +161,10 @@ describe Chef::Provider::Ifconfig::Aix do
|
|
161
161
|
before do
|
162
162
|
@new_resource.device "en10"
|
163
163
|
allow(@provider).to receive(:load_current_resource) do
|
164
|
-
@provider.instance_variable_set(
|
164
|
+
@provider.instance_variable_set(:@status, double("Status", exitstatus: 0))
|
165
165
|
current_resource = Chef::Resource::Ifconfig.new("10.0.0.1", @run_context)
|
166
166
|
current_resource.device @new_resource.device
|
167
|
-
@provider.instance_variable_set(
|
167
|
+
@provider.instance_variable_set(:@current_resource, current_resource)
|
168
168
|
end
|
169
169
|
end
|
170
170
|
|
@@ -42,7 +42,7 @@ describe Chef::Provider::Ifconfig::Debian do
|
|
42
42
|
let(:provider) do
|
43
43
|
status = double("Status", exitstatus: 0)
|
44
44
|
provider = Chef::Provider::Ifconfig::Debian.new(new_resource, run_context)
|
45
|
-
provider.instance_variable_set(
|
45
|
+
provider.instance_variable_set(:@status, status)
|
46
46
|
provider.current_resource = current_resource
|
47
47
|
allow(provider).to receive(:load_current_resource)
|
48
48
|
allow(provider).to receive(:shell_out!)
|
@@ -40,7 +40,7 @@ describe Chef::Provider::Ifconfig::Redhat do
|
|
40
40
|
@current_resource = Chef::Resource::Ifconfig.new("10.0.0.1", @run_context)
|
41
41
|
|
42
42
|
status = double("Status", exitstatus: 0)
|
43
|
-
@provider.instance_variable_set(
|
43
|
+
@provider.instance_variable_set(:@status, status)
|
44
44
|
@provider.current_resource = @current_resource
|
45
45
|
|
46
46
|
config_filename = "/etc/sysconfig/network-scripts/ifcfg-#{@new_resource.device}"
|