- Mock Times/Exactly script under test MockTimesExactly.ps1
- Mock Times/Exactly Pester test script MockTimesExactly.Tests.ps1
- Mock Should BeOfType Pester test script MockBeOfType.Tests.ps1
This file contains hidden or 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
| FROM graylog2/allinone | |
| MAINTAINER Ronald Rink <[email protected]> | |
| ENV GRAYLOG2_BASE_DIR /opt/graylog2 | |
| ENV GRAYLOG_SERVER_VERSION 0.93.0-SNAPSHOT-20150112150701 | |
| ENV GRAYLOG_WEB_VERSION 0.93.0-SNAPSHOT-20150112102527 | |
| RUN apt-get install -y wget tar | |
| RUN cd /opt/ && wget http://packages.graylog2.org/nightly-builds/graylog2-${GRAYLOG_SERVER_VERSION}.tar.gz |
This file contains hidden or 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
| #Requires -Version 3 | |
| # http://d-fens.ch/2015/04/26/nobrainer-enumerate-all-functions-in-a-powershell-script-file-via-ast | |
| [CmdletBinding( | |
| SupportsShouldProcess = $true | |
| , | |
| ConfirmImpact = 'Low' | |
| , | |
| DefaultParameterSetName = 'list' | |
| )] | |
| Param |
This file contains hidden or 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
| #Requires -Module Pester | |
| #Requires -Version 3.0 | |
| # see http://d-fens.ch/2015/06/28/bug-powershell-import-clixml-incorrectly-creates-hashtables-with-duplicate-keys/ for further explanation | |
| $here = Split-Path -Parent $MyInvocation.MyCommand.Path | |
| $ImportCliXmlDuplicateKeys = "{0}.xml" -f $MyInvocation.MyCommand.Name.Replace('.Tests.ps1', ''); | |
| Describe -Tags "Test-ImportCliXml" "Test-ImportCliXml" { |
This file contains hidden or 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
| @ECHO OFF | |
| SETLOCAL | |
| FOR /F "tokens=* delims=?" %%I IN ('ECHO %0') DO @SET SCRIPTPATH=%%~dpI | |
| FOR /F "tokens=* delims=?" %%I IN ('ECHO %SCRIPTPATH%') DO @SET SCRIPTPATH=%%~I | |
| FOR /F "tokens=* delims=?" %%I IN ('ECHO %SCRIPTPATH%') DO @SET SCRIPTPATH=%%~sI | |
| IF "\" EQU "%SCRIPTPATH:~-1%" SET SCRIPTPATH=%SCRIPTPATH:~0,-1% | |
| IF "\" EQU "%SCRIPTPATH:~0,1%" ( | |
| PUSHD "%SCRIPTPATH%" |
This file contains hidden or 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
| help Should | |
| function Should { | |
| [CmdletBinding( | |
| SupportsShouldProcess = $false | |
| , | |
| ConfirmImpact = 'Low' | |
| )] | |
| Param | |
| ( |