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
class MockLogger | |
attr_accessor :messages, :errors | |
def initialize | |
@messages = [] | |
@errors = [] | |
end | |
%w(debug info warn).each do |level| |
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
jesse@Heart-of-Gold flapjack $ be rspec spec/lib/flapjack/gateways/pagerduty_spec.rb | |
Run options: include {:focus=>true} | |
All examples were filtered out; ignoring {:focus=>true} | |
1) Flapjack::Gateways::Pagerduty prompts the blocking redis connection to quit | |
Failure/Error: EM::Hiredis.should_receive(:connect).and_return(shutdown_redis) | |
NameError: | |
uninitialized constant EventMachine::Hiredis | |
# ./spec/lib/flapjack/gateways/pagerduty_spec.rb:16:in `block (2 levels) in <top (required)>' |
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
2013-11-06T15:45:47+10:30 [INFO] :: flapjack-api :: starting api - class | |
2013-11-06T15:45:47+10:30 [FATAL] :: flapjack-coordinator :: RuntimeError | |
no acceptor (port is in use or requires root privileges) | |
/Users/jesse/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:526:in `start_tcp_server' | |
/Users/jesse/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:526:in `start_server' | |
/Users/jesse/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/thin-1.5.1/lib/thin/backends/tcp_server.rb:16:in `connect' | |
/Users/jesse/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/thin-1.5.1/lib/thin/backends/base.rb:55:in `block in start' | |
/Users/jesse/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/thin-1.5.1/lib/thin/backends/base.rb:61:in `call' | |
/Users/jesse/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/thin-1.5.1/lib/thin/backends/base.rb:61:in `start' | |
/Users/jesse/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/thin-1.5.1/lib/thin |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Flapjack - Summary</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="/css/bootstrap.min.css" media="screen"> |
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
Nov 19 15:35:58 precise64 kernel: [ 4654.375681] ------------[ cut here ]------------ | |
Nov 19 15:35:58 precise64 kernel: [ 4654.375690] WARNING: at /build/buildd/linux-3.2.0/fs/dcache.c:1287 d_set_d_op+0x7c/0xb0() | |
Nov 19 15:35:58 precise64 kernel: [ 4654.375692] Hardware name: VirtualBox | |
Nov 19 15:35:58 precise64 kernel: [ 4654.375693] Modules linked in: vboxsf(O) nfsd nfs lockd fscache auth_rpcgss nfs_acl sunrpc ext2 vesafb ppdev parport_pc mac_hid psmouse serio_raw vboxguest(O) i2c_piix4 lp parport e1000 | |
Nov 19 15:35:58 precise64 kernel: [ 4654.375709] Pid: 4311, comm: gem Tainted: G O 3.2.0-23-generic #36-Ubuntu | |
Nov 19 15:35:58 precise64 kernel: [ 4654.375710] Call Trace: | |
Nov 19 15:35:58 precise64 kernel: [ 4654.375715] [<ffffffff8106712f>] warn_slowpath_common+0x7f/0xc0 | |
Nov 19 15:35:58 precise64 kernel: [ 4654.375718] [<ffffffff8106718a>] warn_slowpath_null+0x1a/0x20 | |
Nov 19 15:35:58 precise64 kernel: [ 4654.375720] [<ffffffff8118d03c>] d_set_d_op+0x7c/0xb0 | |
Nov 19 15:35:58 precise64 kernel: [ 4 |
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
{ | |
"dataset_uuid": "17c98640-1fdb-11e3-bf51-3708ce78e75a", | |
"autoboot": true, | |
"alias": "ns", | |
"hostname": "ns", | |
"dns_domain": "example.com", | |
"max_physical_memory": 512, | |
"max_swap": 1024, | |
"quota": 20, | |
"cpu_cap": 200, |
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
vagrant-flapjack $ vagrant destroy && time VAGRANT_CACHE=yes vagrant up --provider vmware_fusion | |
Are you sure you want to destroy the 'flapjack' VM? [y/N] y | |
[flapjack] Stopping the VMware VM... | |
[flapjack] Deleting the VM... | |
[flapjack] Running cleanup tasks for 'puppet' provisioner... | |
Bringing machine 'flapjack' up with 'vmware_fusion' provider... | |
[flapjack] Cloning VMware VM: 'precise64'. This can take some time... | |
[flapjack] Verifying vmnet devices are healthy... | |
[flapjack] Preparing network adapters... | |
[flapjack] Starting the VMware VM... |
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
irb(main):007:0> Dir.foreach('.') {|i| puts i.inspect if i.match(/[[:cntrl:]]/)} | |
"\026l}" | |
"@\021\273@f\364" | |
"\241\022" | |
"@\002" | |
=> nil |
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
cat examples/contacts_ada_and_charles.json | \ | |
curl -w 'response: %{http_code} \n' -X POST -H "Content-type: application/json" \ | |
-d - http://localhost:3081/contacts | |
curl -w 'response: %{http_code} \n' -X POST -H "Content-type: application/json" \ | |
-d - http://localhost:3081/contacts < examples/contacts_ada_and_charles.json | |
curl -w 'response: %{http_code} \n' -X POST -H "Content-type: application/json" \ | |
-d @examples/contacts_ada_and_charles.json \ | |
http://localhost:3081/contacts |
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
$ SHOW_LOGGER_ALL=1 be rspec ./spec/lib/flapjack/gateways/api/contact_methods_spec.rb:97 | |
Run options: include {:locations=>{"./spec/lib/flapjack/gateways/api/contact_methods_spec.rb"=>[97]}} | |
Run options: include {:locations=>{"./spec/lib/flapjack/gateways/api/contact_methods_spec.rb"=>[97]}} | |
Flapjack::Gateways::API::ContactMethods | |
INFO: starting api - class | |
ERROR: Error: TypeError - can't convert Array into Hash | |
/Users/jesse/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/request.rb:225:in `merge' | |
/Users/jesse/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/request.rb:225:in `params' | |
/Users/jesse/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:877:in `call!' |