-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(maint) fix the tests so that they actually run
* Add testresults to the .gitignore file * Change the Vagrant box, nano doesn't appear to have whoami and so fails to load kitchen-pester at all. I also haven't found a 2012r2 box that actually boots. 2016 was the earliest I could find. * Update provisioning to install nuget provider and set TLS. Both seem required to get the rest to actually work. * Add a bare bones TESTING.md file since the PR template says to use them. * Rename test directory to tests as that's the default location for tests. Signed-off-by: Cory Knox <[email protected]>
- Loading branch information
Showing
5 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ Gemfile.lock | |
.kitchen/* | ||
**/.kitchen/* | ||
*.gem | ||
testresults/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Local testing of kitchen-pester | ||
|
||
Testing of `kitchen-pester` is done via `kitchen-pester` in `test-kitchen`. | ||
|
||
The `provision.ps1` file is used to prepare the environment, then tests are run in `test/integration/default/pester/default.tests.ps1`. | ||
|
||
The general steps to test your changes: | ||
|
||
1. Build new gem: `chef gem build ./kitchen-pester.gemspec` | ||
1. Install built gem: `chef gem install ./kitchen-pester-<version>.gem` | ||
1. Test with `test-kitchen`: `kitchen test` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 | ||
Install-PackageProvider Nuget -Force | ||
Set-Content -Path "$env:Temp\test.txt" -Value 'testing' |
File renamed without changes.