Setup the server:
iperf -s
| { | |
| "builders": [ | |
| { | |
| "type": "virtualbox-ovf", | |
| "communicator":"winrm", | |
| "name":"win2008updates", | |
| "source_path": "/Users/mfellows/Downloads/output-basebox-vbox/talentsearch-api-1.0.0.ovf", | |
| "headless": false, | |
| "boot_wait": "1m", | |
| "winrm_username": "vagrant", |
| #!/usr/bin/env bash | |
| set -e | |
| abort() | |
| { | |
| echo "Docker: an error occurred. Exiting..." >&2 | |
| exit 1 | |
| } | |
| script_path_required() |
| package au.com.onegeek.nginxperf | |
| import io.gatling.core.Predef._ | |
| import io.gatling.http.Predef._ | |
| import scala.concurrent.duration._ | |
| class Nginx extends Simulation { | |
| val httpConf = http | |
| .baseURL("http://api.foo.com") |
| import bucky from 'bucky'; | |
| class HelloApp extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| bucky.send('helloapp.constructor', 2432.43434); | |
| this.state = { | |
| filterType: 'all' | |
| }; |
| RUN apt-get update && apt-get install -y wget | |
| RUN wget https://github.com/jwilder/dockerize/releases/download/v0.1.0/dockerize-linux-amd64-v0.1.0.tar.gz | |
| RUN tar -C /usr/local/bin -xzvf dockerize-linux-amd64-v0.1.0.tar.gz |
| Write-Host -ForegroundColor green "Bootstrapping machine" | |
| Write-Host "Setting up package management and installing required packages for Dev." | |
| # | |
| # Install Choco (if not already installed) + required packages | |
| # | |
| if ( (Get-Command "choco" -errorAction SilentlyContinue) ) { | |
| Write-Host "Chocolatey already installed. Skipping." | |
| } else { |
| { | |
| "consumer": { | |
| "name": "MyConsumer" | |
| }, | |
| "provider": { | |
| "name": "MyProvider" | |
| }, | |
| "interactions": [ | |
| { | |
| "description": "Some name for the test", |
See https://stackoverflow.com/questions/43990716/karma-jasmine-pact-js-example-using-requirejs/44170373#44170373 for background
Your working tree should look like:
├── js
│ ├── client-spec.js
│ ├── client.js