You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Hyper-v changes in response to OctopusDeploy#177. Extra documentation
* couple of typos
* Move setting of OctopusDSCVMSwitch env var into common code (should fix issue OctopusDeploy#176)
* Should probably include the commit to build-hyperv.ps1 as well
* Address PR feeedback
* debug output to troubleshoot intermittent scenario_08 problem
* Upgrade vagrant-dsc to 2.0.2
If your change is small or you have already made the change, please go ahead and submit a pull request.
@@ -10,4 +10,6 @@ For other changes, please raise an issue first to check that the change aligns w
10
10
11
11
If your pull request or proposed change is for a bug that is causing problems for you, please also [contact support](http://octopusdeploy.com/support) referencing your pull request to make sure it gets prioritized properly. They may also be able to find a work around in the meantime.
12
12
13
-
If you have an idea or a feature request, please post it to [our UserVoice site](http://octopusdeploy.uservoice.com) so others can vote for it.
13
+
If you have an idea or a feature request, please post it to [our UserVoice site](http://octopusdeploy.uservoice.com) so others can vote for it.
14
+
15
+
If you're a keen contributor, a regular OctopusDSC user or just curious, please feel free to join us in the `#octopusdsc` channel at our [Community Slack](https://join.slack.com/t/octopususergroup/shared_invite/enQtNDcyNjM3OTczNzAxLTU0MjI3YmIyMDc1MzdmYjk3OTYzZGY4ZTI2NTcwMzY3OGJkZTExYTVkNThjYjM1MWE2YjlmNWQyMmQwNzRmMjk)
Copy file name to clipboardexpand all lines: README.md
+15-1
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,7 @@ To run just the scenarios locally, follow these steps:
59
59
5. If you want to test locally using Hyper-V
60
60
- Run `vagrant plugin install vagrant-dsc`
61
61
- Run `vagrant plugin install vagrant-winrm-syncedfolders`
62
+
- Optionally set the environment variable `OctopusDSCVMSwitch`, to use a specific Hyper-V switch by name. For example, for older Hyper-V systems, you may wish to set this to 'External Connection'
62
63
- Run `build-hyperv.ps1`. This will run all the scenarios under the [Tests](Tests) folder.
63
64
6. If you want to test using AWS
64
65
- Run `vagrant plugin install vagrant-aws`
@@ -78,6 +79,19 @@ To run just the scenarios locally, follow these steps:
78
79
- Run `build-azure.ps1`. This will run all the scenarios under the [Tests](Tests) folder.
79
80
8. Run `vagrant destroy -f` or the appropriate `cleanup-*.ps1` once you have finished to kill the virtual machine.
80
81
81
-
Tests are written in [ServerSpec](serverspec.org), which is an infrastructure oriented layer over [RSpec](rspec.info).
82
+
Each of the `build-*` scripts can take parameters at the command prompt.
83
+
84
+
These are generally designed to tighten the feedback loop during development, since the VM-based integration test phase can be quite time consuming.
85
+
86
+
| Parameter | Type | Default Value | Description |
|`-SkipPester`| Switch | False | Skips the Pester and PSScriptAnalyzer unit tests, going straight to the slower, VM-based integration tests. |
89
+
|`-ServerOnly`| Switch | False | Runs only the Server-related integration scenarios. |
90
+
|`-TentacleOnly`| Switch | False | Runs Server scenarios 14 and 15 to install and configure an Octopus Deploy server instance, then moves on to Tentacle-related tests (which require a server to be present). |
91
+
|`-OctopusVersion`| String |`vLatest`| Allows you to run tests against a specific version of Octopus Deploy. Does not apply to 'Scenario_07', which installs an older version in order to test upgrading. |
92
+
|`-RetainOnDestroy`| Switch | False | Retains the virtual machine after the tests finish, so you can examine the state of the VM. |
93
+
|`-debug`| Switch | False | Adds the `--debug` flag to the vagrant invocation, allowing you to step through the process and examine machine state before moving on. |
94
+
95
+
Tests are written in [ServerSpec](serverspec.org), which is an infrastructure oriented layer over [RSpec](rspec.info) and use our [octopus-serverspec-extensions](https://github.com/OctopusDeploy/octopus-serverspec-extensions) project for octopus-specific tests.
82
96
83
97
When creating a PR, please ensure that all existing tests run succesfully against VirtualBox, and please include a new scenario where possible. Before you start, please raise an issue to discuss your plans so we can make sure it fits with the goals of the project.
Write-Output"Using ApiKey $($ENV:OctopusApiKey)"# debugging an intermittent issue in Scenario_08 throwing exception 'Cannot bind argument to parameter 'String' because it is null'
0 commit comments