Jira (PUP-11459) Puppet::Util::Windows is undefined on non-Windows platforms
Title: Message Title Parker Leach updated an issue Puppet / PUP-11459 Puppet::Util::Windows is undefined on non-Windows platforms Change By: Parker Leach Labels: doc_reviewed docs_reviewed jira_escalated Add Comment This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.436205.1645159638000.2835.1647366420164%40Atlassian.JIRA.
Jira (PUP-11459) Puppet::Util::Windows is undefined on non-Windows platforms
Title: Message Title Parker Leach updated an issue Puppet / PUP-11459 Puppet::Util::Windows is undefined on non-Windows platforms Change By: Parker Leach Labels: doc_reviewed jira_escalated Add Comment This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.436205.1645159638000.1980.1647276780048%40Atlassian.JIRA.
Jira (PUP-11459) Puppet::Util::Windows is undefined on non-Windows platforms
Title: Message Title Josh Cooper updated an issue Puppet / PUP-11459 Puppet::Util::Windows is undefined on non-Windows platforms Change By: Josh Cooper Release Notes: Bug Fix Release Notes Summary: Fixes a bug that prevented pdk unit tests from working when trying to test a resource with a Windows provider, such as "service" resources. Add Comment This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.436205.1645159638000.32627.1646781960181%40Atlassian.JIRA.
Jira (PUP-11459) Puppet::Util::Windows is undefined on non-Windows platforms
Title: Message Title Josh Cooper assigned an issue to Unassigned Puppet / PUP-11459 Puppet::Util::Windows is undefined on non-Windows platforms Change By: Josh Cooper Assignee: Josh Cooper Add Comment This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.436205.1645159638000.27747.1646271060073%40Atlassian.JIRA.
Jira (PUP-11459) Puppet::Util::Windows is undefined on non-Windows platforms
Title: Message Title Nirupama Mantha updated an issue Puppet / PUP-11459 Puppet::Util::Windows is undefined on non-Windows platforms Change By: Nirupama Mantha Sprint: Phoenix 2022-03-16 Add Comment This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.436205.1645159638000.27251.1646240100039%40Atlassian.JIRA.
Jira (PUP-11459) Puppet::Util::Windows is undefined on non-Windows platforms
Title: Message Title Austin Boyd updated an issue Puppet / PUP-11459 Puppet::Util::Windows is undefined on non-Windows platforms Change By: Austin Boyd Labels: jira_escalated Add Comment This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.436205.1645159638000.24630.1645833780181%40Atlassian.JIRA.
Jira (PUP-11459) Puppet::Util::Windows is undefined on non-Windows platforms
Title: Message Title Austin Boyd updated an issue Puppet / PUP-11459 Puppet::Util::Windows is undefined on non-Windows platforms Change By: Austin Boyd Zendesk Ticket Count: 1 Zendesk Ticket IDs: 47102 Add Comment This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.436205.1645159638000.24629.1645833780119%40Atlassian.JIRA.
Jira (PUP-11459) Puppet::Util::Windows is undefined on non-Windows platforms
Title: Message Title Josh Cooper assigned an issue to Josh Cooper Puppet / PUP-11459 Puppet::Util::Windows is undefined on non-Windows platforms Change By: Josh Cooper Assignee: Josh Cooper Add Comment This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.436205.1645159638000.23121.1645667760042%40Atlassian.JIRA.
Jira (PUP-11459) Puppet::Util::Windows is undefined on non-Windows platforms
Title: Message Title Nirupama Mantha updated an issue Puppet / PUP-11459 Puppet::Util::Windows is undefined on non-Windows platforms Change By: Nirupama Mantha Story Points: 1 Add Comment This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.436205.1645159638000.21668.1645564200065%40Atlassian.JIRA.
Jira (PUP-11459) Puppet::Util::Windows is undefined on non-Windows platforms
Title: Message Title Josh Cooper updated an issue Puppet / PUP-11459 Puppet::Util::Windows is undefined on non-Windows platforms Change By: Josh Cooper The file {{lib/puppet/util/windows.rb}} defines a set of constants that should be available on all platforms, such as {{ { Puppet::Util::Windows}}, {{ { Puppet::Util::Windows::Service}} and {{Puppet::Util::Windows::Service::DEFAULT_TIMEOUT}}.It also requires Windows-specific code that is only safe to load on Windows, because the code tries to load native libraries, such as {{user32.dll}}.The problem is when puppet is running on a non-Windows platform, then {{lib/puppet/util/windows.rb}} is never loaded. As a result, trying to test a {{service}} resource using rspec-puppet fails when trying to reference the {{Puppet::Util::Windows}} constant. See PDK-1760 for steps to reproduce.A quicker reproduction is:{code}$ bundle exec ruby -e "require 'puppet'; puts Puppet::Util::Windows"Traceback (most recent call last):-e:1:in `': uninitialized constant Puppet::Util::Windows (NameError){code} Add Comment This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Jira (PUP-11459) Puppet::Util::Windows is undefined on non-Windows platforms
Title: Message Title Josh Cooper updated an issue Puppet / PUP-11459 Puppet::Util::Windows is undefined on non-Windows platforms Change By: Josh Cooper Fix Version/s: PUP 7.15.0 Fix Version/s: PUP 6.27.0 Add Comment This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.436205.1645159638000.19684.1645161660093%40Atlassian.JIRA.
Jira (PUP-11459) Puppet::Util::Windows is undefined on non-Windows platforms
Title: Message Title Josh Cooper updated an issue Puppet / PUP-11459 Puppet::Util::Windows is undefined on non-Windows platforms Change By: Josh Cooper Team: Phoenix Add Comment This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.436205.1645159638000.19683.1645161660048%40Atlassian.JIRA.
Jira (PUP-11459) Puppet::Util::Windows is undefined on non-Windows platforms
Title: Message Title Josh Cooper updated an issue Puppet / PUP-11459 Puppet::Util::Windows is undefined on non-Windows platforms Change By: Josh Cooper The file {{lib/puppet/util/windows.rb}} defines a set of constants that should be available on all platforms, such as {{{Puppet::Util::Windows}}, {{{Puppet::Util::Windows::Service}} and {{Puppet::Util::Windows::Service::DEFAULT_TIMEOUT}}.It also requires Windows-specific code that is only safe to load on Windows, because the code tries to load native libraries, such as {{user32.dll}}.The problem is when puppet is running on a non-Windows platform, then {{lib/puppet/util/windows.rb}} is never loaded. As a result, trying to test a {{service}} resource using rspec-puppet fails when trying to reference the {{Puppet::Util::Windows}} constant. See PDK-1760 for steps to reproduce.A quicker reproduction is:{code} bx $ bundle exec ruby -e "require 'puppet'; puts Puppet::Util::Windows"Traceback (most recent call last):-e:1:in `': uninitialized constant Puppet::Util::Windows (NameError){code} Add Comment This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Jira (PUP-11459) Puppet::Util::Windows is undefined on non-Windows platforms
Title: Message Title Josh Cooper created an issue Puppet / PUP-11459 Puppet::Util::Windows is undefined on non-Windows platforms Issue Type: Bug Assignee: Unassigned Created: 2022/02/17 8:47 PM Priority: Normal Reporter: Josh Cooper The file lib/puppet/util/windows.rb defines a set of constants that should be available on all platforms, such as {Puppet::Util::Windows, {Puppet::Util::Windows::Service and Puppet::Util::Windows::Service::DEFAULT_TIMEOUT. It also requires Windows-specific code that is only safe to load on Windows, because the code tries to load native libraries, such as user32.dll. The problem is when puppet is running on a non-Windows platform, then lib/puppet/util/windows.rb is never loaded. As a result, trying to test a service resource using rspec-puppet fails when trying to reference the Puppet::Util::Windows constant. See PDK-1760 for steps to reproduce. A quicker reproduction is: bx ruby -e "require 'puppet'; puts Puppet::Util::Windows" Traceback (most recent call last): -e:1:in `': uninitialized constant Puppet::Util::Windows (NameError)