File tree Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 77require 'pathname'
88require 'ostruct'
99require 'puppet/util/platform'
10+ require 'puppet/util/windows'
1011require 'puppet/util/symbolic_file_mode'
1112require 'puppet/file_system/uniquefile'
1213require 'securerandom'
@@ -22,8 +23,6 @@ module Util
2223 require 'puppet/util/posix'
2324 extend Puppet ::Util ::POSIX
2425
25- require 'puppet/util/windows/process' if Puppet ::Util ::Platform . windows?
26-
2726 extend Puppet ::Util ::SymbolicFileMode
2827
2928 def default_env
Original file line number Diff line number Diff line change @@ -70,8 +70,6 @@ def initialize(*args)
7070end
7171
7272if Puppet ::Util ::Platform . windows?
73- require 'puppet/util/windows'
74-
7573 class OpenSSL ::X509 ::Store
7674 @puppet_certs_loaded = false
7775 alias __original_set_default_paths set_default_paths
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
3+ require 'spec_helper'
4+
5+ describe Puppet ::Util ::Windows do
6+ %w[
7+ ADSI
8+ ADSI::ADSIObject
9+ ADSI::User
10+ ADSI::UserProfile
11+ ADSI::Group
12+ EventLog
13+ File
14+ Process
15+ Registry
16+ Service
17+ SID
18+ ] . each do |name |
19+ it "defines Puppet::Util::Windows::#{ name } " do
20+ expect ( described_class . const_get ( name ) ) . to be
21+ end
22+ end
23+ end
You can’t perform that action at this time.
0 commit comments