Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/usr/bin/env sh
env
---
driver:
name: vagrant
http_proxy: "example.com"
https_proxy: "example.com"
provisioner:
name: shell
platforms:
- name: ubuntu-12.04
suites:
- name: default
$ bundle exec kitchen test -l=debug
-----> Starting Kitchen (v1.1.2.dev)
D [kitchen::driver::vagrant command] BEGIN (vagrant --version)
D [kitchen::driver::vagrant command] END (0m0.19s)
-----> Cleaning up any prior instances of <default-ubuntu-1204>
-----> Destroying <default-ubuntu-1204>...
D <default-ubuntu-1204> is synchronizing on Kitchen::Driver::Vagrant#destroy
D <default-ubuntu-1204> is messaging Kitchen::Driver::Vagrant#destroy
Finished destroying <default-ubuntu-1204> (0m0.00s).
-----> Testing <default-ubuntu-1204>
-----> Creating <default-ubuntu-1204>...
D <default-ubuntu-1204> is synchronizing on Kitchen::Driver::Vagrant#create
D <default-ubuntu-1204> is messaging Kitchen::Driver::Vagrant#create
D Creating Vagrantfile for <default-ubuntu-1204> (/private/tmp/test-kitchen-env/.kitchen/kitchen-vagrant/default-ubuntu-1204/Vagrantfile)
D ------------
D Vagrant.configure("2") do |c|
D c.vm.box = "opscode-ubuntu-12.04"
D c.vm.box_url = "https://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-12.04_chef-provisionerless.box"
D c.vm.hostname = "default-ubuntu-1204.vagrantup.com"
D c.vm.synced_folder ".", "/vagrant", disabled: true
D c.vm.provider :virtualbox do |p|
D p.customize ["modifyvm", :id, "--memory", "256"]
D end
D end
D ------------
D [kitchen::driver::vagrant command] BEGIN (vagrant up --no-provision --provider=virtualbox)
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'opscode-ubuntu-12.04'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Fixed port collision for 22 => 2222. Now on port 2200.
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2200 (adapter 1)
[default] Running 'pre-boot' VM customizations...
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...
[default] Machine booted and ready!
[default] Setting hostname...
[default] Mounting shared folders...
D [kitchen::driver::vagrant command] END (0m32.50s)
D [kitchen::driver::vagrant command] BEGIN (vagrant ssh-config)
D [kitchen::driver::vagrant command] END (0m0.59s)
Vagrant instance <default-ubuntu-1204> created.
Finished creating <default-ubuntu-1204> (0m35.20s).
-----> Converging <default-ubuntu-1204>...
Preparing files for transfer
D Creating local sandbox in /var/folders/f9/62lkdjbs0jq23ngdyc2866rh0000gn/T/default-ubuntu-1204-sandbox-20131219-47673-hc0rzp
Preparing script
D Using script from /private/tmp/test-kitchen-env/bootstrap.sh
D [SSH] vagrant@127.0.0.1:2200<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :keys_only=>true, :port=>"2200", :keys=>["/Users/clundquist/.vagrant.d/insecure_private_key"]}> (sudo -E rm -rf /tmp/kitchen/data ; mkdir -p /tmp/kitchen)
D [SSH] opening connection to vagrant@127.0.0.1:2200<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :keys_only=>true, :port=>"2200", :keys=>["/Users/clundquist/.vagrant.d/insecure_private_key"]}>
D Setting remote env http_proxy=example.com
>>>>>> Failed to set remote env http_proxy=example.com
D Setting remote env https_proxy=example.com
>>>>>> Failed to set remote env https_proxy=example.com
Transfering files to <default-ubuntu-1204>
D Uploaded /var/folders/f9/62lkdjbs0jq23ngdyc2866rh0000gn/T/default-ubuntu-1204-sandbox-20131219-47673-hc0rzp/bootstrap.sh (22 bytes)
D Transfer complete
D [SSH] vagrant@127.0.0.1:2200<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :keys_only=>true, :port=>"2200", :keys=>["/Users/clundquist/.vagrant.d/insecure_private_key"], :user=>"vagrant"}> (sudo -E /tmp/kitchen/bootstrap.sh)
D Setting remote env http_proxy=example.com
>>>>>> Failed to set remote env http_proxy=example.com
D Setting remote env https_proxy=example.com
>>>>>> Failed to set remote env https_proxy=example.com
SUDO_GID=900
MAIL=/var/mail/vagrant
SSH_CLIENT=10.0.2.2 62985 22
USER=root
LANGUAGE=en_US:
SHLVL=1
HOME=/home/vagrant
SSH_TTY=/dev/pts/0
https_proxy=example.com
SUDO_UID=900
LOGNAME=root
http_proxy=example.com
_=/usr/bin/sudo
TERM=xterm
USERNAME=root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
LANG=en_US.UTF-8
SSH_AUTH_SOCK=/tmp/ssh-OAGIcH1125/agent.1125
SUDO_COMMAND=/tmp/kitchen/bootstrap.sh
SHELL=/bin/bash
SUDO_USER=vagrant
PWD=/home/vagrant
SSH_CONNECTION=10.0.2.2 62985 10.0.2.15 22
D [SSH] closing connection to vagrant@127.0.0.1:2200<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :keys_only=>true, :port=>"2200", :keys=>["/Users/clundquist/.vagrant.d/insecure_private_key"], :user=>"vagrant"}>
D Cleaning up local sandbox in /var/folders/f9/62lkdjbs0jq23ngdyc2866rh0000gn/T/default-ubuntu-1204-sandbox-20131219-47673-hc0rzp
Finished converging <default-ubuntu-1204> (0m0.06s).
-----> Setting up <default-ubuntu-1204>...
Finished setting up <default-ubuntu-1204> (0m0.00s).
-----> Verifying <default-ubuntu-1204>...
Finished verifying <default-ubuntu-1204> (0m0.00s).
-----> Destroying <default-ubuntu-1204>...
D <default-ubuntu-1204> is synchronizing on Kitchen::Driver::Vagrant#destroy
D <default-ubuntu-1204> is messaging Kitchen::Driver::Vagrant#destroy
D [kitchen::driver::vagrant command] BEGIN (vagrant destroy -f)
[default] Forcing shutdown of VM...
[default] Destroying VM and associated drives...
D [kitchen::driver::vagrant command] END (0m2.29s)
Vagrant instance <default-ubuntu-1204> destroyed.
Finished destroying <default-ubuntu-1204> (0m2.47s).
Finished testing <default-ubuntu-1204> (0m37.75s).
-----> Kitchen is finished. (0m37.99s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment