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 7
7
require 'pathname'
8
8
require 'ostruct'
9
9
require 'puppet/util/platform'
10
+ require 'puppet/util/windows'
10
11
require 'puppet/util/symbolic_file_mode'
11
12
require 'puppet/file_system/uniquefile'
12
13
require 'securerandom'
@@ -22,8 +23,6 @@ module Util
22
23
require 'puppet/util/posix'
23
24
extend Puppet ::Util ::POSIX
24
25
25
- require 'puppet/util/windows/process' if Puppet ::Util ::Platform . windows?
26
-
27
26
extend Puppet ::Util ::SymbolicFileMode
28
27
29
28
def default_env
Original file line number Diff line number Diff line change @@ -70,8 +70,6 @@ def initialize(*args)
70
70
end
71
71
72
72
if Puppet ::Util ::Platform . windows?
73
- require 'puppet/util/windows'
74
-
75
73
class OpenSSL ::X509 ::Store
76
74
@puppet_certs_loaded = false
77
75
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