ticketmaster-bugzilla 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- data/.rbenv-gemsets +1 -0
- data/.rbenv-version +1 -0
- data/.travis.yml +4 -0
- data/Gemfile +18 -0
- data/Gemfile.lock +57 -0
- data/Rakefile +6 -12
- data/VERSION +1 -1
- data/lib/provider/bugzilla.rb +0 -10
- data/lib/provider/project.rb +2 -9
- data/lib/provider/ticket.rb +7 -5
- data/spec/comments_spec.rb +12 -12
- data/spec/fixtures/vcr_cassettes/comments-all.yml +127 -0
- data/spec/fixtures/vcr_cassettes/comments-by-array.yml +124 -0
- data/spec/fixtures/vcr_cassettes/comments-by-id.yml +124 -0
- data/spec/fixtures/vcr_cassettes/create-a-ticket.yml +344 -0
- data/spec/fixtures/vcr_cassettes/init-tm-for-comments.yml +37 -0
- data/spec/fixtures/vcr_cassettes/load-all-projects.yml +256 -0
- data/spec/fixtures/vcr_cassettes/load-all-tickets.yml +273 -0
- data/spec/fixtures/vcr_cassettes/load-by-attributes.yml +273 -0
- data/spec/fixtures/vcr_cassettes/load-by-id.yml +89 -0
- data/spec/fixtures/vcr_cassettes/load-tickets-by-ids.yml +89 -0
- data/spec/fixtures/vcr_cassettes/loading-a-project.yml +38 -0
- data/spec/fixtures/vcr_cassettes/project-by-attributes.yml +256 -0
- data/spec/fixtures/vcr_cassettes/project-by-find-method.yml +42 -0
- data/spec/fixtures/vcr_cassettes/project-by-find-with-ids.yml +256 -0
- data/spec/fixtures/vcr_cassettes/project-for-comment.yml +38 -0
- data/spec/fixtures/vcr_cassettes/project-initialization.yml +37 -0
- data/spec/fixtures/vcr_cassettes/projects-by-id.yml +42 -0
- data/spec/fixtures/vcr_cassettes/projects-by-ids.yml +112 -0
- data/spec/fixtures/vcr_cassettes/ticket-by-attribute.yml +35 -0
- data/spec/fixtures/vcr_cassettes/ticket-for-comment.yml +89 -0
- data/spec/fixtures/vcr_cassettes/ticketmaster-instance.yml +37 -0
- data/spec/fixtures/vcr_cassettes/tm-authentication.yml +37 -0
- data/spec/projects_spec.rb +14 -27
- data/spec/spec_helper.rb +4 -3
- data/spec/ticketmaster-bugzilla_spec.rb +1 -2
- data/spec/tickets_spec.rb +17 -25
- data/spec/vcr_setup.rb +7 -0
- data/ticketmaster-bugzilla.gemspec +65 -19
- metadata +157 -15
data/.rbenv-gemsets
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ticketmaster-bugzilla
|
data/.rbenv-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.9.2-p290
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
gem "ticketmaster", "0.6.10"
|
7
|
+
gem "rubyzilla", "~> 0.1"
|
8
|
+
# Add dependencies to develop your gem here.
|
9
|
+
# Include everything needed to run rake, tests, features, etc.
|
10
|
+
group :development do
|
11
|
+
gem "rspec", "~> 2.8"
|
12
|
+
gem "bundler", "~> 1.1"
|
13
|
+
gem "fakeweb", "~> 1.3"
|
14
|
+
gem "vcr", "~> 1.11"
|
15
|
+
gem "jeweler", "~> 1.6"
|
16
|
+
gem "simplecov", "~> 0.5", :platforms => :ruby_19
|
17
|
+
gem "rcov", "~> 1.0", :platforms => :ruby_18
|
18
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
activemodel (3.2.2)
|
5
|
+
activesupport (= 3.2.2)
|
6
|
+
builder (~> 3.0.0)
|
7
|
+
activeresource (3.2.2)
|
8
|
+
activemodel (= 3.2.2)
|
9
|
+
activesupport (= 3.2.2)
|
10
|
+
activesupport (3.2.2)
|
11
|
+
i18n (~> 0.6)
|
12
|
+
multi_json (~> 1.0)
|
13
|
+
builder (3.0.0)
|
14
|
+
diff-lcs (1.1.3)
|
15
|
+
fakeweb (1.3.0)
|
16
|
+
git (1.2.5)
|
17
|
+
hashie (1.2.0)
|
18
|
+
i18n (0.6.0)
|
19
|
+
jeweler (1.6.4)
|
20
|
+
bundler (~> 1.0)
|
21
|
+
git (>= 1.2.5)
|
22
|
+
rake
|
23
|
+
multi_json (1.0.4)
|
24
|
+
rake (0.9.2.2)
|
25
|
+
rcov (1.0.0)
|
26
|
+
rspec (2.8.0)
|
27
|
+
rspec-core (~> 2.8.0)
|
28
|
+
rspec-expectations (~> 2.8.0)
|
29
|
+
rspec-mocks (~> 2.8.0)
|
30
|
+
rspec-core (2.8.0)
|
31
|
+
rspec-expectations (2.8.0)
|
32
|
+
diff-lcs (~> 1.1.2)
|
33
|
+
rspec-mocks (2.8.0)
|
34
|
+
rubyzilla (0.1.1)
|
35
|
+
simplecov (0.5.4)
|
36
|
+
multi_json (~> 1.0.3)
|
37
|
+
simplecov-html (~> 0.5.3)
|
38
|
+
simplecov-html (0.5.3)
|
39
|
+
ticketmaster (0.6.10)
|
40
|
+
activeresource (~> 3.0)
|
41
|
+
activesupport (~> 3.0)
|
42
|
+
hashie (~> 1.2)
|
43
|
+
vcr (1.11.3)
|
44
|
+
|
45
|
+
PLATFORMS
|
46
|
+
ruby
|
47
|
+
|
48
|
+
DEPENDENCIES
|
49
|
+
bundler (~> 1.1)
|
50
|
+
fakeweb (~> 1.3)
|
51
|
+
jeweler (~> 1.6)
|
52
|
+
rcov (~> 1.0)
|
53
|
+
rspec (~> 2.8)
|
54
|
+
rubyzilla (~> 0.1)
|
55
|
+
simplecov (~> 0.5)
|
56
|
+
ticketmaster (= 0.6.10)
|
57
|
+
vcr (~> 1.11)
|
data/Rakefile
CHANGED
@@ -10,9 +10,6 @@ begin
|
|
10
10
|
gem.email = "rafael@hybridgroup.com"
|
11
11
|
gem.homepage = "http://github.com/hybridgroup/ticketmaster-bugzilla"
|
12
12
|
gem.authors = ["Rafael George"]
|
13
|
-
gem.add_development_dependency "rspec", ">= 1.2.9"
|
14
|
-
gem.add_dependency "ticketmaster", ">= 0.6.0"
|
15
|
-
gem.add_dependency "rubyzilla"
|
16
13
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
17
14
|
end
|
18
15
|
Jeweler::GemcutterTasks.new
|
@@ -20,20 +17,17 @@ rescue LoadError
|
|
20
17
|
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
21
18
|
end
|
22
19
|
|
23
|
-
require '
|
24
|
-
|
25
|
-
|
26
|
-
spec.
|
20
|
+
require 'rspec/core'
|
21
|
+
require 'rspec/core/rake_task'
|
22
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
23
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
27
24
|
end
|
28
25
|
|
29
|
-
|
30
|
-
spec.libs << 'lib' << 'spec'
|
26
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
31
27
|
spec.pattern = 'spec/**/*_spec.rb'
|
32
28
|
spec.rcov = true
|
33
29
|
end
|
34
30
|
|
35
|
-
task :spec => :check_dependencies
|
36
|
-
|
37
31
|
task :default => :spec
|
38
32
|
|
39
33
|
require 'rake/rdoctask'
|
@@ -41,7 +35,7 @@ Rake::RDocTask.new do |rdoc|
|
|
41
35
|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
42
36
|
|
43
37
|
rdoc.rdoc_dir = 'rdoc'
|
44
|
-
rdoc.title = "ticketmaster-
|
38
|
+
rdoc.title = "ticketmaster-redmine#{version}"
|
45
39
|
rdoc.rdoc_files.include('README*')
|
46
40
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
47
41
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.9
|
data/lib/provider/bugzilla.rb
CHANGED
@@ -34,16 +34,6 @@ module TicketMaster::Provider
|
|
34
34
|
Rubyzilla::Bugzilla.logged_in?
|
35
35
|
end
|
36
36
|
|
37
|
-
def projects(*options)
|
38
|
-
if options.empty?
|
39
|
-
PROJECT_API.list.collect { |product| Project.new product }
|
40
|
-
elsif options.first.is_a? Array
|
41
|
-
options.first.collect { |id| Project.find(id) }
|
42
|
-
elsif options.first.is_a? Hash
|
43
|
-
Project.find_by_attributes(options)
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
37
|
def project(*options)
|
48
38
|
unless options.empty?
|
49
39
|
Project.find(options.first)
|
data/lib/provider/project.rb
CHANGED
@@ -39,15 +39,8 @@ module TicketMaster::Provider
|
|
39
39
|
self.new PRODUCT_API.new id
|
40
40
|
end
|
41
41
|
|
42
|
-
def self.find_by_attributes(
|
43
|
-
|
44
|
-
if options.is_a? Hash
|
45
|
-
search_by_attribute(self.find_all, options)
|
46
|
-
else
|
47
|
-
self.find_all.select do |project|
|
48
|
-
options.any? { |id| project.id == id }
|
49
|
-
end
|
50
|
-
end
|
42
|
+
def self.find_by_attributes(attributes = {})
|
43
|
+
search_by_attribute(self.find_all, attributes)
|
51
44
|
end
|
52
45
|
|
53
46
|
def self.find_all(*options)
|
data/lib/provider/ticket.rb
CHANGED
@@ -65,23 +65,25 @@ module TicketMaster::Provider
|
|
65
65
|
|
66
66
|
def updated_at
|
67
67
|
begin
|
68
|
-
normalize_datetime(self[:last_change_time])
|
68
|
+
normalize_datetime(self[:last_change_time])
|
69
69
|
rescue
|
70
70
|
self[:updated_at]
|
71
71
|
end
|
72
72
|
end
|
73
73
|
|
74
74
|
def self.find_by_id(id)
|
75
|
-
|
75
|
+
bug = Rubyzilla::Bug.new id
|
76
|
+
self.new bug
|
76
77
|
end
|
77
78
|
|
78
79
|
def self.find(project_id, *options)
|
79
80
|
if options.first.empty?
|
80
81
|
TICKETS_API.new(project_id).bugs.collect { |bug| self.new bug }
|
81
|
-
elsif options.first.is_a? Array
|
82
|
-
|
82
|
+
elsif options[0].first.is_a? Array
|
83
|
+
options[0].first.collect { |bug_id| self.find_by_id bug_id }
|
83
84
|
elsif options[0].first.is_a? Hash
|
84
|
-
TICKETS_API.new(project_id).bugs
|
85
|
+
bugs = TICKETS_API.new(project_id).bugs.collect { |bug| self.new bug }
|
86
|
+
search_by_attribute(bugs, options[0].first)
|
85
87
|
end
|
86
88
|
end
|
87
89
|
|
data/spec/comments_spec.rb
CHANGED
@@ -7,26 +7,26 @@ describe "Ticketmaster::Provider::Bugzilla::Comment" do
|
|
7
7
|
end
|
8
8
|
|
9
9
|
before(:each) do
|
10
|
-
@ticketmaster = TicketMaster.new(:bugzilla, {:username => 'george.rafael@gmail.com', :password => '123456', :url => 'https://landfill.bugzilla.org/bugzilla-3.6-branch'})
|
11
|
-
@project = @ticketmaster.project(
|
12
|
-
@ticket = @project.ticket(7039)
|
10
|
+
VCR.use_cassette('init-tm-for-comments') { @ticketmaster = TicketMaster.new(:bugzilla, {:username => 'george.rafael@gmail.com', :password => '123456', :url => 'https://landfill.bugzilla.org/bugzilla-3.6-branch'}) }
|
11
|
+
VCR.use_cassette('project-for-comment') { @project = @ticketmaster.project(20) }
|
12
|
+
VCR.use_cassette('ticket-for-comment') { @ticket = @project.ticket(7039) }
|
13
13
|
end
|
14
14
|
|
15
15
|
it "should be able to load all comments from a ticket" do
|
16
|
-
comments = @ticket.comments
|
17
|
-
comments.should be_an_instance_of(Array)
|
18
|
-
comments.first.should be_an_instance_of(@klass)
|
16
|
+
VCR.use_cassette('comments-all') { @comments = @ticket.comments }
|
17
|
+
@comments.should be_an_instance_of(Array)
|
18
|
+
@comments.first.should be_an_instance_of(@klass)
|
19
19
|
end
|
20
20
|
|
21
21
|
it "should be able to load all comments based on array of id's" do
|
22
|
-
comments = @ticket.comments([18575])
|
23
|
-
comments.should be_an_instance_of(Array)
|
24
|
-
comments.first.should be_an_instance_of(@klass)
|
22
|
+
VCR.use_cassette('comments-by-array') { @comments = @ticket.comments([18575]) }
|
23
|
+
@comments.should be_an_instance_of(Array)
|
24
|
+
@comments.first.should be_an_instance_of(@klass)
|
25
25
|
end
|
26
26
|
|
27
27
|
it "should be able to load a comment based on an id" do
|
28
|
-
comment = @ticket.comment(18575)
|
29
|
-
comment.should be_an_instance_of(@klass)
|
30
|
-
comment.id.should == 18575
|
28
|
+
VCR.use_cassette('comments-by-id') { @comment = @ticket.comment(18575) }
|
29
|
+
@comment.should be_an_instance_of(@klass)
|
30
|
+
@comment.id.should == 18575
|
31
31
|
end
|
32
32
|
end
|
@@ -0,0 +1,127 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://landfill.bugzilla.org:443/bugzilla-3.6-branch/xmlrpc.cgi
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
user-agent:
|
9
|
+
- XMLRPC::Client (Ruby 1.9.3)
|
10
|
+
content-type:
|
11
|
+
- text/xml; charset=utf-8
|
12
|
+
content-length:
|
13
|
+
- '253'
|
14
|
+
connection:
|
15
|
+
- keep-alive
|
16
|
+
cookie:
|
17
|
+
- Bugzilla_login=40167; Bugzilla_logincookie=cgIr99krZk
|
18
|
+
response: !ruby/struct:VCR::Response
|
19
|
+
status: !ruby/struct:VCR::ResponseStatus
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
date:
|
24
|
+
- Tue, 07 Feb 2012 00:57:53 GMT
|
25
|
+
server:
|
26
|
+
- Apache/2.2.3 (CentOS)
|
27
|
+
soapserver:
|
28
|
+
- SOAP::Lite/Perl/0.712
|
29
|
+
content-length:
|
30
|
+
- '4764'
|
31
|
+
content-type:
|
32
|
+
- text/xml
|
33
|
+
body: <?xml version="1.0" encoding="UTF-8"?><methodResponse><params><param><value><struct><member><name>faults</name><value><array><data
|
34
|
+
/></array></value></member><member><name>bugs</name><value><array><data><value><struct><member><name>priority</name><value><string>P1</string></value></member><member><name>status</name><value><string>NEW</string></value></member><member><name>last_change_time</name><value><dateTime.iso8601>20100202T07:25:13</dateTime.iso8601></value></member><member><name>component</name><value><string>EconomicControl</string></value></member><member><name>summary</name><value><string>Test
|
35
|
+
case for iTest</string></value></member><member><name>internals</name><value><struct><member><name>priority</name><value><string>P1</string></value></member><member><name>bug_id</name><value><int>7039</int></value></member><member><name>cclist_accessible</name><value><int>1</int></value></member><member><name>cf_drop_down</name><value><string>Option
|
36
|
+
1</string></value></member><member><name>assigned_to</name><value><int>32864</int></value></member><member><name>short_desc</name><value><string>Test
|
37
|
+
case for iTest</string></value></member><member><name>everconfirmed</name><value><int>1</int></value></member><member><name>bug_severity</name><value><string>critical</string></value></member><member><name>reporter_id</name><value><int>32952</int></value></member><member><name>estimated_time</name><value><double>0.00</double></value></member><member><name>remaining_time</name><value><double>0.00</double></value></member><member><name>cf_large_text</name><value><string
|
38
|
+
/></value></member><member><name>cf_free_text</name><value><string /></value></member><member><name>resolution</name><value><string
|
39
|
+
/></value></member><member><name>reporter_accessible</name><value><int>1</int></value></member><member><name>op_sys</name><value><string>Windows
|
40
|
+
XP</string></value></member><member><name>status</name><value><struct><member><name>sortkey</name><value><int>200</int></value></member><member><name>value</name><value><string>NEW</string></value></member><member><name>is_open</name><value><int>1</int></value></member><member><name>isactive</name><value><int>1</int></value></member><member><name>id</name><value><int>2</int></value></member></struct></value></member><member><name>_multi_selects</name><value><array><data><value><struct><member><name>mailhead</name><value><int>1</int></value></member><member><name>sortkey</name><value><int>551</int></value></member><member><name>custom</name><value><int>1</int></value></member><member><name>name</name><value><string>cf_mulitple_select</string></value></member><member><name>description</name><value><string>A
|
41
|
+
multiple-select box</string></value></member><member><name>buglist</name><value><int>0</int></value></member><member><name>obsolete</name><value><int>0</int></value></member><member><name>enter_bug</name><value><int>1</int></value></member><member><name>id</name><value><int>61</int></value></member><member><name>type</name><value><int>3</int></value></member></struct></value></data></array></value></member><member><name>bug_file_loc</name><value><string
|
42
|
+
/></value></member><member><name>product_id</name><value><int>1</int></value></member><member><name>rep_platform</name><value><string>PC</string></value></member><member><name>creation_ts</name><value><string>2008.09.29
|
43
|
+
13:33</string></value></member><member><name>status_whiteboard</name><value><string
|
44
|
+
/></value></member><member><name>bug_status</name><value><string>NEW</string></value></member><member><name>delta_ts</name><value><string>2010-02-01
|
45
|
+
23:25:13</string></value></member><member><name>version</name><value><double>1.0</double></value></member><member><name>component_id</name><value><int>2</int></value></member><member><name>component</name><value><string>EconomicControl</string></value></member><member><name>target_milestone</name><value><string>---</string></value></member><member><name>product</name><value><string>WorldControl</string></value></member></struct></value></member><member><name>is_open</name><value><boolean>1</boolean></value></member><member><name>assigned_to</name><value><string>bugzilla@cristilio.com</string></value></member><member><name>resolution</name><value><string
|
46
|
+
/></value></member><member><name>product</name><value><string>WorldControl</string></value></member><member><name>creation_time</name><value><dateTime.iso8601>20080929T20:33:00</dateTime.iso8601></value></member><member><name>id</name><value><int>7039</int></value></member><member><name>alias</name><value><string
|
47
|
+
/></value></member><member><name>severity</name><value><string>critical</string></value></member></struct></value></data></array></value></member></struct></value></param></params></methodResponse>
|
48
|
+
http_version: '1.1'
|
49
|
+
- !ruby/struct:VCR::HTTPInteraction
|
50
|
+
request: !ruby/struct:VCR::Request
|
51
|
+
method: :post
|
52
|
+
uri: https://landfill.bugzilla.org:443/bugzilla-3.6-branch/xmlrpc.cgi
|
53
|
+
body:
|
54
|
+
headers:
|
55
|
+
user-agent:
|
56
|
+
- XMLRPC::Client (Ruby 1.9.3)
|
57
|
+
content-type:
|
58
|
+
- text/xml; charset=utf-8
|
59
|
+
content-length:
|
60
|
+
- '258'
|
61
|
+
connection:
|
62
|
+
- keep-alive
|
63
|
+
cookie:
|
64
|
+
- Bugzilla_login=40167; Bugzilla_logincookie=cgIr99krZk
|
65
|
+
response: !ruby/struct:VCR::Response
|
66
|
+
status: !ruby/struct:VCR::ResponseStatus
|
67
|
+
code: 200
|
68
|
+
message: OK
|
69
|
+
headers:
|
70
|
+
date:
|
71
|
+
- Tue, 07 Feb 2012 00:57:56 GMT
|
72
|
+
server:
|
73
|
+
- Apache/2.2.3 (CentOS)
|
74
|
+
soapserver:
|
75
|
+
- SOAP::Lite/Perl/0.712
|
76
|
+
content-length:
|
77
|
+
- '1644'
|
78
|
+
content-type:
|
79
|
+
- text/xml
|
80
|
+
body: ! '<?xml version="1.0" encoding="UTF-8"?><methodResponse><params><param><value><struct><member><name>products</name><value><array><data><value><struct><member><name>internals</name><value><struct><member><name>defaultmilestone</name><value><string>---</string></value></member><member><name>allows_unconfirmed</name><value><int>0</int></value></member><member><name>votesperuser</name><value><int>1000</int></value></member><member><name>name</name><value><string>WorldControl</string></value></member><member><name>maxvotesperbug</name><value><int>1</int></value></member><member><name>classification_id</name><value><int>2</int></value></member><member><name>description</name><value><string>A
|
81
|
+
small little program for controlling the world. Can be used
|
82
|
+
|
83
|
+
for good or for evil. Sub-components can be created using the WorldControl API
|
84
|
+
to extend control into almost any aspect of reality.</string></value></member><member><name>votestoconfirm</name><value><int>0</int></value></member><member><name>isactive</name><value><int>1</int></value></member><member><name>id</name><value><int>1</int></value></member></struct></value></member><member><name>name</name><value><string>WorldControl</string></value></member><member><name>id</name><value><int>1</int></value></member><member><name>description</name><value><string>A
|
85
|
+
small little program for controlling the world. Can be used
|
86
|
+
|
87
|
+
for good or for evil. Sub-components can be created using the WorldControl API
|
88
|
+
to extend control into almost any aspect of reality.</string></value></member></struct></value></data></array></value></member></struct></value></param></params></methodResponse>'
|
89
|
+
http_version: '1.1'
|
90
|
+
- !ruby/struct:VCR::HTTPInteraction
|
91
|
+
request: !ruby/struct:VCR::Request
|
92
|
+
method: :post
|
93
|
+
uri: https://landfill.bugzilla.org:443/bugzilla-3.6-branch/xmlrpc.cgi
|
94
|
+
body:
|
95
|
+
headers:
|
96
|
+
user-agent:
|
97
|
+
- XMLRPC::Client (Ruby 1.9.3)
|
98
|
+
content-type:
|
99
|
+
- text/xml; charset=utf-8
|
100
|
+
content-length:
|
101
|
+
- '253'
|
102
|
+
connection:
|
103
|
+
- keep-alive
|
104
|
+
cookie:
|
105
|
+
- Bugzilla_login=40167; Bugzilla_logincookie=cgIr99krZk
|
106
|
+
response: !ruby/struct:VCR::Response
|
107
|
+
status: !ruby/struct:VCR::ResponseStatus
|
108
|
+
code: 200
|
109
|
+
message: OK
|
110
|
+
headers:
|
111
|
+
date:
|
112
|
+
- Tue, 07 Feb 2012 00:58:00 GMT
|
113
|
+
server:
|
114
|
+
- Apache/2.2.3 (CentOS)
|
115
|
+
soapserver:
|
116
|
+
- SOAP::Lite/Perl/0.712
|
117
|
+
content-length:
|
118
|
+
- '2044'
|
119
|
+
content-type:
|
120
|
+
- text/xml
|
121
|
+
body: ! '<?xml version="1.0" encoding="UTF-8"?><methodResponse><params><param><value><struct><member><name>bugs</name><value><struct><member><name>7039</name><value><struct><member><name>comments</name><value><array><data><value><struct><member><name>is_private</name><value><boolean>0</boolean></value></member><member><name>time</name><value><dateTime.iso8601>20080929T20:33:18</dateTime.iso8601></value></member><member><name>text</name><value><string>Here
|
122
|
+
is the body of the case.</string></value></member><member><name>id</name><value><int>12754</int></value></member><member><name>bug_id</name><value><int>7039</int></value></member><member><name>author</name><value><string>onkliros@yahoo.com</string></value></member></struct></value><value><struct><member><name>is_private</name><value><boolean>0</boolean></value></member><member><name>attachment_id</name><value><int>1113</int></value></member><member><name>time</name><value><dateTime.iso8601>20080930T20:25:57</dateTime.iso8601></value></member><member><name>text</name><value><string>Created
|
123
|
+
attachment 1113
|
124
|
+
|
125
|
+
Screenshot</string></value></member><member><name>id</name><value><int>12769</int></value></member><member><name>bug_id</name><value><int>7039</int></value></member><member><name>author</name><value><string>dan.kurtz@broadwaysystems.com</string></value></member></struct></value><value><struct><member><name>is_private</name><value><boolean>0</boolean></value></member><member><name>time</name><value><dateTime.iso8601>20100202T07:25:13</dateTime.iso8601></value></member><member><name>text</name><value><string>testest</string></value></member><member><name>id</name><value><int>17042</int></value></member><member><name>bug_id</name><value><int>7039</int></value></member><member><name>author</name><value><string>firdaus.ramlan@gmail.com</string></value></member></struct></value></data></array></value></member></struct></value></member></struct></value></member><member><name>comments</name><value><struct
|
126
|
+
/></value></member></struct></value></param></params></methodResponse>'
|
127
|
+
http_version: '1.1'
|
@@ -0,0 +1,124 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://landfill.bugzilla.org:443/bugzilla-3.6-branch/xmlrpc.cgi
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
user-agent:
|
9
|
+
- XMLRPC::Client (Ruby 1.9.3)
|
10
|
+
content-type:
|
11
|
+
- text/xml; charset=utf-8
|
12
|
+
content-length:
|
13
|
+
- '253'
|
14
|
+
connection:
|
15
|
+
- keep-alive
|
16
|
+
cookie:
|
17
|
+
- Bugzilla_login=40167; Bugzilla_logincookie=cgIr99krZk
|
18
|
+
response: !ruby/struct:VCR::Response
|
19
|
+
status: !ruby/struct:VCR::ResponseStatus
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
date:
|
24
|
+
- Tue, 07 Feb 2012 01:01:34 GMT
|
25
|
+
server:
|
26
|
+
- Apache/2.2.3 (CentOS)
|
27
|
+
soapserver:
|
28
|
+
- SOAP::Lite/Perl/0.712
|
29
|
+
content-length:
|
30
|
+
- '4764'
|
31
|
+
content-type:
|
32
|
+
- text/xml
|
33
|
+
body: <?xml version="1.0" encoding="UTF-8"?><methodResponse><params><param><value><struct><member><name>faults</name><value><array><data
|
34
|
+
/></array></value></member><member><name>bugs</name><value><array><data><value><struct><member><name>priority</name><value><string>P1</string></value></member><member><name>status</name><value><string>NEW</string></value></member><member><name>last_change_time</name><value><dateTime.iso8601>20100202T07:25:13</dateTime.iso8601></value></member><member><name>component</name><value><string>EconomicControl</string></value></member><member><name>summary</name><value><string>Test
|
35
|
+
case for iTest</string></value></member><member><name>internals</name><value><struct><member><name>priority</name><value><string>P1</string></value></member><member><name>bug_id</name><value><int>7039</int></value></member><member><name>cclist_accessible</name><value><int>1</int></value></member><member><name>cf_drop_down</name><value><string>Option
|
36
|
+
1</string></value></member><member><name>assigned_to</name><value><int>32864</int></value></member><member><name>short_desc</name><value><string>Test
|
37
|
+
case for iTest</string></value></member><member><name>everconfirmed</name><value><int>1</int></value></member><member><name>bug_severity</name><value><string>critical</string></value></member><member><name>reporter_id</name><value><int>32952</int></value></member><member><name>estimated_time</name><value><double>0.00</double></value></member><member><name>remaining_time</name><value><double>0.00</double></value></member><member><name>cf_large_text</name><value><string
|
38
|
+
/></value></member><member><name>cf_free_text</name><value><string /></value></member><member><name>resolution</name><value><string
|
39
|
+
/></value></member><member><name>reporter_accessible</name><value><int>1</int></value></member><member><name>op_sys</name><value><string>Windows
|
40
|
+
XP</string></value></member><member><name>status</name><value><struct><member><name>sortkey</name><value><int>200</int></value></member><member><name>value</name><value><string>NEW</string></value></member><member><name>is_open</name><value><int>1</int></value></member><member><name>isactive</name><value><int>1</int></value></member><member><name>id</name><value><int>2</int></value></member></struct></value></member><member><name>_multi_selects</name><value><array><data><value><struct><member><name>mailhead</name><value><int>1</int></value></member><member><name>sortkey</name><value><int>551</int></value></member><member><name>custom</name><value><int>1</int></value></member><member><name>name</name><value><string>cf_mulitple_select</string></value></member><member><name>description</name><value><string>A
|
41
|
+
multiple-select box</string></value></member><member><name>buglist</name><value><int>0</int></value></member><member><name>obsolete</name><value><int>0</int></value></member><member><name>enter_bug</name><value><int>1</int></value></member><member><name>id</name><value><int>61</int></value></member><member><name>type</name><value><int>3</int></value></member></struct></value></data></array></value></member><member><name>bug_file_loc</name><value><string
|
42
|
+
/></value></member><member><name>product_id</name><value><int>1</int></value></member><member><name>rep_platform</name><value><string>PC</string></value></member><member><name>creation_ts</name><value><string>2008.09.29
|
43
|
+
13:33</string></value></member><member><name>status_whiteboard</name><value><string
|
44
|
+
/></value></member><member><name>bug_status</name><value><string>NEW</string></value></member><member><name>delta_ts</name><value><string>2010-02-01
|
45
|
+
23:25:13</string></value></member><member><name>version</name><value><double>1.0</double></value></member><member><name>component_id</name><value><int>2</int></value></member><member><name>component</name><value><string>EconomicControl</string></value></member><member><name>target_milestone</name><value><string>---</string></value></member><member><name>product</name><value><string>WorldControl</string></value></member></struct></value></member><member><name>is_open</name><value><boolean>1</boolean></value></member><member><name>assigned_to</name><value><string>bugzilla@cristilio.com</string></value></member><member><name>resolution</name><value><string
|
46
|
+
/></value></member><member><name>product</name><value><string>WorldControl</string></value></member><member><name>creation_time</name><value><dateTime.iso8601>20080929T20:33:00</dateTime.iso8601></value></member><member><name>id</name><value><int>7039</int></value></member><member><name>alias</name><value><string
|
47
|
+
/></value></member><member><name>severity</name><value><string>critical</string></value></member></struct></value></data></array></value></member></struct></value></param></params></methodResponse>
|
48
|
+
http_version: '1.1'
|
49
|
+
- !ruby/struct:VCR::HTTPInteraction
|
50
|
+
request: !ruby/struct:VCR::Request
|
51
|
+
method: :post
|
52
|
+
uri: https://landfill.bugzilla.org:443/bugzilla-3.6-branch/xmlrpc.cgi
|
53
|
+
body:
|
54
|
+
headers:
|
55
|
+
user-agent:
|
56
|
+
- XMLRPC::Client (Ruby 1.9.3)
|
57
|
+
content-type:
|
58
|
+
- text/xml; charset=utf-8
|
59
|
+
content-length:
|
60
|
+
- '258'
|
61
|
+
connection:
|
62
|
+
- keep-alive
|
63
|
+
cookie:
|
64
|
+
- Bugzilla_login=40167; Bugzilla_logincookie=cgIr99krZk
|
65
|
+
response: !ruby/struct:VCR::Response
|
66
|
+
status: !ruby/struct:VCR::ResponseStatus
|
67
|
+
code: 200
|
68
|
+
message: OK
|
69
|
+
headers:
|
70
|
+
date:
|
71
|
+
- Tue, 07 Feb 2012 01:01:36 GMT
|
72
|
+
server:
|
73
|
+
- Apache/2.2.3 (CentOS)
|
74
|
+
soapserver:
|
75
|
+
- SOAP::Lite/Perl/0.712
|
76
|
+
content-length:
|
77
|
+
- '1644'
|
78
|
+
content-type:
|
79
|
+
- text/xml
|
80
|
+
body: ! '<?xml version="1.0" encoding="UTF-8"?><methodResponse><params><param><value><struct><member><name>products</name><value><array><data><value><struct><member><name>internals</name><value><struct><member><name>defaultmilestone</name><value><string>---</string></value></member><member><name>allows_unconfirmed</name><value><int>0</int></value></member><member><name>votesperuser</name><value><int>1000</int></value></member><member><name>name</name><value><string>WorldControl</string></value></member><member><name>maxvotesperbug</name><value><int>1</int></value></member><member><name>classification_id</name><value><int>2</int></value></member><member><name>description</name><value><string>A
|
81
|
+
small little program for controlling the world. Can be used
|
82
|
+
|
83
|
+
for good or for evil. Sub-components can be created using the WorldControl API
|
84
|
+
to extend control into almost any aspect of reality.</string></value></member><member><name>votestoconfirm</name><value><int>0</int></value></member><member><name>isactive</name><value><int>1</int></value></member><member><name>id</name><value><int>1</int></value></member></struct></value></member><member><name>name</name><value><string>WorldControl</string></value></member><member><name>id</name><value><int>1</int></value></member><member><name>description</name><value><string>A
|
85
|
+
small little program for controlling the world. Can be used
|
86
|
+
|
87
|
+
for good or for evil. Sub-components can be created using the WorldControl API
|
88
|
+
to extend control into almost any aspect of reality.</string></value></member></struct></value></data></array></value></member></struct></value></param></params></methodResponse>'
|
89
|
+
http_version: '1.1'
|
90
|
+
- !ruby/struct:VCR::HTTPInteraction
|
91
|
+
request: !ruby/struct:VCR::Request
|
92
|
+
method: :post
|
93
|
+
uri: https://landfill.bugzilla.org:443/bugzilla-3.6-branch/xmlrpc.cgi
|
94
|
+
body:
|
95
|
+
headers:
|
96
|
+
user-agent:
|
97
|
+
- XMLRPC::Client (Ruby 1.9.3)
|
98
|
+
content-type:
|
99
|
+
- text/xml; charset=utf-8
|
100
|
+
content-length:
|
101
|
+
- '262'
|
102
|
+
connection:
|
103
|
+
- keep-alive
|
104
|
+
cookie:
|
105
|
+
- Bugzilla_login=40167; Bugzilla_logincookie=cgIr99krZk
|
106
|
+
response: !ruby/struct:VCR::Response
|
107
|
+
status: !ruby/struct:VCR::ResponseStatus
|
108
|
+
code: 200
|
109
|
+
message: OK
|
110
|
+
headers:
|
111
|
+
date:
|
112
|
+
- Tue, 07 Feb 2012 01:01:37 GMT
|
113
|
+
server:
|
114
|
+
- Apache/2.2.3 (CentOS)
|
115
|
+
soapserver:
|
116
|
+
- SOAP::Lite/Perl/0.712
|
117
|
+
content-length:
|
118
|
+
- '858'
|
119
|
+
content-type:
|
120
|
+
- text/xml
|
121
|
+
body: <?xml version="1.0" encoding="UTF-8"?><methodResponse><params><param><value><struct><member><name>bugs</name><value><struct
|
122
|
+
/></value></member><member><name>comments</name><value><struct><member><name>18575</name><value><struct><member><name>is_private</name><value><boolean>0</boolean></value></member><member><name>time</name><value><dateTime.iso8601>20110104T13:16:09</dateTime.iso8601></value></member><member><name>text</name><value><string>Na
|
123
|
+
ja, dann will ich mich auch mal verewigen; viele Grüsse an Bugzilla</string></value></member><member><name>id</name><value><int>18575</int></value></member><member><name>bug_id</name><value><int>1</int></value></member><member><name>author</name><value><string>gerd.heusel@web.de</string></value></member></struct></value></member></struct></value></member></struct></value></param></params></methodResponse>
|
124
|
+
http_version: '1.1'
|