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.
Files changed (40) hide show
  1. data/.rbenv-gemsets +1 -0
  2. data/.rbenv-version +1 -0
  3. data/.travis.yml +4 -0
  4. data/Gemfile +18 -0
  5. data/Gemfile.lock +57 -0
  6. data/Rakefile +6 -12
  7. data/VERSION +1 -1
  8. data/lib/provider/bugzilla.rb +0 -10
  9. data/lib/provider/project.rb +2 -9
  10. data/lib/provider/ticket.rb +7 -5
  11. data/spec/comments_spec.rb +12 -12
  12. data/spec/fixtures/vcr_cassettes/comments-all.yml +127 -0
  13. data/spec/fixtures/vcr_cassettes/comments-by-array.yml +124 -0
  14. data/spec/fixtures/vcr_cassettes/comments-by-id.yml +124 -0
  15. data/spec/fixtures/vcr_cassettes/create-a-ticket.yml +344 -0
  16. data/spec/fixtures/vcr_cassettes/init-tm-for-comments.yml +37 -0
  17. data/spec/fixtures/vcr_cassettes/load-all-projects.yml +256 -0
  18. data/spec/fixtures/vcr_cassettes/load-all-tickets.yml +273 -0
  19. data/spec/fixtures/vcr_cassettes/load-by-attributes.yml +273 -0
  20. data/spec/fixtures/vcr_cassettes/load-by-id.yml +89 -0
  21. data/spec/fixtures/vcr_cassettes/load-tickets-by-ids.yml +89 -0
  22. data/spec/fixtures/vcr_cassettes/loading-a-project.yml +38 -0
  23. data/spec/fixtures/vcr_cassettes/project-by-attributes.yml +256 -0
  24. data/spec/fixtures/vcr_cassettes/project-by-find-method.yml +42 -0
  25. data/spec/fixtures/vcr_cassettes/project-by-find-with-ids.yml +256 -0
  26. data/spec/fixtures/vcr_cassettes/project-for-comment.yml +38 -0
  27. data/spec/fixtures/vcr_cassettes/project-initialization.yml +37 -0
  28. data/spec/fixtures/vcr_cassettes/projects-by-id.yml +42 -0
  29. data/spec/fixtures/vcr_cassettes/projects-by-ids.yml +112 -0
  30. data/spec/fixtures/vcr_cassettes/ticket-by-attribute.yml +35 -0
  31. data/spec/fixtures/vcr_cassettes/ticket-for-comment.yml +89 -0
  32. data/spec/fixtures/vcr_cassettes/ticketmaster-instance.yml +37 -0
  33. data/spec/fixtures/vcr_cassettes/tm-authentication.yml +37 -0
  34. data/spec/projects_spec.rb +14 -27
  35. data/spec/spec_helper.rb +4 -3
  36. data/spec/ticketmaster-bugzilla_spec.rb +1 -2
  37. data/spec/tickets_spec.rb +17 -25
  38. data/spec/vcr_setup.rb +7 -0
  39. data/ticketmaster-bugzilla.gemspec +65 -19
  40. metadata +157 -15
@@ -0,0 +1,38 @@
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
+ - '259'
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:55:09 GMT
25
+ server:
26
+ - Apache/2.2.3 (CentOS)
27
+ soapserver:
28
+ - SOAP::Lite/Perl/0.712
29
+ content-length:
30
+ - '1307'
31
+ content-type:
32
+ - text/xml
33
+ 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>0</int></value></member><member><name>name</name><value><string>LJL
34
+ Test Product</string></value></member><member><name>maxvotesperbug</name><value><int>10000</int></value></member><member><name>classification_id</name><value><int>1</int></value></member><member><name>description</name><value><string>Test
35
+ product description</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>20</int></value></member></struct></value></member><member><name>name</name><value><string>LJL
36
+ Test Product</string></value></member><member><name>id</name><value><int>20</int></value></member><member><name>description</name><value><string>Test
37
+ product description</string></value></member></struct></value></data></array></value></member></struct></value></param></params></methodResponse>
38
+ http_version: '1.1'
@@ -0,0 +1,37 @@
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
+ - '376'
14
+ connection:
15
+ - keep-alive
16
+ response: !ruby/struct:VCR::Response
17
+ status: !ruby/struct:VCR::ResponseStatus
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ date:
22
+ - Tue, 07 Feb 2012 00:44:39 GMT
23
+ server:
24
+ - Apache/2.2.3 (CentOS)
25
+ soapserver:
26
+ - SOAP::Lite/Perl/0.712
27
+ set-cookie:
28
+ - Bugzilla_login=40167; path=/bugzilla-3.6-branch/; expires=Fri, 01-Jan-2038
29
+ 00:00:00 GMT; secure; HttpOnly
30
+ - Bugzilla_logincookie=cQlhUQc1Z6; path=/bugzilla-3.6-branch/; expires=Fri,
31
+ 01-Jan-2038 00:00:00 GMT; secure; HttpOnly
32
+ content-length:
33
+ - '198'
34
+ content-type:
35
+ - text/xml
36
+ body: <?xml version="1.0" encoding="UTF-8"?><methodResponse><params><param><value><struct><member><name>id</name><value><int>40167</int></value></member></struct></value></param></params></methodResponse>
37
+ http_version: '1.1'
@@ -0,0 +1,42 @@
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
+ - '258'
14
+ connection:
15
+ - keep-alive
16
+ cookie:
17
+ - Bugzilla_login=40167; Bugzilla_logincookie=cQlhUQc1Z6
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:45:04 GMT
25
+ server:
26
+ - Apache/2.2.3 (CentOS)
27
+ soapserver:
28
+ - SOAP::Lite/Perl/0.712
29
+ content-length:
30
+ - '1644'
31
+ content-type:
32
+ - text/xml
33
+ 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
34
+ small little program for controlling the world. Can be used&#xd;
35
+
36
+ for good or for evil. Sub-components can be created using the WorldControl API
37
+ 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
38
+ small little program for controlling the world. Can be used&#xd;
39
+
40
+ for good or for evil. Sub-components can be created using the WorldControl API
41
+ to extend control into almost any aspect of reality.</string></value></member></struct></value></data></array></value></member></struct></value></param></params></methodResponse>'
42
+ http_version: '1.1'
@@ -0,0 +1,112 @@
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
+ - '258'
14
+ connection:
15
+ - keep-alive
16
+ cookie:
17
+ - Bugzilla_login=40167; Bugzilla_logincookie=cQlhUQc1Z6
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:44:57 GMT
25
+ server:
26
+ - Apache/2.2.3 (CentOS)
27
+ soapserver:
28
+ - SOAP::Lite/Perl/0.712
29
+ content-length:
30
+ - '1644'
31
+ content-type:
32
+ - text/xml
33
+ 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
34
+ small little program for controlling the world. Can be used&#xd;
35
+
36
+ for good or for evil. Sub-components can be created using the WorldControl API
37
+ 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
38
+ small little program for controlling the world. Can be used&#xd;
39
+
40
+ for good or for evil. Sub-components can be created using the WorldControl API
41
+ to extend control into almost any aspect of reality.</string></value></member></struct></value></data></array></value></member></struct></value></param></params></methodResponse>'
42
+ http_version: '1.1'
43
+ - !ruby/struct:VCR::HTTPInteraction
44
+ request: !ruby/struct:VCR::Request
45
+ method: :post
46
+ uri: https://landfill.bugzilla.org:443/bugzilla-3.6-branch/xmlrpc.cgi
47
+ body:
48
+ headers:
49
+ user-agent:
50
+ - XMLRPC::Client (Ruby 1.9.3)
51
+ content-type:
52
+ - text/xml; charset=utf-8
53
+ content-length:
54
+ - '258'
55
+ connection:
56
+ - keep-alive
57
+ cookie:
58
+ - Bugzilla_login=40167; Bugzilla_logincookie=cQlhUQc1Z6
59
+ response: !ruby/struct:VCR::Response
60
+ status: !ruby/struct:VCR::ResponseStatus
61
+ code: 200
62
+ message: OK
63
+ headers:
64
+ date:
65
+ - Tue, 07 Feb 2012 00:44:59 GMT
66
+ server:
67
+ - Apache/2.2.3 (CentOS)
68
+ soapserver:
69
+ - SOAP::Lite/Perl/0.712
70
+ content-length:
71
+ - '1451'
72
+ content-type:
73
+ - text/xml
74
+ 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>1</int></value></member><member><name>votesperuser</name><value><int>5</int></value></member><member><name>name</name><value><string>FoodReplicator</string></value></member><member><name>maxvotesperbug</name><value><int>999</int></value></member><member><name>classification_id</name><value><int>1</int></value></member><member><name>description</name><value><string>Software
75
+ that controls a piece of hardware that will create any food item through a voice
76
+ interface.</string></value></member><member><name>votestoconfirm</name><value><int>2</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>name</name><value><string>FoodReplicator</string></value></member><member><name>id</name><value><int>2</int></value></member><member><name>description</name><value><string>Software
77
+ that controls a piece of hardware that will create any food item through a voice
78
+ interface.</string></value></member></struct></value></data></array></value></member></struct></value></param></params></methodResponse>
79
+ http_version: '1.1'
80
+ - !ruby/struct:VCR::HTTPInteraction
81
+ request: !ruby/struct:VCR::Request
82
+ method: :post
83
+ uri: https://landfill.bugzilla.org:443/bugzilla-3.6-branch/xmlrpc.cgi
84
+ body:
85
+ headers:
86
+ user-agent:
87
+ - XMLRPC::Client (Ruby 1.9.3)
88
+ content-type:
89
+ - text/xml; charset=utf-8
90
+ content-length:
91
+ - '258'
92
+ connection:
93
+ - keep-alive
94
+ cookie:
95
+ - Bugzilla_login=40167; Bugzilla_logincookie=cQlhUQc1Z6
96
+ response: !ruby/struct:VCR::Response
97
+ status: !ruby/struct:VCR::ResponseStatus
98
+ code: 200
99
+ message: OK
100
+ headers:
101
+ date:
102
+ - Tue, 07 Feb 2012 00:45:02 GMT
103
+ server:
104
+ - Apache/2.2.3 (CentOS)
105
+ soapserver:
106
+ - SOAP::Lite/Perl/0.712
107
+ content-length:
108
+ - '1257'
109
+ content-type:
110
+ - text/xml
111
+ 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>0</int></value></member><member><name>name</name><value><string>MyOwnBadSelf</string></value></member><member><name>maxvotesperbug</name><value><int>10000</int></value></member><member><name>classification_id</name><value><int>2</int></value></member><member><name>description</name><value><string>feh.</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>3</int></value></member></struct></value></member><member><name>name</name><value><string>MyOwnBadSelf</string></value></member><member><name>id</name><value><int>3</int></value></member><member><name>description</name><value><string>feh.</string></value></member></struct></value></data></array></value></member></struct></value></param></params></methodResponse>
112
+ http_version: '1.1'
@@ -0,0 +1,35 @@
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
+ - '323'
14
+ connection:
15
+ - keep-alive
16
+ cookie:
17
+ - Bugzilla_login=40167; Bugzilla_logincookie=7ptWpBTrQn
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:43:35 GMT
25
+ server:
26
+ - Apache/2.2.3 (CentOS)
27
+ soapserver:
28
+ - SOAP::Lite/Perl/0.712
29
+ content-length:
30
+ - '317'
31
+ content-type:
32
+ - text/xml
33
+ body: <?xml version="1.0" encoding="UTF-8"?><methodResponse><fault><value><struct><member><name>faultString</name><value><string>Bad
34
+ argument param sent to Bugzilla::Bug::new function.</string></value></member><member><name>faultCode</name><value><int>-32000</int></value></member></struct></value></fault></methodResponse>
35
+ http_version: '1.1'
@@ -0,0 +1,89 @@
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:55:11 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:55:15 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&#xd;
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&#xd;
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'
@@ -0,0 +1,37 @@
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
+ - '376'
14
+ connection:
15
+ - keep-alive
16
+ response: !ruby/struct:VCR::Response
17
+ status: !ruby/struct:VCR::ResponseStatus
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ date:
22
+ - Tue, 07 Feb 2012 00:19:48 GMT
23
+ server:
24
+ - Apache/2.2.3 (CentOS)
25
+ soapserver:
26
+ - SOAP::Lite/Perl/0.712
27
+ set-cookie:
28
+ - Bugzilla_login=40167; path=/bugzilla-3.6-branch/; expires=Fri, 01-Jan-2038
29
+ 00:00:00 GMT; secure; HttpOnly
30
+ - Bugzilla_logincookie=7ptWpBTrQn; path=/bugzilla-3.6-branch/; expires=Fri,
31
+ 01-Jan-2038 00:00:00 GMT; secure; HttpOnly
32
+ content-length:
33
+ - '198'
34
+ content-type:
35
+ - text/xml
36
+ body: <?xml version="1.0" encoding="UTF-8"?><methodResponse><params><param><value><struct><member><name>id</name><value><int>40167</int></value></member></struct></value></param></params></methodResponse>
37
+ http_version: '1.1'
@@ -0,0 +1,37 @@
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
+ - '376'
14
+ connection:
15
+ - keep-alive
16
+ response: !ruby/struct:VCR::Response
17
+ status: !ruby/struct:VCR::ResponseStatus
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ date:
22
+ - Tue, 07 Feb 2012 22:29:45 GMT
23
+ server:
24
+ - Apache/2.2.3 (CentOS)
25
+ soapserver:
26
+ - SOAP::Lite/Perl/0.712
27
+ set-cookie:
28
+ - Bugzilla_login=40167; path=/bugzilla-3.6-branch/; expires=Fri, 01-Jan-2038
29
+ 00:00:00 GMT; secure; HttpOnly
30
+ - Bugzilla_logincookie=UdF3ZYmtxU; path=/bugzilla-3.6-branch/; expires=Fri,
31
+ 01-Jan-2038 00:00:00 GMT; secure; HttpOnly
32
+ content-length:
33
+ - '198'
34
+ content-type:
35
+ - text/xml
36
+ body: <?xml version="1.0" encoding="UTF-8"?><methodResponse><params><param><value><struct><member><name>id</name><value><int>40167</int></value></member></struct></value></param></params></methodResponse>
37
+ http_version: '1.1'
@@ -9,45 +9,32 @@ describe "Ticketmaster::Provider::Bugzilla::Project" do
9
9
  end
10
10
 
11
11
  before(:each) do
12
- @ticketmaster = TicketMaster.new(:bugzilla, {:username => 'george.rafael@gmail.com', :password => '123456', :url =>'https://landfill.bugzilla.org/bugzilla-3.6-branch/'})
13
- Rubyzilla::Product.stub!(:list).and_return(@projects)
12
+ VCR.use_cassette('project-initialization') { @ticketmaster = TicketMaster.new(:bugzilla, {:username => 'george.rafael@gmail.com', :password => '123456', :url =>'https://landfill.bugzilla.org/bugzilla-3.6-branch/'}) }
14
13
  end
15
14
 
16
15
  it "should be able to load all projects" do
17
- @ticketmaster.projects.should be_an_instance_of(Array)
18
- @ticketmaster.projects.first.should be_an_instance_of(@klass)
16
+ VCR.use_cassette('load-all-projects') { @projects = @ticketmaster.projects }
17
+ @projects.should be_an_instance_of(Array)
18
+ @projects.first.should be_an_instance_of(@klass)
19
19
  end
20
20
 
21
21
  it "should be able to load projects using an array of id's" do
22
- projects = @ticketmaster.projects([1,2,3])
23
- projects.should be_an_instance_of(Array)
24
- projects.first.should be_an_instance_of(@klass)
25
- projects.first.name.should == 'WorldControl'
22
+ VCR.use_cassette('projects-by-ids') { @projects = @ticketmaster.projects([1,2,3]) }
23
+ @projects.should be_an_instance_of(Array)
24
+ @projects.first.should be_an_instance_of(@klass)
25
+ @projects.first.name.should == 'WorldControl'
26
26
  end
27
27
 
28
28
  it "should be able to find a project by id" do
29
- project = @ticketmaster.project(1)
30
- project.should be_an_instance_of(@klass)
31
- project.name.should == 'WorldControl'
29
+ VCR.use_cassette('projects-by-id') { @project = @ticketmaster.project(1) }
30
+ @project.should be_an_instance_of(@klass)
31
+ @project.name.should == 'WorldControl'
32
32
  end
33
33
 
34
34
  it "should be able to load project using the find method" do
35
- project = @ticketmaster.project.find(1)
36
- project.should be_an_instance_of(@klass)
37
- project.name.should == 'WorldControl'
38
- end
39
-
40
- it "should be able to find by attributes" do
41
- project = @ticketmaster.project.find(:first, {:name => 'Core'})
42
- project.should be_an_instance_of(@klass)
43
- project.name.should == 'Core'
44
- end
45
-
46
- it "should be able to find by an array of id's" do
47
- project = @ticketmaster.project.find(:all, [1,2])
48
- project.should be_an_instance_of(Array)
49
- project.first.should be_an_instance_of(@klass)
50
- project.first.name.should == 'Core'
35
+ VCR.use_cassette('project-by-find-method') { @project = @ticketmaster.project.find(1) }
36
+ @project.should be_an_instance_of(@klass)
37
+ @project.name.should == 'WorldControl'
51
38
  end
52
39
 
53
40
  end