Ryan Davis
65c73b6422
Merge pull request #4390 from inspec/zenspider/windows-testing
...
Fix windows testing
2019-11-13 12:33:45 -08:00
Ryan Davis
5dab3e0bbf
Switch to test:parallel K=4 on windows.
...
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-12 14:51:56 -08:00
Ryan Davis
d431912790
Switched parallel worker env var from N to K. Fixed windows parallel runs.
...
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-12 14:51:56 -08:00
Ryan Davis
aa1d0283dd
Added test:parallel task.
...
This one is just round robin in sorted order (so slow functionals are first)
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-12 14:51:56 -08:00
Ryan Davis
865e0d43c0
Fixed a race condition in the tests on windows.
...
Second test would always fail, resumably because the GC kicks in and
the tempfile gets obliterated before the subprocess can read it.
Don't do tempfiles via let. Do them via ivars so they can persist.
2019-11-12 14:51:56 -08:00
Ryan Davis
efc51c44d9
Fixes to get inspec_exec_test.rb green on Windows.
2019-11-12 14:51:56 -08:00
Ryan Davis
f8ea33de8f
Added test command caching and refactored inspec helper to run_cmd.
...
Helps with some of the tests that want to run ruby directly.
Fixes #4416 .
2019-11-12 14:51:56 -08:00
Ryan Davis
bb7e69d145
Fixes for some of the inspec exec tests under Windows.
2019-11-12 14:51:56 -08:00
Ryan Davis
d829fa2d61
Changed FileProvider to try to encode UTF-8 and convert newlines.
...
For Windows compatibility.
2019-11-12 14:51:56 -08:00
Ryan Davis
4242937bea
Changed a bunch of profiles to use / instead of /tmp for Windows compat.
2019-11-12 14:51:56 -08:00
Ryan Davis
2eaebe510c
Fixed installer_test by testing subsets of the paths.
...
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-12 14:51:56 -08:00
Ryan Davis
d1f67c02d0
Get the license_tests passing
...
...mostly by skipping
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-12 14:51:56 -08:00
Ryan Davis
2a680058f4
Missing require?
...
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-12 14:51:56 -08:00
Ryan Davis
a27eef1d0b
Fixed env vars on functional plugin tests for windows.
...
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-12 14:51:56 -08:00
Ryan Davis
ead386df14
Fixed inspec_init_plugin_test.rb
...
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-12 14:51:56 -08:00
Ryan Davis
a598356e12
Strip down plugin helper and change windows prefix execution.
...
Powershell doesn't use "&&" and we have it all over the tests.
Changing to ";".
Also starting to unify the plugin helper w/ the functional helper
since it has a LOT of duplication.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-12 14:51:56 -08:00
Ryan Davis
e60dc84188
Cleaned up inspec artifact testing.
...
Removed redundant test/functional/inspec_artifact_test.rb
Cleaned up lib/plugins/inspec-artifact/test/functional/inspec_artifact_test.rb
Made an error on windows (install-profile fails) raise instead of just print.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-12 14:50:39 -08:00
Ryan Davis
c3fe1697bb
Fix the way we determine (and clean) the repo_path in functionals.
...
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-12 14:50:39 -08:00
Ryan Davis
ee327094fb
Strip all ANSI color codes from output in inspec_shell_test.rb
...
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-12 14:50:39 -08:00
Ryan Davis
b3b8336620
Get inspec_exec_test.rb passing on windows w/o skips.
...
+ Clean up lockfiles in profiles. (we shouldn't be creating these!)
+ Fix some exit code assertions based on platform.
+ Had to skip 2 tests (with timebombs) because this is rebased off of my performance branch which has 2 failures.
signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-12 14:50:39 -08:00
Ryan Davis
bfc8b357bf
Clean up testing in inspec exec by stripping ansi color codes from output.
...
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-12 14:50:39 -08:00
Ryan Davis
2cb5f26998
Rearrange a require in metadata.rb to break circularity is load.
...
For some reason this works fine in linux & osx but fails on windows
but only when some things are loaded in isolation. *shrug*
2019-11-12 14:50:39 -08:00
Chef Expeditor
fb163ad294
Bump version to 4.18.34 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-11-12 21:01:36 +00:00
Clinton Wolfe
1db2941a9e
Fix for invocation when calling npm under sudo ( #4548 )
...
Fix for invocation when calling npm under sudo
2019-11-12 16:01:07 -05:00
Chef Expeditor
d9339eab02
Bump version to 4.18.33 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-11-12 20:31:02 +00:00
Bryan McLellan
e4a096ba83
Merge pull request #4680 from inspec/btm/warn-objects
...
Deprecate inspec/object/* classes
2019-11-12 15:30:45 -05:00
Chef Expeditor
91511c0ca4
Bump version to 4.18.32 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-11-12 20:21:53 +00:00
Ryan Davis
f7afdf1965
Merge pull request #4681 from inspec/zenspider/fixtures
...
Moved test/unit/mock/* to test/fixtures
2019-11-12 12:21:26 -08:00
Ryan Davis
b1c2af209b
Corresponding fixes for the move from test/unit/mock to test/fixtures.
...
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-08 19:20:12 -08:00
Ryan Davis
e8ca7d3cd3
Suppress output from rubygems installs.
...
I still wish this wouldn't fetch or install... but in the meantime,
leave my dots alone.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-08 18:35:23 -08:00
Ryan Davis
db8e6e7415
Moved test/unit/mock/* to test/fixtures
...
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-08 16:29:03 -08:00
Ryan Davis
c8fb6c9d6f
Another chefstyle snafu.
...
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-08 16:24:14 -08:00
Chef Expeditor
ad0e9abd33
Bump version to 4.18.31 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-11-09 00:08:00 +00:00
Ryan Davis
244c7bbed4
Merge pull request #4677 from inspec/zenspider/bump-chefstyle
...
Bump chefstyle and fix up flagged code.
2019-11-08 16:07:42 -08:00
Ryan Davis
bb49d58cd9
Switched chefstyle back to Layout/AlignArguments=with_first_argument.
...
Fixed the flags mostly with `chefstyle -a` but also refactored/cleaned
some stuff by hand.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-08 12:57:43 -08:00
Ryan Davis
8f1e607d55
Bump chefstyle and fix up flagged code.
...
Very minor.
I want to change a default config but I'll do that in a separate
commit since it is a bigger diff.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-08 12:57:43 -08:00
Bryan McLellan
3670500701
Deprecate inspec/object/* classes
...
The classes in inspec/object have been moved to the inspec-objects
library. They aren't used directly by Inspec and will be removed in the
next major release.
Signed-off-by: Bryan McLellan <btm@loftninjas.org>
2019-11-08 15:09:09 -05:00
Clinton Wolfe
5acc8fed1a
Correctly detect NPM modules with a custom path on Windows
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-11-07 17:30:50 -05:00
Clinton Wolfe
34cd236036
Revert "Remove erroneous windows support declaration"
...
We do in fact support windows. We want to support windows with a custom path, too.
This reverts commit 2092984fdd
.
2019-11-07 15:39:58 -05:00
Clinton Wolfe
f85de31292
Update test mock file to match invocation
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-11-07 15:39:08 -05:00
Clinton Wolfe
2092984fdd
Remove erroneous windows support declaration
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-11-07 15:39:08 -05:00
Clinton Wolfe
c0b5b9cd41
Fix for invocation when calling npm under sudo
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-11-07 15:39:08 -05:00
Miah Johnson
549e3c196e
Merge pull request #4675 from inspec/mj/hab1101
...
Get artifact/habitat starting tests on both Windows and Linux
2019-11-07 12:13:31 -08:00
Miah Johnson
13a1c30ba6
Corret build scripts
...
correct path to hab artifact
Rather than throwing, lets try to install the version
Make sure hab is in the path
we use -b on windows. lets be consistent
export project_root too
picardface
fix regex
execute rake _through_ habitat
make test vrooom
test presence of inspec
strip out clixml bs
... no which on bk.
full path to which
export PATH
test exist on linux/windows
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-11-07 10:09:35 -08:00
Chef Expeditor
b3f44ad91f
Bump version to 4.18.30 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-11-07 16:58:31 +00:00
Clinton Wolfe
d9f34dda58
Make input() work in describe.one ( #4666 )
...
Make input() work in describe.one
2019-11-07 11:58:11 -05:00
Clinton Wolfe
bf5ce746c9
Make __profile_id private and add comment
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-11-07 10:49:49 -05:00
Chef Expeditor
3c1fadd1cb
Bump version to 4.18.29 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-11-07 03:04:10 +00:00
Ryan Davis
e3402b9cc9
Merge pull request #4674 from inspec/zenspider/website
...
Revamp www/doco setup
2019-11-06 19:03:50 -08:00
Ryan Davis
1750139dbb
Revamp www rakefile and friends to make pushing doco easier.
...
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-06 18:26:14 -08:00