torquebox-backstage 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ * 0.4.1 - 2011-06-06
2
+ * Cleaned up gem dependencies.
3
+
1
4
  * 0.4.0 - 2011-05-27
2
5
  * Updated to use the TorqueBox 1.0.1 gems
3
6
  * Serve jquery.min.js from BackStage instead of pulling from google.
data/Gemfile CHANGED
@@ -1,21 +1,19 @@
1
1
  source :rubygems
2
2
 
3
3
  gem "sinatra", "1.2.6"
4
- gem "rack-flash"
4
+ gem "rack-flash", '0.1.1'
5
5
  gem 'haml', '~>3.0'
6
6
  gem 'sass', '~>3.0'
7
7
  gem "tobias-jmx", '0.8'
8
- gem 'json'
8
+ gem 'json', '1.5.1'
9
9
  gem 'torquebox', '1.0.1'
10
- gem 'tobias-sinatra-url-for'
11
- gem 'rack-accept'
12
- gem 'rake', '0.8.7'
13
- gem 'tilt', '1.3.0'
10
+ gem 'tobias-sinatra-url-for', '0.2.1'
11
+ gem 'rack-accept', '~>0.4.0'
14
12
 
15
- group :development do
16
- gem 'thor'
17
- gem 'jeweler'
18
- gem 'watchr'
19
- gem 'rspec'
20
- gem 'rack-test'
21
- end
13
+ # These are commented out to keep them out of Gemfile.lock
14
+ # group :development do
15
+ # gem 'thor', '0.14.6'
16
+ # gem 'watchr', '~>0.7'
17
+ # gem 'rspec', '~>2.6.0'
18
+ # gem 'rack-test', '~>0.6.0'
19
+ # end
data/Gemfile.lock CHANGED
@@ -1,36 +1,18 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- diff-lcs (1.1.2)
5
- git (1.2.5)
6
4
  haml (3.1.1)
7
- jeweler (1.6.0)
8
- bundler (~> 1.0.0)
9
- git (>= 1.2.5)
10
- rake
11
5
  json (1.5.1-java)
12
6
  rack (1.3.0)
13
7
  rack-accept (0.4.4)
14
8
  rack (>= 0.4)
15
9
  rack-flash (0.1.1)
16
10
  rack
17
- rack-test (0.6.0)
18
- rack (>= 1.0)
19
- rake (0.8.7)
20
- rspec (2.6.0)
21
- rspec-core (~> 2.6.0)
22
- rspec-expectations (~> 2.6.0)
23
- rspec-mocks (~> 2.6.0)
24
- rspec-core (2.6.2)
25
- rspec-expectations (2.6.0)
26
- diff-lcs (~> 1.1.2)
27
- rspec-mocks (2.6.0)
28
- sass (3.1.1)
11
+ sass (3.1.2)
29
12
  sinatra (1.2.6)
30
13
  rack (~> 1.1)
31
14
  tilt (>= 1.2.2, < 2.0)
32
- thor (0.14.6)
33
- tilt (1.3)
15
+ tilt (1.3.2)
34
16
  tobias-jmx (0.8)
35
17
  tobias-sinatra-url-for (0.2.1)
36
18
  sinatra (>= 0.9.1.1)
@@ -49,25 +31,17 @@ GEM
49
31
  torquebox-rake-support (1.0.1)
50
32
  torquebox-vfs (1.0.1-java)
51
33
  torquebox-web (1.0.1-java)
52
- watchr (0.7)
53
34
 
54
35
  PLATFORMS
55
36
  java
56
37
 
57
38
  DEPENDENCIES
58
39
  haml (~> 3.0)
59
- jeweler
60
- json
61
- rack-accept
62
- rack-flash
63
- rack-test
64
- rake (= 0.8.7)
65
- rspec
40
+ json (= 1.5.1)
41
+ rack-accept (~> 0.4.0)
42
+ rack-flash (= 0.1.1)
66
43
  sass (~> 3.0)
67
44
  sinatra (= 1.2.6)
68
- thor
69
- tilt (= 1.3.0)
70
45
  tobias-jmx (= 0.8)
71
- tobias-sinatra-url-for
46
+ tobias-sinatra-url-for (= 0.2.1)
72
47
  torquebox (= 1.0.1)
73
- watchr
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: torquebox-backstage
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.0
5
+ version: 0.4.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Tobias Crawley
@@ -10,207 +10,174 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-27 00:00:00 -04:00
13
+ date: 2011-06-06 00:00:00 -04:00
14
14
  default_executable: backstage
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: sinatra
18
- version_requirements: &id001 !ruby/object:Gem::Requirement
18
+ prerelease: false
19
+ requirement: &id001 !ruby/object:Gem::Requirement
19
20
  none: false
20
21
  requirements:
21
22
  - - "="
22
23
  - !ruby/object:Gem::Version
23
24
  version: 1.2.6
24
- requirement: *id001
25
- prerelease: false
26
25
  type: :runtime
26
+ version_requirements: *id001
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rack-flash
29
- version_requirements: &id002 !ruby/object:Gem::Requirement
29
+ prerelease: false
30
+ requirement: &id002 !ruby/object:Gem::Requirement
30
31
  none: false
31
32
  requirements:
32
- - - ">="
33
+ - - "="
33
34
  - !ruby/object:Gem::Version
34
- version: "0"
35
- requirement: *id002
36
- prerelease: false
35
+ version: 0.1.1
37
36
  type: :runtime
37
+ version_requirements: *id002
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: haml
40
- version_requirements: &id003 !ruby/object:Gem::Requirement
40
+ prerelease: false
41
+ requirement: &id003 !ruby/object:Gem::Requirement
41
42
  none: false
42
43
  requirements:
43
44
  - - ~>
44
45
  - !ruby/object:Gem::Version
45
46
  version: "3.0"
46
- requirement: *id003
47
- prerelease: false
48
47
  type: :runtime
48
+ version_requirements: *id003
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: sass
51
- version_requirements: &id004 !ruby/object:Gem::Requirement
51
+ prerelease: false
52
+ requirement: &id004 !ruby/object:Gem::Requirement
52
53
  none: false
53
54
  requirements:
54
55
  - - ~>
55
56
  - !ruby/object:Gem::Version
56
57
  version: "3.0"
57
- requirement: *id004
58
- prerelease: false
59
58
  type: :runtime
59
+ version_requirements: *id004
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: tobias-jmx
62
- version_requirements: &id005 !ruby/object:Gem::Requirement
62
+ prerelease: false
63
+ requirement: &id005 !ruby/object:Gem::Requirement
63
64
  none: false
64
65
  requirements:
65
66
  - - "="
66
67
  - !ruby/object:Gem::Version
67
68
  version: "0.8"
68
- requirement: *id005
69
- prerelease: false
70
69
  type: :runtime
70
+ version_requirements: *id005
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: json
73
- version_requirements: &id006 !ruby/object:Gem::Requirement
73
+ prerelease: false
74
+ requirement: &id006 !ruby/object:Gem::Requirement
74
75
  none: false
75
76
  requirements:
76
- - - ">="
77
+ - - "="
77
78
  - !ruby/object:Gem::Version
78
- version: "0"
79
- requirement: *id006
80
- prerelease: false
79
+ version: 1.5.1
81
80
  type: :runtime
81
+ version_requirements: *id006
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: torquebox
84
- version_requirements: &id007 !ruby/object:Gem::Requirement
84
+ prerelease: false
85
+ requirement: &id007 !ruby/object:Gem::Requirement
85
86
  none: false
86
87
  requirements:
87
88
  - - "="
88
89
  - !ruby/object:Gem::Version
89
90
  version: 1.0.1
90
- requirement: *id007
91
- prerelease: false
92
91
  type: :runtime
92
+ version_requirements: *id007
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: tobias-sinatra-url-for
95
- version_requirements: &id008 !ruby/object:Gem::Requirement
96
- none: false
97
- requirements:
98
- - - ">="
99
- - !ruby/object:Gem::Version
100
- version: "0"
101
- requirement: *id008
102
- prerelease: false
103
- type: :runtime
104
- - !ruby/object:Gem::Dependency
105
- name: rack-accept
106
- version_requirements: &id009 !ruby/object:Gem::Requirement
107
- none: false
108
- requirements:
109
- - - ">="
110
- - !ruby/object:Gem::Version
111
- version: "0"
112
- requirement: *id009
113
95
  prerelease: false
114
- type: :runtime
115
- - !ruby/object:Gem::Dependency
116
- name: rake
117
- version_requirements: &id010 !ruby/object:Gem::Requirement
96
+ requirement: &id008 !ruby/object:Gem::Requirement
118
97
  none: false
119
98
  requirements:
120
99
  - - "="
121
100
  - !ruby/object:Gem::Version
122
- version: 0.8.7
123
- requirement: *id010
124
- prerelease: false
101
+ version: 0.2.1
125
102
  type: :runtime
103
+ version_requirements: *id008
126
104
  - !ruby/object:Gem::Dependency
127
- name: tilt
128
- version_requirements: &id011 !ruby/object:Gem::Requirement
105
+ name: rack-accept
106
+ prerelease: false
107
+ requirement: &id009 !ruby/object:Gem::Requirement
129
108
  none: false
130
109
  requirements:
131
- - - "="
110
+ - - ~>
132
111
  - !ruby/object:Gem::Version
133
- version: 1.3.0
134
- requirement: *id011
135
- prerelease: false
112
+ version: 0.4.0
136
113
  type: :runtime
114
+ version_requirements: *id009
137
115
  - !ruby/object:Gem::Dependency
138
116
  name: thor
139
- version_requirements: &id012 !ruby/object:Gem::Requirement
140
- none: false
141
- requirements:
142
- - - ">="
143
- - !ruby/object:Gem::Version
144
- version: "0"
145
- requirement: *id012
146
117
  prerelease: false
147
- type: :development
148
- - !ruby/object:Gem::Dependency
149
- name: jeweler
150
- version_requirements: &id013 !ruby/object:Gem::Requirement
118
+ requirement: &id010 !ruby/object:Gem::Requirement
151
119
  none: false
152
120
  requirements:
153
- - - ">="
121
+ - - "="
154
122
  - !ruby/object:Gem::Version
155
- version: "0"
156
- requirement: *id013
157
- prerelease: false
123
+ version: 0.14.6
158
124
  type: :development
125
+ version_requirements: *id010
159
126
  - !ruby/object:Gem::Dependency
160
127
  name: watchr
161
- version_requirements: &id014 !ruby/object:Gem::Requirement
128
+ prerelease: false
129
+ requirement: &id011 !ruby/object:Gem::Requirement
162
130
  none: false
163
131
  requirements:
164
- - - ">="
132
+ - - ~>
165
133
  - !ruby/object:Gem::Version
166
- version: "0"
167
- requirement: *id014
168
- prerelease: false
134
+ version: "0.7"
169
135
  type: :development
136
+ version_requirements: *id011
170
137
  - !ruby/object:Gem::Dependency
171
138
  name: rspec
172
- version_requirements: &id015 !ruby/object:Gem::Requirement
139
+ prerelease: false
140
+ requirement: &id012 !ruby/object:Gem::Requirement
173
141
  none: false
174
142
  requirements:
175
- - - ">="
143
+ - - ~>
176
144
  - !ruby/object:Gem::Version
177
- version: "0"
178
- requirement: *id015
179
- prerelease: false
145
+ version: 2.6.0
180
146
  type: :development
147
+ version_requirements: *id012
181
148
  - !ruby/object:Gem::Dependency
182
149
  name: rack-test
183
- version_requirements: &id016 !ruby/object:Gem::Requirement
150
+ prerelease: false
151
+ requirement: &id013 !ruby/object:Gem::Requirement
184
152
  none: false
185
153
  requirements:
186
- - - ">="
154
+ - - ~>
187
155
  - !ruby/object:Gem::Version
188
- version: "0"
189
- requirement: *id016
190
- prerelease: false
156
+ version: 0.6.0
191
157
  type: :development
158
+ version_requirements: *id013
192
159
  - !ruby/object:Gem::Dependency
193
160
  name: thor
194
- version_requirements: &id017 !ruby/object:Gem::Requirement
161
+ prerelease: false
162
+ requirement: &id014 !ruby/object:Gem::Requirement
195
163
  none: false
196
164
  requirements:
197
- - - ">"
165
+ - - "="
198
166
  - !ruby/object:Gem::Version
199
- version: "0.14"
200
- requirement: *id017
201
- prerelease: false
167
+ version: 0.14.6
202
168
  type: :runtime
169
+ version_requirements: *id014
203
170
  - !ruby/object:Gem::Dependency
204
171
  name: bundler
205
- version_requirements: &id018 !ruby/object:Gem::Requirement
172
+ prerelease: false
173
+ requirement: &id015 !ruby/object:Gem::Requirement
206
174
  none: false
207
175
  requirements:
208
- - - ">="
176
+ - - ~>
209
177
  - !ruby/object:Gem::Version
210
178
  version: 1.0.12
211
- requirement: *id018
212
- prerelease: false
213
179
  type: :runtime
180
+ version_requirements: *id015
214
181
  description: BackStage allows you to look behind the TorqueBox curtain, and view information about all of the components you have running. It includes support for remote code execution and log tailing to aid in debugging.
215
182
  email: tcrawley@redhat.com
216
183
  executables:
@@ -225,7 +192,6 @@ files:
225
192
  - Gemfile
226
193
  - Gemfile.lock
227
194
  - README.md
228
- - Rakefile
229
195
  - TODO
230
196
  - TORQUEBOX_VERSION
231
197
  - VERSION
@@ -269,15 +235,6 @@ files:
269
235
  - public/ajax-loader.gif
270
236
  - public/app.js
271
237
  - public/jquery.min.js
272
- - spec/api_spec.rb
273
- - spec/app_spec.rb
274
- - spec/auth_spec.rb
275
- - spec/data/jbosslogs/boot.log
276
- - spec/data/jbosslogs/error.log
277
- - spec/data/railsapp/log/development.log
278
- - spec/data/railsapp/log/production.log
279
- - spec/log_spec.rb
280
- - spec/spec_helper.rb
281
238
  - views/apps/index.haml
282
239
  - views/apps/show.haml
283
240
  - views/css/_mixins.sass
@@ -315,9 +272,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
315
272
  requirements:
316
273
  - - ">="
317
274
  - !ruby/object:Gem::Version
318
- hash: 2
319
- segments:
320
- - 0
321
275
  version: "0"
322
276
  required_rubygems_version: !ruby/object:Gem::Requirement
323
277
  none: false
data/Rakefile DELETED
@@ -1,32 +0,0 @@
1
- require 'rubygems'
2
- require 'bundler'
3
- begin
4
- Bundler.setup(:default, :development)
5
- rescue Bundler::BundlerError => e
6
- $stderr.puts e.message
7
- $stderr.puts "Run `bundle install` to install missing gems"
8
- exit e.status_code
9
- end
10
- require 'rake'
11
- require 'torquebox-rake-support'
12
-
13
- require 'jeweler'
14
- Jeweler::Tasks.new do |gem|
15
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
16
- gem.name = "torquebox-backstage"
17
- gem.homepage = "http://github.com/torquebox/backstage"
18
- gem.license = "MIT"
19
- gem.summary = %Q{BackStage - Queue/Topic/Job/etc viewer for TorqueBox}
20
- gem.description = %Q{BackStage allows you to look behind the TorqueBox curtain, and view information about all of the components you have running. It includes support for remote code execution and log tailing to aid in debugging.}
21
- gem.email = "tcrawley@redhat.com"
22
- gem.authors = ["Tobias Crawley"]
23
- gem.files = FileList["[A-Z]*", 'backstage.rb', 'config.ru', 'bin/*.rb', "{config,lib,spec,views,public}/**/*"]
24
- gem.executables = %w{backstage}
25
- # Include your dependencies below. Runtime dependencies are required when using your gem,
26
- # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
27
- gem.add_runtime_dependency 'thor', '> 0.14'
28
- gem.add_runtime_dependency 'bundler', '>= 1.0.12'
29
- end
30
- Jeweler::RubygemsDotOrgTasks.new
31
-
32
-
data/spec/api_spec.rb DELETED
@@ -1,148 +0,0 @@
1
- #
2
- # Copyright 2011 Red Hat, Inc.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
- #
16
-
17
- require 'spec_helper'
18
-
19
- module Backstage
20
-
21
- describe '/api' do
22
- before(:each) do
23
- get '/api'
24
- @response = JSON.parse(last_response.body, :symbolize_names => true)
25
- end
26
-
27
- it "should work" do
28
- last_response.should be_ok
29
- end
30
-
31
-
32
- it "should be a hash" do
33
- @response.is_a?(Hash).should be_true
34
- end
35
-
36
- it "should contain a hash of collection urls" do
37
- collections = [:apps, :queues, :topics, :message_processors, :jobs, :services, :pools, :logs]
38
- @response[:collections].keys.should =~ collections
39
- collections.each do |collection|
40
- @response[:collections][collection].should =~ %r{^http://example.org/#{collection}\?format=json$}
41
- end
42
- end
43
-
44
- end
45
-
46
- describe 'with authentication enabled' do
47
- before(:each) do
48
- ENV['REQUIRE_AUTHENTICATION'] = 'true'
49
- @authenticator = mock(:authenticator)
50
- TorqueBox::Authentication.stub(:default).and_return(@authenticator)
51
- end
52
-
53
- it "api should work with authentication" do
54
- @authenticator.should_receive(:authenticate).with('blah', 'pw').and_return(true)
55
- authorize 'blah', 'pw'
56
- get '/api'
57
- last_response.should be_ok
58
- end
59
-
60
- it "should 401 w/o credentials" do
61
- get '/api'
62
- last_response.status.should == 401
63
- end
64
-
65
- it "should 401 with invalid credentials" do
66
- @authenticator.should_receive(:authenticate).with('foo', 'bar').and_return(false)
67
- authorize 'foo', 'bar'
68
- get '/api'
69
- last_response.status.should == 401
70
- end
71
-
72
- after(:each) do
73
- ENV['REQUIRE_AUTHENTICATION'] = nil
74
- end
75
- end
76
-
77
- %w{ app queue topic job message_processor service pool log }.each do |resource|
78
- klass = "backstage/#{resource}".constantize
79
- describe resource do
80
- it "should have hash attributes beyond :resource" do
81
- klass.to_hash_attributes.size.should > 1
82
- end
83
-
84
- describe "/#{resource.pluralize}" do
85
- before(:each) do
86
- klass.stub(:all).and_return([resource_with_mock_mbean(klass)])
87
- get "/#{resource.pluralize}", :format => 'json'
88
- @response = JSON.parse(last_response.body, :symbolize_names => true)
89
- end
90
-
91
- it "should work" do
92
- last_response.should be_ok
93
- end
94
-
95
- it "should be an array" do
96
- @response.is_a?(Array).should be_true
97
- end
98
-
99
- context "each item" do
100
- it "should include the resource" do
101
- @response.first[:resource].should =~ %r{/#{resource}/.*format=json$}
102
- end
103
-
104
- klass.to_hash_attributes.each do |attribute|
105
- it "should include #{attribute}" do
106
- @response.first[attribute].should_not be_nil
107
- end
108
- end
109
- end
110
- end
111
-
112
- describe "/#{resource}" do
113
- before(:each) do
114
- klass.stub(:find).and_return(resource_with_mock_mbean(klass))
115
- get "/#{resource}/somename", :format => 'json'
116
- @response = JSON.parse(last_response.body, :symbolize_names => true)
117
- end
118
-
119
- it "should work" do
120
- last_response.should be_ok
121
- end
122
-
123
- it "should include the resource" do
124
- @response[:resource].should =~ %r{/#{resource}/.*format=json$}
125
- end
126
-
127
- klass.to_hash_attributes.each do |attribute|
128
- it "should include #{attribute}" do
129
- @response[attribute.to_sym].should_not be_nil
130
- end
131
- end
132
- end
133
- end
134
- end
135
-
136
- describe "/queue" do
137
- before(:each) do
138
- Queue.stub(:find).and_return(resource_with_mock_mbean(Queue))
139
- get "/queue/somename", :format => 'json'
140
- @response = JSON.parse(last_response.body, :symbolize_names => true)
141
- end
142
-
143
- it "should include a link to its messages" do
144
- @response[:messages].should =~ %r{/queue/.*/messages.*format=json$}
145
- end
146
- end
147
-
148
- end
data/spec/app_spec.rb DELETED
@@ -1,59 +0,0 @@
1
- #
2
- # Copyright 2011 Red Hat, Inc.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
- #
16
-
17
- require 'spec_helper'
18
-
19
- module Backstage
20
-
21
- describe 'App' do
22
- before(:each) do
23
- @app = App.new("app", nil)
24
- @app_root_path = File.join( TEST_ROOT, 'app' )
25
- @app.stub( :root_path ).and_return( @app_root_path )
26
- @log = Log.new(nil)
27
- end
28
-
29
- describe "logs" do
30
- it "should call all on Log" do
31
- Log.should_receive(:all).with( File.join( @app_root_path, 'log' ) ).and_return([@log])
32
- @app.logs
33
- end
34
-
35
- it "should set the parent on each log" do
36
- Log.stub(:all).and_return([@log])
37
- @log.should_receive(:parent=).with(@app)
38
- @app.logs
39
- end
40
- end
41
-
42
- describe 'has_logs?' do
43
- before(:each) do
44
- @log_dir = File.join( @app_root_path, 'log' )
45
- @app.stub( :log_dir ).and_return( @log_dir )
46
- end
47
- it "should be true if a log/ dir exists" do
48
- File.should_receive(:directory?).with( @log_dir ).and_return( true )
49
- @app.has_logs?.should be_true
50
- end
51
-
52
- it "should not be true if a log/ dir does not exist" do
53
- File.should_receive(:directory?).with( @log_dir ).and_return( false )
54
- @app.has_logs?.should_not be_true
55
- end
56
-
57
- end
58
- end
59
- end
data/spec/auth_spec.rb DELETED
@@ -1,70 +0,0 @@
1
- #
2
- # Copyright 2011 Red Hat, Inc.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
- #
16
-
17
- require 'spec_helper'
18
-
19
- module Backstage
20
- describe 'with authentication enabled' do
21
- before(:each) do
22
- App.stub(:all).and_return([resource_with_mock_mbean(App)])
23
- ENV['REQUIRE_AUTHENTICATION'] = 'true'
24
- @authenticator = mock(:authenticator)
25
- TorqueBox::Authentication.stub(:default).and_return(@authenticator)
26
- end
27
-
28
- it "allow access with proper credentials" do
29
- @authenticator.should_receive(:authenticate).with('blah', 'pw').and_return(true)
30
- authorize 'blah', 'pw'
31
- get '/apps'
32
- last_response.should be_ok
33
- end
34
-
35
- it "should 401 w/o credentials" do
36
- get '/apps'
37
- last_response.status.should == 401
38
- end
39
-
40
- it "should 401 with invalid credentials" do
41
- @authenticator.should_receive(:authenticate).with('foo', 'bar').and_return(false)
42
- authorize 'foo', 'bar'
43
- get '/apps'
44
- last_response.status.should == 401
45
- end
46
-
47
- after(:each) do
48
- ENV['REQUIRE_AUTHENTICATION'] = nil
49
- end
50
- end
51
-
52
- describe 'with authentication disabled' do
53
- before(:each) do
54
- App.stub(:all).and_return([resource_with_mock_mbean(App)])
55
- ENV['REQUIRE_AUTHENTICATION'] = nil
56
- end
57
-
58
- it "should allow access w/o credentials" do
59
- get '/apps'
60
- last_response.should be_ok
61
- end
62
-
63
- it "should allow access with credentials" do
64
- authorize 'blah', 'pwasfd'
65
- get '/apps'
66
- last_response.should be_ok
67
- end
68
- end
69
- end
70
-
@@ -1,177 +0,0 @@
1
- 12:38:58,971 INFO [AbstractJBossASServerBase] Server Configuration:
2
-
3
- JBOSS_HOME URL: file:/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jboss/
4
- Bootstrap: $JBOSS_HOME/server/default/conf/bootstrap.xml
5
- Common Base: $JBOSS_HOME/common/
6
- Common Library: $JBOSS_HOME/common/lib/
7
- Server Name: default
8
- Server Base: $JBOSS_HOME/server/
9
- Server Library: $JBOSS_HOME/server/default/lib/
10
- Server Config: $JBOSS_HOME/server/default/conf/
11
- Server Home: $JBOSS_HOME/server/default/
12
- Server Data: $JBOSS_HOME/server/default/data/
13
- Server Log: $JBOSS_HOME/server/default/log/
14
- Server Temp: $JBOSS_HOME/server/default/tmp/
15
-
16
- 12:38:58,974 INFO [AbstractServer] Starting: JBossAS [6.0.0.Final "Neo"]
17
- 12:39:00,295 INFO [ServerInfo] Java version: 1.6.0_24,Apple Inc.
18
- 12:39:00,295 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334)
19
- 12:39:00,295 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 19.1-b02-334,Apple Inc.
20
- 12:39:00,296 INFO [ServerInfo] OS-System: Mac OS X 10.6.7,x86_64
21
- 12:39:00,296 INFO [ServerInfo] VM arguments: -Xmx1024m -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSClassUnloadingEnabled -Djruby_home.env.ignore=true -Dgem.path=default -Djbosstest.udp.ip_ttl=0 -Djava.endorsed.dirs=/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jboss/lib/endorsed -Djboss.server.log.threshold=DEBUG -Djava.endorsed.dirs=/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jboss/lib/endorsed/ -Dxb.builder.useUnorderedSequence=true
22
- 12:39:00,331 INFO [JMXKernel] Legacy JMX core initialized
23
- 12:39:04,270 INFO [AbstractServerConfig] JBoss Web Services - Stack CXF Server 3.4.1.GA
24
- 12:39:04,670 INFO [JSFImplManagementDeployer] Initialized 3 JSF configurations: [Mojarra-1.2, MyFaces-2.0, Mojarra-2.0]
25
- 12:39:04,829 INFO [Bootstrap] Bootstrapping TorqueBox AS
26
- 12:39:04,830 INFO [Bootstrap] Using JRuby: "/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jruby"
27
- 12:39:05,441 INFO [MCBeanInjectableHandler] Starting
28
- 12:39:05,445 INFO [InjectableHandlerRegistry] Registering injectable handler: mc - org.torquebox.injection.mc.MCBeanInjectableHandler@7ced5732
29
- 12:39:08,265 INFO [RubyRuntimeFactoryImpl] Creating ruby runtime (ruby_version: RUBY1_8, compile_mode: JIT, context: torquebox.global)
30
- 12:39:11,137 WARN [RubyRuntimeFactoryImpl] No initializer set for runtime
31
- 12:39:11,148 INFO [RubyRuntimeFactoryImpl] Created ruby runtime (ruby_version: RUBY1_8, compile_mode: JIT, context: torquebox.global) in 2.88s
32
- 12:39:11,148 INFO [TorqueBox] Welcome to TorqueBox AS - http://torquebox.org/
33
- 12:39:11,149 INFO [TorqueBox] version...... 1.0.0.CR2-SNAPSHOT
34
- 12:39:11,149 INFO [TorqueBox] build........ development (tobias)
35
- 12:39:11,149 INFO [TorqueBox] revision..... e279d5ba494c191af7ba0ad3742bf3b4322f3830
36
- 12:39:11,149 INFO [TorqueBox] jruby.home... /Users/tobias/work/torquebox/integration-tests/target/integ-dist/jruby
37
- 12:39:11,149 INFO [JNDIInjectableHandler] Starting
38
- 12:39:11,149 INFO [CDIInjectableHandler] Starting
39
- 12:39:11,150 INFO [InjectableHandlerRegistry] Registering injectable handler: jndi - org.torquebox.injection.jndi.JNDIInjectableHandler@798fe5a1
40
- 12:39:11,150 INFO [InjectableHandlerRegistry] Registering injectable handler: cdi - org.torquebox.injection.cdi.CDIInjectableHandler@562ceb60
41
- 12:39:11,153 INFO [AppsDirectoryBootstrapper] Adding deployment directory: /Users/tobias/work/torquebox/integration-tests/target/integ-dist/apps
42
- 12:39:11,172 INFO [DestinationInjectableHandler] Starting
43
- 12:39:11,172 INFO [InjectableHandlerRegistry] Registering injectable handler: queue - org.torquebox.messaging.injection.DestinationInjectableHandler@1feb551
44
- 12:39:11,173 INFO [DestinationInjectableHandler] Starting
45
- 12:39:11,173 INFO [InjectableHandlerRegistry] Registering injectable handler: topic - org.torquebox.messaging.injection.DestinationInjectableHandler@5123027e
46
- 12:39:13,261 WARNING [FileConfigurationParser] AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
47
- 12:39:15,332 WARNING [FileConfigurationParser] AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
48
- 12:39:15,474 INFO [JMXConnector] starting JMXConnector on host 127.0.0.1:1090
49
- 12:39:15,555 INFO [MailService] Mail Service bound to java:/Mail
50
- 12:39:16,147 INFO [HornetQServerImpl] live server is starting..
51
- 12:39:16,202 INFO [JournalStorageManager] Using NIO Journal
52
- 12:39:16,219 WARNING [HornetQServerImpl] Security risk! It has been detected that the cluster admin user and password have not been changed from the installation default. Please see the HornetQ user guide, cluster chapter, for instructions on how to do this.
53
- 12:39:16,634 INFO [NettyAcceptor] Started Netty Acceptor version 3.2.1.Final-r2319 127.0.0.1:5455 for CORE protocol
54
- 12:39:16,635 INFO [NettyAcceptor] Started Netty Acceptor version 3.2.1.Final-r2319 127.0.0.1:5445 for CORE protocol
55
- 12:39:16,638 INFO [HornetQServerImpl] HornetQ Server version 2.1.2.Final (Colmeia, 120) started
56
- 12:39:16,685 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
57
- 12:39:16,862 INFO [jbossatx] ARJUNA-32010 JBossTS Recovery Service (tag: JBOSSTS_4_14_0_Final) - JBoss Inc.
58
- 12:39:16,867 INFO [arjuna] ARJUNA-12324 Start RecoveryActivators
59
- 12:39:16,883 INFO [arjuna] ARJUNA-12296 ExpiredEntryMonitor running at Mon, 25 Apr 2011 12:39:16
60
- 12:39:16,937 INFO [arjuna] ARJUNA-12310 Recovery manager listening on endpoint 127.0.0.1:4712
61
- 12:39:16,938 INFO [arjuna] ARJUNA-12344 RecoveryManagerImple is ready on port 4712
62
- 12:39:16,939 INFO [jbossatx] ARJUNA-32013 Starting transaction recovery manager
63
- 12:39:16,952 INFO [arjuna] ARJUNA-12163 Starting service com.arjuna.ats.arjuna.recovery.ActionStatusService on port 4713
64
- 12:39:16,953 INFO [arjuna] ARJUNA-12337 TransactionStatusManagerItem host: 127.0.0.1 port: 4713
65
- 12:39:16,954 INFO [arjuna] ARJUNA-12170 TransactionStatusManager started on port 4713 and host 127.0.0.1 with service com.arjuna.ats.arjuna.recovery.ActionStatusService
66
- 12:39:16,992 INFO [jbossatx] ARJUNA-32017 JBossTS Transaction Service (JTA version - tag: JBOSSTS_4_14_0_Final) - JBoss Inc.
67
- 12:39:17,035 INFO [arjuna] ARJUNA-12202 registering bean jboss.jta:type=ObjectStore.
68
- 12:39:17,237 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
69
- 12:39:17,360 INFO [TomcatDeployment] deploy, ctxPath=/invoker
70
- 12:39:17,600 INFO [ModClusterService] Initializing mod_cluster 1.1.0.Final
71
- 12:39:17,635 INFO [RARDeployment] Required license terms exist, view vfs:/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jboss/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
72
- 12:39:17,644 INFO [RARDeployment] Required license terms exist, view vfs:/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jboss/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
73
- 12:39:17,680 INFO [RARDeployment] Required license terms exist, view vfs:/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jboss/server/default/deploy/jms-ra.rar/META-INF/ra.xml
74
- 12:39:17,693 INFO [HornetQResourceAdapter] HornetQ resource adaptor started
75
- 12:39:17,699 INFO [RARDeployment] Required license terms exist, view vfs:/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jboss/server/default/deploy/mail-ra.rar/META-INF/ra.xml
76
- 12:39:17,710 INFO [RARDeployment] Required license terms exist, view vfs:/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jboss/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
77
- 12:39:17,786 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: Thread-3
78
- 12:39:17,819 INFO [SchedulerSignalerImpl] Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
79
- 12:39:17,819 INFO [QuartzScheduler] Quartz Scheduler v.1.8.3 created.
80
- 12:39:17,821 INFO [RAMJobStore] RAMJobStore initialized.
81
- 12:39:17,823 INFO [QuartzScheduler] Scheduler meta-data: Quartz Scheduler (v1.8.3) 'JBossQuartzScheduler' with instanceId 'NON_CLUSTERED'
82
- Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
83
- NOT STARTED.
84
- Currently in standby mode.
85
- Number of jobs executed: 0
86
- Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
87
- Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
88
-
89
- 12:39:17,823 INFO [StdSchedulerFactory] Quartz scheduler 'JBossQuartzScheduler' initialized from an externally opened InputStream.
90
- 12:39:17,823 INFO [StdSchedulerFactory] Quartz scheduler version: 1.8.3
91
- 12:39:17,823 INFO [QuartzScheduler] Scheduler JBossQuartzScheduler_$_NON_CLUSTERED started.
92
- 12:39:18,132 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
93
- 12:39:18,306 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
94
- 12:39:18,424 INFO [xnio] XNIO Version 2.1.0.CR2
95
- 12:39:18,431 INFO [nio] XNIO NIO Implementation Version 2.1.0.CR2
96
- 12:39:18,606 INFO [remoting] JBoss Remoting version 3.1.0.Beta2
97
- 12:39:18,692 INFO [TomcatDeployment] deploy, ctxPath=/
98
- 12:39:18,728 INFO [service] Removing bootstrap log handlers
99
- 12:39:18,784 INFO [org.torquebox.bootstrap.AppsDirectoryNotificationListener] Activating deployments dir
100
- 12:39:18,805 INFO [org.apache.coyote.http11.Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
101
- 12:39:18,810 INFO [org.apache.coyote.ajp.AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
102
- 12:39:18,811 INFO [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS [6.0.0.Final "Neo"] Started in 19s:834ms
103
- 12:39:19,170 INFO [org.jboss.deployment.MainDeployer] deploy, url=file:/Users/tobias/work/torquebox/integration-tests/basic-auth-knob.jar
104
- 12:39:19,283 INFO [org.torquebox.mc.vdf.PojoDeployment] Deploying: basic-auth -- "/Users/tobias/work/torquebox/integration-tests/apps/rack/basic_auth"
105
- 12:39:19,290 INFO [org.torquebox.base.deployers.AuthDefaultsDeployer] No authentication configuration provided for this application. Using defaults.
106
- 12:39:19,290 INFO [org.torquebox.base.deployers.AuthDefaultsDeployer] Authentication Domain: torquebox-auth
107
- 12:39:19,311 WARN [org.torquebox.interp.deployers.BaseRubyRuntimeDeployer] Ruby runtime already configured as RACK: AbstractVFSDeploymentContext@1357132739{basic-auth}
108
- 12:39:19,438 INFO [org.torquebox.interp.deployers.RuntimePoolDeployer] Deploying runtime pool: [PoolMetaData: name=messaging min=1 max=2]
109
- 12:39:19,442 INFO [org.torquebox.interp.deployers.RuntimePoolDeployer] Deploying runtime pool: [PoolMetaData: name=web type=SHARED]
110
- 12:39:19,551 INFO [org.jboss.weld.Version] WELD-000900 1.1.0 (CR3)
111
- 12:39:19,568 INFO [org.torquebox.interp.core.RubyRuntimeFactoryImpl] Creating ruby runtime (ruby_version: RUBY1_9, compile_mode: JIT, app: basic-auth, context: web)
112
- 12:39:21,818 INFO [org.torquebox.interp.core.RubyRuntimeFactoryImpl] Created ruby runtime (ruby_version: RUBY1_9, compile_mode: JIT, app: basic-auth, context: web) in 2.25s
113
- 12:39:21,866 INFO [org.torquebox.interp.core.RubyRuntimeFactoryImpl] Creating ruby runtime (ruby_version: RUBY1_9, compile_mode: JIT, app: basic-auth, context: messaging)
114
- 12:39:23,346 INFO [org.torquebox.interp.core.RubyRuntimeFactoryImpl] Created ruby runtime (ruby_version: RUBY1_9, compile_mode: JIT, app: basic-auth, context: messaging) in 1.48s
115
- 12:39:23,556 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] deploy, ctxPath=/basic-auth
116
- 12:39:23,592 WARN [org.jboss.web.tomcat.service.deployers.JBossContextConfig] Failed to setup clustering, clustering disabled. ClusteringNotSupportedException: No DistributedCacheManagerFactory service provider found.
117
- 12:39:24,093 INFO [org.torquebox.base.deployers.DeploymentNotifier] Fully deployed: basic-auth
118
- 12:39:24,093 INFO [org.torquebox.mc.vdf.PojoDeployment] Fully deployed: "/Users/tobias/work/torquebox/integration-tests/apps/rack/basic_auth"
119
- 12:39:25,408 INFO [STDOUT] {["rack.input", #<IO:0x00000000>]=>nil,
120
- 12:39:25,409 INFO [STDOUT] ["rack.errors", #<IO:0x00000000>]=>nil,
121
- 12:39:25,419 INFO [STDOUT] ["REQUEST_METHOD", "GET"]=>nil,
122
- 12:39:25,423 INFO [STDOUT] ["SCRIPT_NAME", "/basic-auth"]=>nil,
123
- 12:39:25,425 INFO [STDOUT] ["PATH_INFO", "/"]=>nil,
124
- 12:39:25,427 INFO [STDOUT] ["QUERY_STRING", ""]=>nil,
125
- 12:39:25,450 INFO [STDOUT] ["SERVER_NAME", "localhost"]=>nil,
126
- 12:39:25,452 INFO [STDOUT] ["SERVER_PORT", "8080"]=>nil,
127
- 12:39:25,454 INFO [STDOUT] ["CONTENT_TYPE", nil]=>nil,
128
- 12:39:25,457 INFO [STDOUT] ["REQUEST_URI", "/basic-auth/"]=>nil,
129
- 12:39:25,459 INFO [STDOUT] ["REMOTE_ADDR", "127.0.0.1"]=>nil,
130
- 12:39:25,461 INFO [STDOUT] ["rack.url_scheme", "http"]=>nil,
131
- 12:39:25,475 INFO [STDOUT] ["rack.version", [1, 1]]=>nil,
132
- 12:39:25,477 INFO [STDOUT] ["rack.multithread", true]=>nil,
133
- 12:39:25,479 INFO [STDOUT] ["rack.multiprocess", true]=>nil,
134
- 12:39:25,480 INFO [STDOUT] ["rack.run_once", false]=>nil,
135
- 12:39:25,485 INFO [STDOUT] ["HTTP_USER_AGENT", "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)"]=>
136
- 12:39:25,485 INFO [STDOUT] nil,
137
- 12:39:25,492 INFO [STDOUT] ["HTTP_ACCEPT_LANGUAGE", "en-us"]=>nil,
138
- 12:39:25,494 INFO [STDOUT] ["HTTP_ACCEPT", "*/*"]=>nil,
139
- 12:39:25,495 INFO [STDOUT] ["HTTP_HOST", "localhost:8080"]=>nil,
140
- 12:39:25,497 INFO [STDOUT] ["HTTP_CONNECTION", "Keep-Alive"]=>nil,
141
- 12:39:25,498 INFO [STDOUT] ["servlet_request",
142
- 12:39:25,499 INFO [STDOUT] #<Java::OrgApacheCatalinaConnector::RequestFacade:0x626dac12>]=>nil,
143
- 12:39:25,500 INFO [STDOUT] ["java.servlet_request",
144
- 12:39:25,501 INFO [STDOUT] #<Java::OrgApacheCatalinaConnector::RequestFacade:0x626dac12>]=>nil}
145
- 12:39:25,538 INFO [STDOUT] {["rack.input", #<IO:0x00000000>]=>nil,
146
- 12:39:25,538 INFO [STDOUT] ["rack.errors", #<IO:0x00000000>]=>nil,
147
- 12:39:25,540 INFO [STDOUT] ["REQUEST_METHOD", "GET"]=>nil,
148
- 12:39:25,542 INFO [STDOUT] ["SCRIPT_NAME", "/basic-auth"]=>nil,
149
- 12:39:25,543 INFO [STDOUT] ["PATH_INFO", "/"]=>nil,
150
- 12:39:25,545 INFO [STDOUT] ["QUERY_STRING", ""]=>nil,
151
- 12:39:25,546 INFO [STDOUT] ["SERVER_NAME", "localhost"]=>nil,
152
- 12:39:25,548 INFO [STDOUT] ["SERVER_PORT", "8080"]=>nil,
153
- 12:39:25,549 INFO [STDOUT] ["CONTENT_TYPE", nil]=>nil,
154
- 12:39:25,551 INFO [STDOUT] ["REQUEST_URI", "/basic-auth/"]=>nil,
155
- 12:39:25,552 INFO [STDOUT] ["REMOTE_ADDR", "127.0.0.1"]=>nil,
156
- 12:39:25,554 INFO [STDOUT] ["rack.url_scheme", "http"]=>nil,
157
- 12:39:25,556 INFO [STDOUT] ["rack.version", [1, 1]]=>nil,
158
- 12:39:25,558 INFO [STDOUT] ["rack.multithread", true]=>nil,
159
- 12:39:25,559 INFO [STDOUT] ["rack.multiprocess", true]=>nil,
160
- 12:39:25,561 INFO [STDOUT] ["rack.run_once", false]=>nil,
161
- 12:39:25,562 INFO [STDOUT] ["HTTP_USER_AGENT", "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)"]=>
162
- 12:39:25,562 INFO [STDOUT] nil,
163
- 12:39:25,564 INFO [STDOUT] ["HTTP_ACCEPT_LANGUAGE", "en-us"]=>nil,
164
- 12:39:25,575 INFO [STDOUT] ["HTTP_ACCEPT", "*/*"]=>nil,
165
- 12:39:25,576 INFO [STDOUT] ["HTTP_HOST", "localhost:8080"]=>nil,
166
- 12:39:25,578 INFO [STDOUT] ["HTTP_CONNECTION", "Keep-Alive"]=>nil,
167
- 12:39:25,580 INFO [STDOUT] ["HTTP_AUTHORIZATION", "Basic Ym1jd2hpcnRAcmVkaGF0LmNvbTpzd29yZGZpc2g="]=>nil,
168
- 12:39:25,581 INFO [STDOUT] ["servlet_request",
169
- 12:39:25,581 INFO [STDOUT] #<Java::OrgApacheCatalinaConnector::RequestFacade:0x626dac12>]=>nil,
170
- 12:39:25,582 INFO [STDOUT] ["java.servlet_request",
171
- 12:39:25,583 INFO [STDOUT] #<Java::OrgApacheCatalinaConnector::RequestFacade:0x626dac12>]=>nil}
172
- 12:39:25,793 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] undeploy, ctxPath=/basic-auth
173
- 12:39:25,997 INFO [org.jboss.system.server.jmx.JMXKernel] Server exit called, exiting the JVM now!
174
- 12:39:25,998 INFO [STDOUT] Posting Shutdown Request to the server...
175
- 12:39:25,999 INFO [org.jboss.bootstrap.impl.base.server.AbstractServer] Stopping: JBossAS [6.0.0.Final "Neo"]
176
- 12:39:26,001 INFO [org.apache.coyote.http11.Http11Protocol] Pausing Coyote HTTP/1.1 on http-127.0.0.1-8080
177
- 12:39:26,002 INFO [org.apache.coyo
@@ -1,177 +0,0 @@
1
- 12:38:58,971 INFO [AbstractJBossASServerBase] Server Configuration:
2
-
3
- JBOSS_HOME URL: file:/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jboss/
4
- Bootstrap: $JBOSS_HOME/server/default/conf/bootstrap.xml
5
- Common Base: $JBOSS_HOME/common/
6
- Common Library: $JBOSS_HOME/common/lib/
7
- Server Name: default
8
- Server Base: $JBOSS_HOME/server/
9
- Server Library: $JBOSS_HOME/server/default/lib/
10
- Server Config: $JBOSS_HOME/server/default/conf/
11
- Server Home: $JBOSS_HOME/server/default/
12
- Server Data: $JBOSS_HOME/server/default/data/
13
- Server Log: $JBOSS_HOME/server/default/log/
14
- Server Temp: $JBOSS_HOME/server/default/tmp/
15
-
16
- 12:38:58,974 INFO [AbstractServer] Starting: JBossAS [6.0.0.Final "Neo"]
17
- 12:39:00,295 INFO [ServerInfo] Java version: 1.6.0_24,Apple Inc.
18
- 12:39:00,295 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334)
19
- 12:39:00,295 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 19.1-b02-334,Apple Inc.
20
- 12:39:00,296 INFO [ServerInfo] OS-System: Mac OS X 10.6.7,x86_64
21
- 12:39:00,296 INFO [ServerInfo] VM arguments: -Xmx1024m -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSClassUnloadingEnabled -Djruby_home.env.ignore=true -Dgem.path=default -Djbosstest.udp.ip_ttl=0 -Djava.endorsed.dirs=/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jboss/lib/endorsed -Djboss.server.log.threshold=DEBUG -Djava.endorsed.dirs=/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jboss/lib/endorsed/ -Dxb.builder.useUnorderedSequence=true
22
- 12:39:00,331 INFO [JMXKernel] Legacy JMX core initialized
23
- 12:39:04,270 INFO [AbstractServerConfig] JBoss Web Services - Stack CXF Server 3.4.1.GA
24
- 12:39:04,670 INFO [JSFImplManagementDeployer] Initialized 3 JSF configurations: [Mojarra-1.2, MyFaces-2.0, Mojarra-2.0]
25
- 12:39:04,829 INFO [Bootstrap] Bootstrapping TorqueBox AS
26
- 12:39:04,830 INFO [Bootstrap] Using JRuby: "/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jruby"
27
- 12:39:05,441 INFO [MCBeanInjectableHandler] Starting
28
- 12:39:05,445 INFO [InjectableHandlerRegistry] Registering injectable handler: mc - org.torquebox.injection.mc.MCBeanInjectableHandler@7ced5732
29
- 12:39:08,265 INFO [RubyRuntimeFactoryImpl] Creating ruby runtime (ruby_version: RUBY1_8, compile_mode: JIT, context: torquebox.global)
30
- 12:39:11,137 WARN [RubyRuntimeFactoryImpl] No initializer set for runtime
31
- 12:39:11,148 INFO [RubyRuntimeFactoryImpl] Created ruby runtime (ruby_version: RUBY1_8, compile_mode: JIT, context: torquebox.global) in 2.88s
32
- 12:39:11,148 INFO [TorqueBox] Welcome to TorqueBox AS - http://torquebox.org/
33
- 12:39:11,149 INFO [TorqueBox] version...... 1.0.0.CR2-SNAPSHOT
34
- 12:39:11,149 INFO [TorqueBox] build........ development (tobias)
35
- 12:39:11,149 INFO [TorqueBox] revision..... e279d5ba494c191af7ba0ad3742bf3b4322f3830
36
- 12:39:11,149 INFO [TorqueBox] jruby.home... /Users/tobias/work/torquebox/integration-tests/target/integ-dist/jruby
37
- 12:39:11,149 INFO [JNDIInjectableHandler] Starting
38
- 12:39:11,149 INFO [CDIInjectableHandler] Starting
39
- 12:39:11,150 INFO [InjectableHandlerRegistry] Registering injectable handler: jndi - org.torquebox.injection.jndi.JNDIInjectableHandler@798fe5a1
40
- 12:39:11,150 INFO [InjectableHandlerRegistry] Registering injectable handler: cdi - org.torquebox.injection.cdi.CDIInjectableHandler@562ceb60
41
- 12:39:11,153 INFO [AppsDirectoryBootstrapper] Adding deployment directory: /Users/tobias/work/torquebox/integration-tests/target/integ-dist/apps
42
- 12:39:11,172 INFO [DestinationInjectableHandler] Starting
43
- 12:39:11,172 INFO [InjectableHandlerRegistry] Registering injectable handler: queue - org.torquebox.messaging.injection.DestinationInjectableHandler@1feb551
44
- 12:39:11,173 INFO [DestinationInjectableHandler] Starting
45
- 12:39:11,173 INFO [InjectableHandlerRegistry] Registering injectable handler: topic - org.torquebox.messaging.injection.DestinationInjectableHandler@5123027e
46
- 12:39:13,261 WARNING [FileConfigurationParser] AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
47
- 12:39:15,332 WARNING [FileConfigurationParser] AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
48
- 12:39:15,474 INFO [JMXConnector] starting JMXConnector on host 127.0.0.1:1090
49
- 12:39:15,555 INFO [MailService] Mail Service bound to java:/Mail
50
- 12:39:16,147 INFO [HornetQServerImpl] live server is starting..
51
- 12:39:16,202 INFO [JournalStorageManager] Using NIO Journal
52
- 12:39:16,219 WARNING [HornetQServerImpl] Security risk! It has been detected that the cluster admin user and password have not been changed from the installation default. Please see the HornetQ user guide, cluster chapter, for instructions on how to do this.
53
- 12:39:16,634 INFO [NettyAcceptor] Started Netty Acceptor version 3.2.1.Final-r2319 127.0.0.1:5455 for CORE protocol
54
- 12:39:16,635 INFO [NettyAcceptor] Started Netty Acceptor version 3.2.1.Final-r2319 127.0.0.1:5445 for CORE protocol
55
- 12:39:16,638 INFO [HornetQServerImpl] HornetQ Server version 2.1.2.Final (Colmeia, 120) started
56
- 12:39:16,685 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
57
- 12:39:16,862 INFO [jbossatx] ARJUNA-32010 JBossTS Recovery Service (tag: JBOSSTS_4_14_0_Final) - JBoss Inc.
58
- 12:39:16,867 INFO [arjuna] ARJUNA-12324 Start RecoveryActivators
59
- 12:39:16,883 INFO [arjuna] ARJUNA-12296 ExpiredEntryMonitor running at Mon, 25 Apr 2011 12:39:16
60
- 12:39:16,937 INFO [arjuna] ARJUNA-12310 Recovery manager listening on endpoint 127.0.0.1:4712
61
- 12:39:16,938 INFO [arjuna] ARJUNA-12344 RecoveryManagerImple is ready on port 4712
62
- 12:39:16,939 INFO [jbossatx] ARJUNA-32013 Starting transaction recovery manager
63
- 12:39:16,952 INFO [arjuna] ARJUNA-12163 Starting service com.arjuna.ats.arjuna.recovery.ActionStatusService on port 4713
64
- 12:39:16,953 INFO [arjuna] ARJUNA-12337 TransactionStatusManagerItem host: 127.0.0.1 port: 4713
65
- 12:39:16,954 INFO [arjuna] ARJUNA-12170 TransactionStatusManager started on port 4713 and host 127.0.0.1 with service com.arjuna.ats.arjuna.recovery.ActionStatusService
66
- 12:39:16,992 INFO [jbossatx] ARJUNA-32017 JBossTS Transaction Service (JTA version - tag: JBOSSTS_4_14_0_Final) - JBoss Inc.
67
- 12:39:17,035 INFO [arjuna] ARJUNA-12202 registering bean jboss.jta:type=ObjectStore.
68
- 12:39:17,237 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
69
- 12:39:17,360 INFO [TomcatDeployment] deploy, ctxPath=/invoker
70
- 12:39:17,600 INFO [ModClusterService] Initializing mod_cluster 1.1.0.Final
71
- 12:39:17,635 INFO [RARDeployment] Required license terms exist, view vfs:/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jboss/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
72
- 12:39:17,644 INFO [RARDeployment] Required license terms exist, view vfs:/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jboss/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
73
- 12:39:17,680 INFO [RARDeployment] Required license terms exist, view vfs:/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jboss/server/default/deploy/jms-ra.rar/META-INF/ra.xml
74
- 12:39:17,693 INFO [HornetQResourceAdapter] HornetQ resource adaptor started
75
- 12:39:17,699 INFO [RARDeployment] Required license terms exist, view vfs:/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jboss/server/default/deploy/mail-ra.rar/META-INF/ra.xml
76
- 12:39:17,710 INFO [RARDeployment] Required license terms exist, view vfs:/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jboss/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
77
- 12:39:17,786 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: Thread-3
78
- 12:39:17,819 INFO [SchedulerSignalerImpl] Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
79
- 12:39:17,819 INFO [QuartzScheduler] Quartz Scheduler v.1.8.3 created.
80
- 12:39:17,821 INFO [RAMJobStore] RAMJobStore initialized.
81
- 12:39:17,823 INFO [QuartzScheduler] Scheduler meta-data: Quartz Scheduler (v1.8.3) 'JBossQuartzScheduler' with instanceId 'NON_CLUSTERED'
82
- Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
83
- NOT STARTED.
84
- Currently in standby mode.
85
- Number of jobs executed: 0
86
- Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
87
- Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
88
-
89
- 12:39:17,823 INFO [StdSchedulerFactory] Quartz scheduler 'JBossQuartzScheduler' initialized from an externally opened InputStream.
90
- 12:39:17,823 INFO [StdSchedulerFactory] Quartz scheduler version: 1.8.3
91
- 12:39:17,823 INFO [QuartzScheduler] Scheduler JBossQuartzScheduler_$_NON_CLUSTERED started.
92
- 12:39:18,132 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
93
- 12:39:18,306 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
94
- 12:39:18,424 INFO [xnio] XNIO Version 2.1.0.CR2
95
- 12:39:18,431 INFO [nio] XNIO NIO Implementation Version 2.1.0.CR2
96
- 12:39:18,606 INFO [remoting] JBoss Remoting version 3.1.0.Beta2
97
- 12:39:18,692 INFO [TomcatDeployment] deploy, ctxPath=/
98
- 12:39:18,728 INFO [service] Removing bootstrap log handlers
99
- 12:39:18,784 INFO [org.torquebox.bootstrap.AppsDirectoryNotificationListener] Activating deployments dir
100
- 12:39:18,805 INFO [org.apache.coyote.http11.Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
101
- 12:39:18,810 INFO [org.apache.coyote.ajp.AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
102
- 12:39:18,811 INFO [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS [6.0.0.Final "Neo"] Started in 19s:834ms
103
- 12:39:19,170 INFO [org.jboss.deployment.MainDeployer] deploy, url=file:/Users/tobias/work/torquebox/integration-tests/basic-auth-knob.jar
104
- 12:39:19,283 INFO [org.torquebox.mc.vdf.PojoDeployment] Deploying: basic-auth -- "/Users/tobias/work/torquebox/integration-tests/apps/rack/basic_auth"
105
- 12:39:19,290 INFO [org.torquebox.base.deployers.AuthDefaultsDeployer] No authentication configuration provided for this application. Using defaults.
106
- 12:39:19,290 INFO [org.torquebox.base.deployers.AuthDefaultsDeployer] Authentication Domain: torquebox-auth
107
- 12:39:19,311 WARN [org.torquebox.interp.deployers.BaseRubyRuntimeDeployer] Ruby runtime already configured as RACK: AbstractVFSDeploymentContext@1357132739{basic-auth}
108
- 12:39:19,438 INFO [org.torquebox.interp.deployers.RuntimePoolDeployer] Deploying runtime pool: [PoolMetaData: name=messaging min=1 max=2]
109
- 12:39:19,442 INFO [org.torquebox.interp.deployers.RuntimePoolDeployer] Deploying runtime pool: [PoolMetaData: name=web type=SHARED]
110
- 12:39:19,551 INFO [org.jboss.weld.Version] WELD-000900 1.1.0 (CR3)
111
- 12:39:19,568 INFO [org.torquebox.interp.core.RubyRuntimeFactoryImpl] Creating ruby runtime (ruby_version: RUBY1_9, compile_mode: JIT, app: basic-auth, context: web)
112
- 12:39:21,818 INFO [org.torquebox.interp.core.RubyRuntimeFactoryImpl] Created ruby runtime (ruby_version: RUBY1_9, compile_mode: JIT, app: basic-auth, context: web) in 2.25s
113
- 12:39:21,866 INFO [org.torquebox.interp.core.RubyRuntimeFactoryImpl] Creating ruby runtime (ruby_version: RUBY1_9, compile_mode: JIT, app: basic-auth, context: messaging)
114
- 12:39:23,346 INFO [org.torquebox.interp.core.RubyRuntimeFactoryImpl] Created ruby runtime (ruby_version: RUBY1_9, compile_mode: JIT, app: basic-auth, context: messaging) in 1.48s
115
- 12:39:23,556 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] deploy, ctxPath=/basic-auth
116
- 12:39:23,592 WARN [org.jboss.web.tomcat.service.deployers.JBossContextConfig] Failed to setup clustering, clustering disabled. ClusteringNotSupportedException: No DistributedCacheManagerFactory service provider found.
117
- 12:39:24,093 INFO [org.torquebox.base.deployers.DeploymentNotifier] Fully deployed: basic-auth
118
- 12:39:24,093 INFO [org.torquebox.mc.vdf.PojoDeployment] Fully deployed: "/Users/tobias/work/torquebox/integration-tests/apps/rack/basic_auth"
119
- 12:39:25,408 INFO [STDOUT] {["rack.input", #<IO:0x00000000>]=>nil,
120
- 12:39:25,409 INFO [STDOUT] ["rack.errors", #<IO:0x00000000>]=>nil,
121
- 12:39:25,419 INFO [STDOUT] ["REQUEST_METHOD", "GET"]=>nil,
122
- 12:39:25,423 INFO [STDOUT] ["SCRIPT_NAME", "/basic-auth"]=>nil,
123
- 12:39:25,425 INFO [STDOUT] ["PATH_INFO", "/"]=>nil,
124
- 12:39:25,427 INFO [STDOUT] ["QUERY_STRING", ""]=>nil,
125
- 12:39:25,450 INFO [STDOUT] ["SERVER_NAME", "localhost"]=>nil,
126
- 12:39:25,452 INFO [STDOUT] ["SERVER_PORT", "8080"]=>nil,
127
- 12:39:25,454 INFO [STDOUT] ["CONTENT_TYPE", nil]=>nil,
128
- 12:39:25,457 INFO [STDOUT] ["REQUEST_URI", "/basic-auth/"]=>nil,
129
- 12:39:25,459 INFO [STDOUT] ["REMOTE_ADDR", "127.0.0.1"]=>nil,
130
- 12:39:25,461 INFO [STDOUT] ["rack.url_scheme", "http"]=>nil,
131
- 12:39:25,475 INFO [STDOUT] ["rack.version", [1, 1]]=>nil,
132
- 12:39:25,477 INFO [STDOUT] ["rack.multithread", true]=>nil,
133
- 12:39:25,479 INFO [STDOUT] ["rack.multiprocess", true]=>nil,
134
- 12:39:25,480 INFO [STDOUT] ["rack.run_once", false]=>nil,
135
- 12:39:25,485 INFO [STDOUT] ["HTTP_USER_AGENT", "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)"]=>
136
- 12:39:25,485 INFO [STDOUT] nil,
137
- 12:39:25,492 INFO [STDOUT] ["HTTP_ACCEPT_LANGUAGE", "en-us"]=>nil,
138
- 12:39:25,494 INFO [STDOUT] ["HTTP_ACCEPT", "*/*"]=>nil,
139
- 12:39:25,495 INFO [STDOUT] ["HTTP_HOST", "localhost:8080"]=>nil,
140
- 12:39:25,497 INFO [STDOUT] ["HTTP_CONNECTION", "Keep-Alive"]=>nil,
141
- 12:39:25,498 INFO [STDOUT] ["servlet_request",
142
- 12:39:25,499 INFO [STDOUT] #<Java::OrgApacheCatalinaConnector::RequestFacade:0x626dac12>]=>nil,
143
- 12:39:25,500 INFO [STDOUT] ["java.servlet_request",
144
- 12:39:25,501 INFO [STDOUT] #<Java::OrgApacheCatalinaConnector::RequestFacade:0x626dac12>]=>nil}
145
- 12:39:25,538 INFO [STDOUT] {["rack.input", #<IO:0x00000000>]=>nil,
146
- 12:39:25,538 INFO [STDOUT] ["rack.errors", #<IO:0x00000000>]=>nil,
147
- 12:39:25,540 INFO [STDOUT] ["REQUEST_METHOD", "GET"]=>nil,
148
- 12:39:25,542 INFO [STDOUT] ["SCRIPT_NAME", "/basic-auth"]=>nil,
149
- 12:39:25,543 INFO [STDOUT] ["PATH_INFO", "/"]=>nil,
150
- 12:39:25,545 INFO [STDOUT] ["QUERY_STRING", ""]=>nil,
151
- 12:39:25,546 INFO [STDOUT] ["SERVER_NAME", "localhost"]=>nil,
152
- 12:39:25,548 INFO [STDOUT] ["SERVER_PORT", "8080"]=>nil,
153
- 12:39:25,549 INFO [STDOUT] ["CONTENT_TYPE", nil]=>nil,
154
- 12:39:25,551 INFO [STDOUT] ["REQUEST_URI", "/basic-auth/"]=>nil,
155
- 12:39:25,552 INFO [STDOUT] ["REMOTE_ADDR", "127.0.0.1"]=>nil,
156
- 12:39:25,554 INFO [STDOUT] ["rack.url_scheme", "http"]=>nil,
157
- 12:39:25,556 INFO [STDOUT] ["rack.version", [1, 1]]=>nil,
158
- 12:39:25,558 INFO [STDOUT] ["rack.multithread", true]=>nil,
159
- 12:39:25,559 INFO [STDOUT] ["rack.multiprocess", true]=>nil,
160
- 12:39:25,561 INFO [STDOUT] ["rack.run_once", false]=>nil,
161
- 12:39:25,562 INFO [STDOUT] ["HTTP_USER_AGENT", "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)"]=>
162
- 12:39:25,562 INFO [STDOUT] nil,
163
- 12:39:25,564 INFO [STDOUT] ["HTTP_ACCEPT_LANGUAGE", "en-us"]=>nil,
164
- 12:39:25,575 INFO [STDOUT] ["HTTP_ACCEPT", "*/*"]=>nil,
165
- 12:39:25,576 INFO [STDOUT] ["HTTP_HOST", "localhost:8080"]=>nil,
166
- 12:39:25,578 INFO [STDOUT] ["HTTP_CONNECTION", "Keep-Alive"]=>nil,
167
- 12:39:25,580 INFO [STDOUT] ["HTTP_AUTHORIZATION", "Basic Ym1jd2hpcnRAcmVkaGF0LmNvbTpzd29yZGZpc2g="]=>nil,
168
- 12:39:25,581 INFO [STDOUT] ["servlet_request",
169
- 12:39:25,581 INFO [STDOUT] #<Java::OrgApacheCatalinaConnector::RequestFacade:0x626dac12>]=>nil,
170
- 12:39:25,582 INFO [STDOUT] ["java.servlet_request",
171
- 12:39:25,583 INFO [STDOUT] #<Java::OrgApacheCatalinaConnector::RequestFacade:0x626dac12>]=>nil}
172
- 12:39:25,793 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] undeploy, ctxPath=/basic-auth
173
- 12:39:25,997 INFO [org.jboss.system.server.jmx.JMXKernel] Server exit called, exiting the JVM now!
174
- 12:39:25,998 INFO [STDOUT] Posting Shutdown Request to the server...
175
- 12:39:25,999 INFO [org.jboss.bootstrap.impl.base.server.AbstractServer] Stopping: JBossAS [6.0.0.Final "Neo"]
176
- 12:39:26,001 INFO [org.apache.coyote.http11.Http11Protocol] Pausing Coyote HTTP/1.1 on http-127.0.0.1-8080
177
- 12:39:26,002 INFO [org.apache.coyo
@@ -1,80 +0,0 @@
1
- SQL (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
- SQL (1.0ms) SELECT name, sql FROM sqlite_master WHERE tbl_name = "schema_migrations" AND type = 'index'
3
- SQL (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
- SQL (0.0ms) SELECT name
5
- FROM sqlite_master
6
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7
- SQL (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
8
- SQL (0.0ms) SELECT name
9
- FROM sqlite_master
10
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
11
- SQL (0.0ms)  SELECT name
12
- FROM sqlite_master
13
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
14
- 
15
- SQL (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
16
- Migrating to CreateWidgets (20110421160514)
17
- SQL (1.0ms) CREATE TABLE "widgets" ("id" integer primary key autoincrement not null, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
18
- SQL (0.0ms) SELECT last_insert_rowid()
19
- SQL (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
20
- SQL (0.0ms) SELECT name
21
- FROM sqlite_master
22
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
23
- SQL (0.0ms) SELECT name, sql FROM sqlite_master WHERE tbl_name = "widgets" AND type = 'index'
24
-
25
-
26
- Started GET "/__sinatra__/500.png" for 0:0:0:0:0:0:0:1%0 at Thu Apr 21 12:19:00 -0400 2011
27
-
28
- ActionController::RoutingError (No route matches "/__sinatra__/500.png"):
29
-
30
-
31
- Rendered /Users/tobias/work/torquebox-current/jruby/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (4.0ms)
32
-
33
-
34
- Started GET "/__sinatra__/500.png" for 0:0:0:0:0:0:0:1%0 at Thu Apr 21 12:19:29 -0400 2011
35
-
36
- ActionController::RoutingError (No route matches "/__sinatra__/500.png"):
37
-
38
-
39
- Rendered /Users/tobias/work/torquebox-current/jruby/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (2.0ms)
40
- SQL (0.0ms)  SELECT name
41
- FROM sqlite_master
42
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
43
- 
44
- SQL (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
45
- Migrating to CreateWidgets (20110421160514)
46
- SQL (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
47
- SQL (0.0ms) SELECT name
48
- FROM sqlite_master
49
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
50
- SQL (0.0ms) SELECT name, sql FROM sqlite_master WHERE tbl_name = "widgets" AND type = 'index'
51
-
52
-
53
- Started GET "/__sinatra__/500.png" for 0:0:0:0:0:0:0:1%0 at Thu Apr 21 13:19:32 -0400 2011
54
-
55
- ActionController::RoutingError (No route matches "/__sinatra__/500.png"):
56
-
57
-
58
- Rendered /Users/tobias/work/torquebox-current/jruby/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (4.0ms)
59
-
60
-
61
- Started GET "/widgets" for 0:0:0:0:0:0:0:1%0 at Thu Apr 21 13:52:39 -0400 2011
62
- Processing by WidgetsController#index as HTML
63
- Widget Load (1.0ms) SELECT "widgets".* FROM "widgets"
64
- Rendered widgets/index.html.erb within layouts/application (13.0ms)
65
- Completed 200 OK in 309ms (Views: 36.0ms | ActiveRecord: 1.0ms)
66
-
67
-
68
- Started GET "/widgets" for 0:0:0:0:0:0:0:1%0 at Mon Apr 25 22:25:52 -0400 2011
69
- Processing by WidgetsController#index as HTML
70
- Widget Load (0.0ms) SELECT "widgets".* FROM "widgets"
71
- Rendered widgets/index.html.erb within layouts/application (22.0ms)
72
- Completed 200 OK in 338ms (Views: 36.0ms | ActiveRecord: 0.0ms)
73
-
74
-
75
- Started GET "/__sinatra__/500.png" for 0:0:0:0:0:0:0:1%0 at Mon Apr 25 22:27:02 -0400 2011
76
-
77
- ActionController::RoutingError (No route matches "/__sinatra__/500.png"):
78
-
79
-
80
- Rendered /Users/tobias/work/torquebox-current/jruby/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (2.0ms)
File without changes
data/spec/log_spec.rb DELETED
@@ -1,53 +0,0 @@
1
- #
2
- # Copyright 2011 Red Hat, Inc.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
- #
16
-
17
- require 'spec_helper'
18
-
19
- module Backstage
20
-
21
- describe 'Log' do
22
- describe ".all" do
23
- it "should default to the jboss.server.log.dir if no log_dir provided" do
24
- java.lang.System.should_receive( :get_property ).with( 'jboss.server.log.dir' ).and_return( File.join( TEST_ROOT, 'data', 'jbosslogs' ) )
25
- logs = Log.all
26
- logs.collect( &:name ).should =~ ['boot.log', 'error.log']
27
- end
28
-
29
- it "should use the log_dir provided" do
30
- logs = Log.all( File.join( TEST_ROOT, 'data', 'railsapp', 'log' ) )
31
- logs.collect( &:name ).should =~ ['development.log', 'production.log']
32
- end
33
-
34
- it "should return [] if no logs found" do
35
- Log.all( 'asdfasdf' ).should == []
36
- end
37
- end
38
-
39
- describe "#tail" do
40
-
41
- end
42
-
43
- describe "#size" do
44
- it "should return the file size" do
45
- log_file = File.join( TEST_ROOT, 'data', 'jbosslogs', 'boot.log' )
46
- log = Log.new( log_file )
47
- log.size.should == File.size( log_file )
48
- end
49
- end
50
-
51
-
52
- end
53
- end
data/spec/spec_helper.rb DELETED
@@ -1,48 +0,0 @@
1
- #
2
- # Copyright 2011 Red Hat, Inc.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
- #
16
-
17
- require 'rack/test'
18
- require 'backstage'
19
- require 'json'
20
-
21
- TEST_ROOT = File.expand_path( File.dirname( __FILE__ ) )
22
-
23
- def app
24
- Backstage::Application
25
- end
26
-
27
- def resource_with_mock_mbean(klass)
28
- mock_mbean = mock('mbean')
29
- def mock_mbean.method_missing(method, *args, &block)
30
- method.to_s
31
- end
32
-
33
- if klass == Backstage::Log
34
- resource = Backstage::Log.new(File.join( TEST_ROOT, 'data', 'railsapp', 'log', 'production.log' ))
35
- else
36
- resource = klass.new('mock_mbean', mock_mbean)
37
- resource.stub(:app).and_return(resource_with_mock_mbean(Backstage::App)) unless klass == Backstage::App
38
- end
39
-
40
- resource.stub(:name).and_return('name')
41
- resource.stub(:app_name).and_return('app_name')
42
-
43
- resource
44
- end
45
-
46
- RSpec.configure do |conf|
47
- conf.include Rack::Test::Methods
48
- end