Commit 36251a4
committed
(PUP-10640) make tests more reliable
the following tests have been updated
- spec/integration/util/windows/adsi_spec.rb:34
Was making the assumption that `Administrator` user
is present. Changed to `Guest` since `Administrator`
is not available in all setups.
- spec/unit/file_system_spec.rb:870
`Puppet::FileSystem.expand_path` expands relative
to the drive that Puppet is executed from. The
expect here was making the assumption that Puppet
tests are run form `SystemDrive` which is not always
the case. Updated the test to match that the expanded path
starts with a drive letter.
- spec/unit/provider/exec_spec.rb
ENV['PATH'] is not correctly handled by Ruby. Use
Pathname.cleanpath no normalize the path that is
used in the `exec` resource1 parent dd06db6 commit 36251a4
3 files changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
871 | 871 | | |
872 | 872 | | |
873 | 873 | | |
874 | | - | |
875 | | - | |
876 | | - | |
| 874 | + | |
877 | 875 | | |
878 | 876 | | |
879 | 877 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
0 commit comments