adyen-admin 0.0.16 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +2 -0
  3. data/.rspec +1 -0
  4. data/CHANGES.md +6 -0
  5. data/LICENSE +1 -1
  6. data/Rakefile +0 -18
  7. data/VERSION +1 -1
  8. data/credentials.yml.example +8 -0
  9. data/lib/adyen-admin.rb +1 -1
  10. data/lib/adyen-admin/skin.rb +19 -14
  11. data/spec/adyen-admin/client_spec.rb +1 -1
  12. data/spec/adyen-admin/skin_spec.rb +47 -75
  13. data/spec/fixtures/cassettes/Adyen_Admin_Client/_get/raises_authenticated_error_when_not_logged_in.yml +136 -234
  14. data/spec/fixtures/cassettes/Adyen_Admin_Client/_get/sets_authenticated_to_false_on_error.yml +136 -234
  15. data/spec/fixtures/cassettes/Adyen_Admin_Client/_login/passes_with_correct_username_password.yml +321 -565
  16. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_all/freezes_local_skins.yml +147 -271
  17. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_all/returns_the_skins.yml +147 -271
  18. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_all_remote/returns_the_skins.yml +147 -271
  19. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_all_remote/sets_local_path.yml +147 -271
  20. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_download/gets_the_file.yml +10207 -5552
  21. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_download/is_a_zipfile.yml +10207 -5552
  22. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_find/returns_no_skin.yml +147 -271
  23. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_find/returns_the_skin.yml +147 -271
  24. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_test_url/.yml +530 -0
  25. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_update/create_skin_yml_file.yml +426 -756
  26. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_upload/valid_set/increases_version.yml +12004 -8414
  27. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_upload/valid_set/updates_skin_data.yml +10875 -6358
  28. data/spec/fixtures/cassettes/login.yml +321 -565
  29. data/spec/fixtures/skins/example-qaJKoAMQ/css/print.css +17 -0
  30. data/spec/fixtures/skins/example-qaJKoAMQ/img/bg.gif +0 -0
  31. data/spec/spec_helper.rb +15 -2
  32. metadata +55 -38
  33. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_decompile/new_remote_skin/downloads_and_decompiles_skin.yml +0 -1441
  34. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_remote_version/returns_live_value.yml +0 -77
  35. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_remote_version/returns_test_value.yml +0 -77
  36. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_remote_version/returns_uploaded_value.yml +0 -666
  37. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_test_url/returns_url_to_test.yml +0 -941
@@ -1,271 +1,173 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: get
5
5
  uri: https://ca-test.adyen.com/ca/ca/skin/skins.shtml
6
- body:
6
+ body:
7
7
  encoding: US-ASCII
8
- string: ""
9
- headers:
10
- Accept:
11
- - "*/*"
12
- User-Agent:
13
- - Mechanize/2.3 Ruby/1.9.2p290 (http://github.com/tenderlove/mechanize/)
14
- Accept-Encoding:
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - ! '*/*'
12
+ User-Agent:
13
+ - Mechanize/2.7.3 Ruby/1.9.3p448 (http://github.com/sparklemotion/mechanize/)
14
+ Accept-Encoding:
15
15
  - gzip,deflate,identity
16
- Accept-Charset:
16
+ Accept-Charset:
17
17
  - ISO-8859-1,utf-8;q=0.7,*;q=0.7
18
- Accept-Language:
18
+ Accept-Language:
19
19
  - en-us,en;q=0.5
20
- Host:
20
+ Host:
21
21
  - ca-test.adyen.com
22
- Connection:
22
+ Connection:
23
23
  - keep-alive
24
- Keep-Alive:
24
+ Keep-Alive:
25
25
  - 300
26
- response:
27
- status:
26
+ response:
27
+ status:
28
28
  code: 302
29
- message: Moved Temporarily
30
- headers:
31
- Date:
32
- - Wed, 02 May 2012 10:49:55 GMT
33
- Server:
29
+ message: Found
30
+ headers:
31
+ Date:
32
+ - Thu, 14 Nov 2013 23:46:55 GMT
33
+ Server:
34
34
  - Apache
35
- Set-Cookie:
36
- - JSESSIONID=E30137F065AB57572237AF6AEC45FBCA.test5e; Path=/ca/; Secure; HttpOnly
37
- Location:
38
- - https://ca-test.adyen.com/ca/ca/login.shtml;jsessionid=E30137F065AB57572237AF6AEC45FBCA.test5e
39
- Content-Length:
40
- - "0"
41
- Keep-Alive:
35
+ Set-Cookie:
36
+ - JSESSIONID=F845A2FA998B83005C51B604C9DCACCD.test5e; Path=/ca/; Secure; HttpOnly
37
+ Location:
38
+ - https://ca-test.adyen.com/ca/ca/login.shtml;jsessionid=F845A2FA998B83005C51B604C9DCACCD.test5e
39
+ Content-Length:
40
+ - '0'
41
+ Keep-Alive:
42
42
  - timeout=15, max=100
43
- Connection:
43
+ Connection:
44
44
  - Keep-Alive
45
- Content-Type:
45
+ Content-Type:
46
46
  - text/plain; charset=UTF-8
47
- body:
47
+ body:
48
48
  encoding: US-ASCII
49
- string: ""
49
+ string: ''
50
50
  http_version:
51
- recorded_at: Wed, 02 May 2012 10:49:55 GMT
52
- - request:
51
+ recorded_at: Thu, 14 Nov 2013 23:46:56 GMT
52
+ - request:
53
53
  method: get
54
- uri: https://ca-test.adyen.com/ca/ca/login.shtml;jsessionid=E30137F065AB57572237AF6AEC45FBCA.test5e
55
- body:
54
+ uri: https://ca-test.adyen.com/ca/ca/login.shtml;jsessionid=F845A2FA998B83005C51B604C9DCACCD.test5e
55
+ body:
56
56
  encoding: US-ASCII
57
- string: ""
58
- headers:
59
- Accept:
60
- - "*/*"
61
- User-Agent:
62
- - Mechanize/2.3 Ruby/1.9.2p290 (http://github.com/tenderlove/mechanize/)
63
- Accept-Encoding:
57
+ string: ''
58
+ headers:
59
+ Accept:
60
+ - ! '*/*'
61
+ User-Agent:
62
+ - Mechanize/2.7.3 Ruby/1.9.3p448 (http://github.com/sparklemotion/mechanize/)
63
+ Accept-Encoding:
64
64
  - gzip,deflate,identity
65
- Accept-Charset:
65
+ Accept-Charset:
66
66
  - ISO-8859-1,utf-8;q=0.7,*;q=0.7
67
- Accept-Language:
67
+ Accept-Language:
68
68
  - en-us,en;q=0.5
69
- Cookie:
70
- - JSESSIONID=E30137F065AB57572237AF6AEC45FBCA.test5e
71
- Host:
69
+ Cookie:
70
+ - JSESSIONID=F845A2FA998B83005C51B604C9DCACCD.test5e
71
+ Host:
72
72
  - ca-test.adyen.com
73
- Connection:
73
+ Connection:
74
74
  - keep-alive
75
- Keep-Alive:
75
+ Keep-Alive:
76
76
  - 300
77
- response:
78
- status:
77
+ response:
78
+ status:
79
79
  code: 200
80
80
  message: OK
81
- headers:
82
- Date:
83
- - Wed, 02 May 2012 10:49:55 GMT
84
- Server:
81
+ headers:
82
+ Date:
83
+ - Thu, 14 Nov 2013 23:46:56 GMT
84
+ Server:
85
85
  - Apache
86
- Cache-Control:
86
+ Cache-Control:
87
87
  - no-cache, no-store, must-revalidate, max-age=0, post-check=0, pre-check=0
88
- Pragma:
88
+ Pragma:
89
89
  - no-cache
90
- Expires:
91
- - "-1"
92
- X-Frame-Options:
90
+ Expires:
91
+ - '-1'
92
+ X-Frame-Options:
93
93
  - SAMEORIGIN
94
- Content-Language:
94
+ Content-Language:
95
95
  - en-GB
96
- Keep-Alive:
96
+ Keep-Alive:
97
97
  - timeout=15, max=100
98
- Connection:
98
+ Connection:
99
99
  - Keep-Alive
100
- Transfer-Encoding:
100
+ Transfer-Encoding:
101
101
  - chunked
102
- Content-Type:
102
+ Content-Type:
103
103
  - text/html;charset=UTF-8
104
- body:
104
+ body:
105
105
  encoding: US-ASCII
106
- string: |
107
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
108
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
109
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
110
- <head>
111
-
112
- <title>Adyen PSP System</title>
113
- <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
114
- <meta http-equiv="content-style-type" content="text/css" />
115
- <meta http-equiv="imagetoolbar" content="no" />
116
- <meta content="TRUE" name="MSSmartTagsPreventParsing" />
117
-
118
- <link rel="shortcut icon" href="/ca/img/adyen/favicon.ico" type="image/ico"/>
119
-
120
- <script type="text/javascript" src="/ca/js/functions.js"></script>
121
- <script src="/ca/js/prototype.js" type="text/javascript"></script>
122
- <script src="/ca/js/scriptaculous.js" type="text/javascript"></script>
123
-
124
- <link rel="stylesheet" type="text/css" href="/ca/css/adyen/style.css" />
125
- <!--[if lt IE 7]>
126
- <link rel="stylesheet" type="text/css" href="/ca/css/adyen/style_ie6.css" />
127
- <![endif]-->
128
-
129
-
130
- </head>
131
- <body>
132
-
133
- <div id="topbar"><div class="iefillerdiv"></div></div>
134
- <div id="middlebarcontainer">
135
- <div id="middlebar">
136
- <a href="/ca/ca/overview/default.shtml"><img id="mainlogo" src="/ca/img/adyen.png" alt="Logo"/>
137
- <img id="testsystemwarning" src="/ca/img/adyen_test.png" alt="test"/></a>
138
- <img id="maintagline" src="/ca/img/adyen_tagline.png" alt="Complex Finance, Online Insight" />
139
- </div>
140
- </div>
141
- <div id="bottombar"><div id="bottombar2"></div></div>
142
-
143
- <div id="maincontent">
144
- <div id="boxleft">
145
- <div id="infobox">
146
- <ul class="nav">
147
- </ul>
148
- <div id="infoboxcontent">
149
- <div>
150
- </div>
151
-
152
- <div style="text-align: left; margin-top: 5px">
153
- <!--a class="icon" href="/ca/ca/overview/default.shtml" title="Home"><img src="/ca/img/home.gif" alt="Home"/></a-->
154
- <a class="icon" href="/ca/ca/overview/default.shtml"><img src="/ca/img/home.png" alt="Home"/> home</a><br/>
155
- <a class="icon" href="/ca/logoff.shtml" title="Sign Off"><img src="/ca/img/exit.png" alt="Sign Off"/> sign off</a>
156
- </div>
157
- </div>
158
- </div>
159
-
160
-
161
- <div class="bbarlmenu">
162
- <div class="bbarrmenu">
163
- <div class="bbarmenu">
164
- </div>
165
- </div>
166
- </div>
167
-
168
- </div>
169
-
170
- <div id="contentbg">
171
- <div id="content">
172
- <div id="contentwrapper">
173
-
174
- <div id="subcontent">
175
- <ul id="help">
176
- <li class="palette7">
177
- <h3 class="bg">Signing On</h3>
178
- <div class="border">
179
- All fields are case-sensitive. If you have trouble signing on, check that the "Caps Lock" isn't on. </div>
180
- </li>
181
- </ul>
182
-
183
- <script type="text/javascript" language="javascript">
184
- function createCookie(name,value,days) {
185
- path = "/ca/";
186
- if (path == "") path = "/";
187
- if (days) {
188
- var date = new Date();
189
- date.setTime(date.getTime()+(days*24*60*60*1000));
190
- var expires = "; expires="+date.toGMTString();
191
- } else {
192
- var expires = "";
193
- }
194
- document.cookie = name+"="+value+expires+"; path="+path+(window.location.protocol.indexOf('https:')==0?'; Secure':'');
195
- }
196
-
197
- function eraseCookie(name) {
198
- createCookie(name,"",-1);
199
- }
200
-
201
- function handleCookie() {
202
- if(document.getElementById("rememberMe").checked == true) {
203
- if(document.getElementById("accountTextInput")) {
204
- createCookie("defaultAccount", document.getElementById("accountTextInput").value,7);
205
- } else {
206
- createCookie("defaultAccount", document.getElementById("accountHiddenInput").value,7);
207
- }
208
- } else {
209
- eraseCookie("defaultAccount")
210
- }
211
- }
212
- </script>
213
- <h1 class="pagetitle">Please Sign On</h1>
214
-
215
- <form method="post" autocomplete="off" onsubmit="handleCookie();" action="config/j_security_check">
216
- <table class="data">
217
- <tr>
218
- <th class="row"><label for="accountTextInput">Account:</label></th>
219
- <td><input type="text" id="accountTextInput" name="j_account" /></td>
220
- </tr>
221
- <tr>
222
- <th class="row"><label for="j_username">User Name:</label></th>
223
- <td><input type="text" id="j_username" name="j_username" /></td>
224
- </tr>
225
-
226
- <script type="text/javascript" language="javascript">
227
- var elToFocus = document.getElementById("accountTextInput");
228
- if( null == elToFocus ) {
229
- elToFocus = document.getElementById("j_username");
230
- }
231
- elToFocus.focus();
232
- </script>
233
- <tr>
234
- <th class="row"><label for="j_password">Password:</label></th>
235
- <td><input type="password" id="j_password" name="j_password" /></td>
236
- </tr>
237
-
238
- <tr>
239
- <td colspan="2"><label for="rememberMe">Remember my account on this computer</label> <input type="checkbox"
240
- id="rememberMe" name="rememberMe" /></td>
241
- </tr>
242
-
243
- <tr>
244
- <td colspan="2"><br />
245
- <input type="hidden" name="j_formHash" value="656TjKLtvt81K5iE0+dnpprOCeDx2s=" />
246
- <input type="submit" class="button" value="Submit" /></td>
247
- </tr>
248
- </table>
249
- </form>
250
- <br/>
251
- <a href="/ca/forgotPassword.shtml">Forgot your password?</a>
252
- </div>
253
-
254
- <div class="bbarl">
255
- <div class="bbarr">
256
- <div class="bbar">
257
- </div>
258
- </div>
259
- </div>
260
- </div>
261
-
262
-
263
- </div>
264
- </div>
265
- </div>
266
- </body>
267
- </html>
268
-
106
+ string: ! "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n\t \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html
107
+ xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n<head>\n\t\t\n\t<title>Adyen
108
+ PSP System</title>\n\t<meta http-equiv=\"content-type\" content=\"text/html;
109
+ charset=UTF-8\" />\n\t<meta http-equiv=\"content-style-type\" content=\"text/css\"
110
+ />\t\n\t<meta http-equiv=\"imagetoolbar\" content=\"no\" />\n\t<meta content=\"TRUE\"
111
+ name=\"MSSmartTagsPreventParsing\" />\n\n\t<link rel=\"shortcut icon\" href=\"/ca/img/adyen/favicon.ico\"
112
+ type=\"image/ico\"/>\n\t\n\t<script type=\"text/javascript\" src=\"/ca/js/functions.js\"></script>\n\t<script
113
+ src=\"/ca/js/prototype.js\" type=\"text/javascript\"></script>\n\t<script
114
+ src=\"/ca/js/scriptaculous.js\" type=\"text/javascript\"></script>\n\t\n\t<link
115
+ rel=\"stylesheet\" type=\"text/css\" href=\"/ca/css/adyen/style.css\" />\n\t<!--[if
116
+ lt IE 7]>\n\t<link rel=\"stylesheet\" type=\"text/css\" href=\"/ca/css/adyen/style_ie6.css\"
117
+ />\n\t<![endif]-->\n\n\t \n</head>\n<body>\n\n\t<div id=\"topbar\"><div
118
+ class=\"iefillerdiv\"></div></div>\n\t<div id=\"middlebarcontainer\">\n\t\t\t<div
119
+ id=\"middlebar\">\n\t\t\t\t<a href=\"/ca/ca/overview/default.shtml\"><img
120
+ id=\"mainlogo\" src=\"/ca/img/adyen.png\" alt=\"Logo\"/>\n\t\t\t\t<img id=\"testsystemwarning\"
121
+ src=\"/ca/img/adyen_test.png\" alt=\"test\"/></a>\n\t\t\t\t<img id=\"maintagline\"
122
+ src=\"/ca/img/adyen_tagline.png\" alt=\"Complex Finance, Online Insight\"
123
+ />\n\t\t\t</div>\n\t</div>\t\n\t<div id=\"bottombar\"><div id=\"bottombar2\"></div></div>\t\n\t<div
124
+ id=\"maincontent\">\t\t\t\n\t<div id=\"boxleft\">\n\t\t<div id=\"infobox\">\n\t\t\t<ul
125
+ class=\"nav\">\n\t\t\t</ul>\n\t\t\t<div id=\"infoboxcontent\">\n\t\t\t\t\t\t\t\t<div
126
+ id=\"accountnavigation\">\n\t\t\t\t\t\t\t\t</div>\n\t\n\t\t\t\t<div id=\"loginadmin\"
127
+ style=\"text-align: left; margin-top: 5px\">\n\t\t\t\t\t<!--a class=\"icon\"
128
+ href=\"/ca/ca/overview/default.shtml\" title=\"Home\"><img src=\"/ca/img/home.gif\"
129
+ alt=\"Home\"/></a-->\n\t\t\t\t \t\t\t\t <a class=\"icon\" href=\"/ca/ca/overview/default.shtml\"><img
130
+ src=\"/ca/img/home.png\" alt=\"Home\"/> home</a><br/>\n\t\t\t\t \t\t\t\t
131
+ \ <a class=\"icon\" href=\"/ca/logoff.shtml\" title=\"Sign Off\"><img src=\"/ca/img/exit.png\"
132
+ alt=\"Sign Off\"/> sign off</a>\n\t\t\t\t \t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\n\t\t<div
133
+ class=\"bbarlmenu\">\n\t\t\t<div class=\"bbarrmenu\">\n\t\t\t\t<div class=\"bbarmenu\">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\n\t\t\t</div>\n\t\n\t\t\t\n\t<div
134
+ id=\"contentbg\">\n\t\t<div id=\"content\">\n\t\t\t<div id=\"contentwrapper\">
135
+ \ <div id=\"subcontent\">\n <ul id=\"help\">\n <li class=\"palette7\">\n\t
136
+ \ <h3 class=\"bg\">Signing On</h3>\n\t <div class=\"border\">\n\t\tAll
137
+ fields are case-sensitive. If you have trouble signing on, check that the
138
+ \"Caps Lock\" isn't on.\t </div>\n\t </li>\n </ul>\n\n\t<script
139
+ type=\"text/javascript\" language=\"javascript\">\n\tfunction createCookie(name,value,days)
140
+ {\n \tpath = \"/ca/\";\n \tif (path == \"\") path = \"/\";\n \tif
141
+ (days) {\n \t\tvar date = new Date();\n \t\tdate.setTime(date.getTime()+(days*24*60*60*1000));\n
142
+ \ \t\tvar expires = \"; expires=\"+date.toGMTString();\n \t} else { \n\t\t
143
+ \ var expires = \"\";\n\t\t}\n \tdocument.cookie = name+\"=\"+value+expires+\";
144
+ path=\"+path+(window.location.protocol.indexOf('https:')==0?'; Secure':'');\n\t}\n\n
145
+ \ function eraseCookie(name) {\n \tcreateCookie(name,\"\",-1);\n }\n\t\n\tfunction
146
+ handleCookie() {\n\t\tif(document.getElementById(\"rememberMe\").checked ==
147
+ true) {\n\t\t if(document.getElementById(\"accountTextInput\")) {\n\t\t \tcreateCookie(\"defaultAccount\",
148
+ document.getElementById(\"accountTextInput\").value,7);\n\t\t } else {\n\t\t
149
+ \ \tcreateCookie(\"defaultAccount\", document.getElementById(\"accountHiddenInput\").value,7);\n\t\t
150
+ \ }\n\t\t} else { \n\t\t eraseCookie(\"defaultAccount\")\n\t\t}\n\t}\n\t</script>\n
151
+ \ <h1 class=\"pagetitle\">Please Sign On</h1>\n \n <form
152
+ method=\"post\" autocomplete=\"off\" onsubmit=\"handleCookie();\" action=\"config/j_security_check\">\n\t\t<table
153
+ class=\"data\">\n\t\t <tr>\n\t\t\t<th class=\"row\"><label for=\"accountTextInput\">Account:</label></th>\n\t\t
154
+ \ \t\t\t<td><input type=\"text\" id=\"accountTextInput\" name=\"j_account\"
155
+ /></td>\n\t\t \t\t </tr>\n \t <tr>\n\t\t\t<th class=\"row\"><label
156
+ for=\"j_username\">User Name:</label></th>\n\t\t\t<td><input type=\"text\"
157
+ id=\"j_username\" name=\"j_username\" /></td>\n\t\t </tr>\n\n \t <script
158
+ type=\"text/javascript\" language=\"javascript\">\n\t\t var elToFocus =
159
+ document.getElementById(\"accountTextInput\");\n\t\t\tif( null == elToFocus
160
+ ) {\n \t\t\telToFocus = document.getElementById(\"j_username\");\n\t\t\t}\n\t\t\telToFocus.focus();\n
161
+ \ \t </script>\n \t <tr>\n\t\t\t<th class=\"row\"><label for=\"j_password\">Password:</label></th>\n\t\t\t<td><input
162
+ type=\"password\" id=\"j_password\" name=\"j_password\" /></td>\n\t\t </tr>\n\t\t
163
+ \t\t \n\t\t <tr>\n\t\t\t<td colspan=\"2\"><label for=\"rememberMe\">Remember
164
+ my account on this computer</label> <input type=\"checkbox\" \n\t\t\t\t id=\"rememberMe\"
165
+ name=\"rememberMe\" /></td>\n\t\t </tr>\n\t\t \n\t\t <tr>\n\t\t <td colspan=\"2\"><br
166
+ />\n\t\t\t\t<input type=\"hidden\" name=\"j_formHash\" value=\"2269erIyrnNWTu8Dt1J6OfzOda97I0=\"
167
+ />\n\t\t\t\t<input type=\"submit\" class=\"button\" value=\"Submit\" /></td>\n\t\t
168
+ \ </tr>\n\t\t</table>\n </form>\n\t\t<br/>\n\t\t<a href=\"/ca/forgotPassword.shtml\">Forgot
169
+ your password?</a>\n </div>\n\n\t\t<div class=\"bbarl\">\n\t\t<div class=\"bbarr\">\n\t\t<div
170
+ class=\"bbar\">\n\t\t</div>\n\t\t</div>\n\t\t</div>\n\t\t</div>\n\n\t\t\n\t\t</div>\n\t</div>\n\t</div>\n</body>\n</html>\n"
269
171
  http_version:
270
- recorded_at: Wed, 02 May 2012 10:49:55 GMT
271
- recorded_with: VCR 2.0.1
172
+ recorded_at: Thu, 14 Nov 2013 23:46:56 GMT
173
+ recorded_with: VCR 2.7.0
@@ -1,271 +1,173 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: get
5
5
  uri: https://ca-test.adyen.com/ca/ca/skin/skins.shtml
6
- body:
6
+ body:
7
7
  encoding: US-ASCII
8
- string: ""
9
- headers:
10
- Accept:
11
- - "*/*"
12
- User-Agent:
13
- - Mechanize/2.3 Ruby/1.9.2p290 (http://github.com/tenderlove/mechanize/)
14
- Accept-Encoding:
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - ! '*/*'
12
+ User-Agent:
13
+ - Mechanize/2.7.3 Ruby/1.9.3p448 (http://github.com/sparklemotion/mechanize/)
14
+ Accept-Encoding:
15
15
  - gzip,deflate,identity
16
- Accept-Charset:
16
+ Accept-Charset:
17
17
  - ISO-8859-1,utf-8;q=0.7,*;q=0.7
18
- Accept-Language:
18
+ Accept-Language:
19
19
  - en-us,en;q=0.5
20
- Host:
20
+ Host:
21
21
  - ca-test.adyen.com
22
- Connection:
22
+ Connection:
23
23
  - keep-alive
24
- Keep-Alive:
24
+ Keep-Alive:
25
25
  - 300
26
- response:
27
- status:
26
+ response:
27
+ status:
28
28
  code: 302
29
- message: Moved Temporarily
30
- headers:
31
- Date:
32
- - Wed, 02 May 2012 10:49:55 GMT
33
- Server:
29
+ message: Found
30
+ headers:
31
+ Date:
32
+ - Thu, 14 Nov 2013 23:46:56 GMT
33
+ Server:
34
34
  - Apache
35
- Set-Cookie:
36
- - JSESSIONID=4C66E80C8AF47018BB6A37427FECC264.test5e; Path=/ca/; Secure; HttpOnly
37
- Location:
38
- - https://ca-test.adyen.com/ca/ca/login.shtml;jsessionid=4C66E80C8AF47018BB6A37427FECC264.test5e
39
- Content-Length:
40
- - "0"
41
- Keep-Alive:
35
+ Set-Cookie:
36
+ - JSESSIONID=295A6EBE229E87EB49F288874CC89E38.test5e; Path=/ca/; Secure; HttpOnly
37
+ Location:
38
+ - https://ca-test.adyen.com/ca/ca/login.shtml;jsessionid=295A6EBE229E87EB49F288874CC89E38.test5e
39
+ Content-Length:
40
+ - '0'
41
+ Keep-Alive:
42
42
  - timeout=15, max=100
43
- Connection:
43
+ Connection:
44
44
  - Keep-Alive
45
- Content-Type:
45
+ Content-Type:
46
46
  - text/plain; charset=UTF-8
47
- body:
47
+ body:
48
48
  encoding: US-ASCII
49
- string: ""
49
+ string: ''
50
50
  http_version:
51
- recorded_at: Wed, 02 May 2012 10:49:55 GMT
52
- - request:
51
+ recorded_at: Thu, 14 Nov 2013 23:46:56 GMT
52
+ - request:
53
53
  method: get
54
- uri: https://ca-test.adyen.com/ca/ca/login.shtml;jsessionid=4C66E80C8AF47018BB6A37427FECC264.test5e
55
- body:
54
+ uri: https://ca-test.adyen.com/ca/ca/login.shtml;jsessionid=295A6EBE229E87EB49F288874CC89E38.test5e
55
+ body:
56
56
  encoding: US-ASCII
57
- string: ""
58
- headers:
59
- Accept:
60
- - "*/*"
61
- User-Agent:
62
- - Mechanize/2.3 Ruby/1.9.2p290 (http://github.com/tenderlove/mechanize/)
63
- Accept-Encoding:
57
+ string: ''
58
+ headers:
59
+ Accept:
60
+ - ! '*/*'
61
+ User-Agent:
62
+ - Mechanize/2.7.3 Ruby/1.9.3p448 (http://github.com/sparklemotion/mechanize/)
63
+ Accept-Encoding:
64
64
  - gzip,deflate,identity
65
- Accept-Charset:
65
+ Accept-Charset:
66
66
  - ISO-8859-1,utf-8;q=0.7,*;q=0.7
67
- Accept-Language:
67
+ Accept-Language:
68
68
  - en-us,en;q=0.5
69
- Cookie:
70
- - JSESSIONID=4C66E80C8AF47018BB6A37427FECC264.test5e
71
- Host:
69
+ Cookie:
70
+ - JSESSIONID=295A6EBE229E87EB49F288874CC89E38.test5e
71
+ Host:
72
72
  - ca-test.adyen.com
73
- Connection:
73
+ Connection:
74
74
  - keep-alive
75
- Keep-Alive:
75
+ Keep-Alive:
76
76
  - 300
77
- response:
78
- status:
77
+ response:
78
+ status:
79
79
  code: 200
80
80
  message: OK
81
- headers:
82
- Date:
83
- - Wed, 02 May 2012 10:49:55 GMT
84
- Server:
81
+ headers:
82
+ Date:
83
+ - Thu, 14 Nov 2013 23:46:56 GMT
84
+ Server:
85
85
  - Apache
86
- Cache-Control:
86
+ Cache-Control:
87
87
  - no-cache, no-store, must-revalidate, max-age=0, post-check=0, pre-check=0
88
- Pragma:
88
+ Pragma:
89
89
  - no-cache
90
- Expires:
91
- - "-1"
92
- X-Frame-Options:
90
+ Expires:
91
+ - '-1'
92
+ X-Frame-Options:
93
93
  - SAMEORIGIN
94
- Content-Language:
94
+ Content-Language:
95
95
  - en-GB
96
- Keep-Alive:
96
+ Keep-Alive:
97
97
  - timeout=15, max=100
98
- Connection:
98
+ Connection:
99
99
  - Keep-Alive
100
- Transfer-Encoding:
100
+ Transfer-Encoding:
101
101
  - chunked
102
- Content-Type:
102
+ Content-Type:
103
103
  - text/html;charset=UTF-8
104
- body:
104
+ body:
105
105
  encoding: US-ASCII
106
- string: |
107
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
108
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
109
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
110
- <head>
111
-
112
- <title>Adyen PSP System</title>
113
- <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
114
- <meta http-equiv="content-style-type" content="text/css" />
115
- <meta http-equiv="imagetoolbar" content="no" />
116
- <meta content="TRUE" name="MSSmartTagsPreventParsing" />
117
-
118
- <link rel="shortcut icon" href="/ca/img/adyen/favicon.ico" type="image/ico"/>
119
-
120
- <script type="text/javascript" src="/ca/js/functions.js"></script>
121
- <script src="/ca/js/prototype.js" type="text/javascript"></script>
122
- <script src="/ca/js/scriptaculous.js" type="text/javascript"></script>
123
-
124
- <link rel="stylesheet" type="text/css" href="/ca/css/adyen/style.css" />
125
- <!--[if lt IE 7]>
126
- <link rel="stylesheet" type="text/css" href="/ca/css/adyen/style_ie6.css" />
127
- <![endif]-->
128
-
129
-
130
- </head>
131
- <body>
132
-
133
- <div id="topbar"><div class="iefillerdiv"></div></div>
134
- <div id="middlebarcontainer">
135
- <div id="middlebar">
136
- <a href="/ca/ca/overview/default.shtml"><img id="mainlogo" src="/ca/img/adyen.png" alt="Logo"/>
137
- <img id="testsystemwarning" src="/ca/img/adyen_test.png" alt="test"/></a>
138
- <img id="maintagline" src="/ca/img/adyen_tagline.png" alt="Complex Finance, Online Insight" />
139
- </div>
140
- </div>
141
- <div id="bottombar"><div id="bottombar2"></div></div>
142
-
143
- <div id="maincontent">
144
- <div id="boxleft">
145
- <div id="infobox">
146
- <ul class="nav">
147
- </ul>
148
- <div id="infoboxcontent">
149
- <div>
150
- </div>
151
-
152
- <div style="text-align: left; margin-top: 5px">
153
- <!--a class="icon" href="/ca/ca/overview/default.shtml" title="Home"><img src="/ca/img/home.gif" alt="Home"/></a-->
154
- <a class="icon" href="/ca/ca/overview/default.shtml"><img src="/ca/img/home.png" alt="Home"/> home</a><br/>
155
- <a class="icon" href="/ca/logoff.shtml" title="Sign Off"><img src="/ca/img/exit.png" alt="Sign Off"/> sign off</a>
156
- </div>
157
- </div>
158
- </div>
159
-
160
-
161
- <div class="bbarlmenu">
162
- <div class="bbarrmenu">
163
- <div class="bbarmenu">
164
- </div>
165
- </div>
166
- </div>
167
-
168
- </div>
169
-
170
- <div id="contentbg">
171
- <div id="content">
172
- <div id="contentwrapper">
173
-
174
- <div id="subcontent">
175
- <ul id="help">
176
- <li class="palette7">
177
- <h3 class="bg">Signing On</h3>
178
- <div class="border">
179
- All fields are case-sensitive. If you have trouble signing on, check that the "Caps Lock" isn't on. </div>
180
- </li>
181
- </ul>
182
-
183
- <script type="text/javascript" language="javascript">
184
- function createCookie(name,value,days) {
185
- path = "/ca/";
186
- if (path == "") path = "/";
187
- if (days) {
188
- var date = new Date();
189
- date.setTime(date.getTime()+(days*24*60*60*1000));
190
- var expires = "; expires="+date.toGMTString();
191
- } else {
192
- var expires = "";
193
- }
194
- document.cookie = name+"="+value+expires+"; path="+path+(window.location.protocol.indexOf('https:')==0?'; Secure':'');
195
- }
196
-
197
- function eraseCookie(name) {
198
- createCookie(name,"",-1);
199
- }
200
-
201
- function handleCookie() {
202
- if(document.getElementById("rememberMe").checked == true) {
203
- if(document.getElementById("accountTextInput")) {
204
- createCookie("defaultAccount", document.getElementById("accountTextInput").value,7);
205
- } else {
206
- createCookie("defaultAccount", document.getElementById("accountHiddenInput").value,7);
207
- }
208
- } else {
209
- eraseCookie("defaultAccount")
210
- }
211
- }
212
- </script>
213
- <h1 class="pagetitle">Please Sign On</h1>
214
-
215
- <form method="post" autocomplete="off" onsubmit="handleCookie();" action="config/j_security_check">
216
- <table class="data">
217
- <tr>
218
- <th class="row"><label for="accountTextInput">Account:</label></th>
219
- <td><input type="text" id="accountTextInput" name="j_account" /></td>
220
- </tr>
221
- <tr>
222
- <th class="row"><label for="j_username">User Name:</label></th>
223
- <td><input type="text" id="j_username" name="j_username" /></td>
224
- </tr>
225
-
226
- <script type="text/javascript" language="javascript">
227
- var elToFocus = document.getElementById("accountTextInput");
228
- if( null == elToFocus ) {
229
- elToFocus = document.getElementById("j_username");
230
- }
231
- elToFocus.focus();
232
- </script>
233
- <tr>
234
- <th class="row"><label for="j_password">Password:</label></th>
235
- <td><input type="password" id="j_password" name="j_password" /></td>
236
- </tr>
237
-
238
- <tr>
239
- <td colspan="2"><label for="rememberMe">Remember my account on this computer</label> <input type="checkbox"
240
- id="rememberMe" name="rememberMe" /></td>
241
- </tr>
242
-
243
- <tr>
244
- <td colspan="2"><br />
245
- <input type="hidden" name="j_formHash" value="357HvwgaGfNcAVR/oRdRQScoVFPQg8=" />
246
- <input type="submit" class="button" value="Submit" /></td>
247
- </tr>
248
- </table>
249
- </form>
250
- <br/>
251
- <a href="/ca/forgotPassword.shtml">Forgot your password?</a>
252
- </div>
253
-
254
- <div class="bbarl">
255
- <div class="bbarr">
256
- <div class="bbar">
257
- </div>
258
- </div>
259
- </div>
260
- </div>
261
-
262
-
263
- </div>
264
- </div>
265
- </div>
266
- </body>
267
- </html>
268
-
106
+ string: ! "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n\t \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html
107
+ xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n<head>\n\t\t\n\t<title>Adyen
108
+ PSP System</title>\n\t<meta http-equiv=\"content-type\" content=\"text/html;
109
+ charset=UTF-8\" />\n\t<meta http-equiv=\"content-style-type\" content=\"text/css\"
110
+ />\t\n\t<meta http-equiv=\"imagetoolbar\" content=\"no\" />\n\t<meta content=\"TRUE\"
111
+ name=\"MSSmartTagsPreventParsing\" />\n\n\t<link rel=\"shortcut icon\" href=\"/ca/img/adyen/favicon.ico\"
112
+ type=\"image/ico\"/>\n\t\n\t<script type=\"text/javascript\" src=\"/ca/js/functions.js\"></script>\n\t<script
113
+ src=\"/ca/js/prototype.js\" type=\"text/javascript\"></script>\n\t<script
114
+ src=\"/ca/js/scriptaculous.js\" type=\"text/javascript\"></script>\n\t\n\t<link
115
+ rel=\"stylesheet\" type=\"text/css\" href=\"/ca/css/adyen/style.css\" />\n\t<!--[if
116
+ lt IE 7]>\n\t<link rel=\"stylesheet\" type=\"text/css\" href=\"/ca/css/adyen/style_ie6.css\"
117
+ />\n\t<![endif]-->\n\n\t \n</head>\n<body>\n\n\t<div id=\"topbar\"><div
118
+ class=\"iefillerdiv\"></div></div>\n\t<div id=\"middlebarcontainer\">\n\t\t\t<div
119
+ id=\"middlebar\">\n\t\t\t\t<a href=\"/ca/ca/overview/default.shtml\"><img
120
+ id=\"mainlogo\" src=\"/ca/img/adyen.png\" alt=\"Logo\"/>\n\t\t\t\t<img id=\"testsystemwarning\"
121
+ src=\"/ca/img/adyen_test.png\" alt=\"test\"/></a>\n\t\t\t\t<img id=\"maintagline\"
122
+ src=\"/ca/img/adyen_tagline.png\" alt=\"Complex Finance, Online Insight\"
123
+ />\n\t\t\t</div>\n\t</div>\t\n\t<div id=\"bottombar\"><div id=\"bottombar2\"></div></div>\t\n\t<div
124
+ id=\"maincontent\">\t\t\t\n\t<div id=\"boxleft\">\n\t\t<div id=\"infobox\">\n\t\t\t<ul
125
+ class=\"nav\">\n\t\t\t</ul>\n\t\t\t<div id=\"infoboxcontent\">\n\t\t\t\t\t\t\t\t<div
126
+ id=\"accountnavigation\">\n\t\t\t\t\t\t\t\t</div>\n\t\n\t\t\t\t<div id=\"loginadmin\"
127
+ style=\"text-align: left; margin-top: 5px\">\n\t\t\t\t\t<!--a class=\"icon\"
128
+ href=\"/ca/ca/overview/default.shtml\" title=\"Home\"><img src=\"/ca/img/home.gif\"
129
+ alt=\"Home\"/></a-->\n\t\t\t\t \t\t\t\t <a class=\"icon\" href=\"/ca/ca/overview/default.shtml\"><img
130
+ src=\"/ca/img/home.png\" alt=\"Home\"/> home</a><br/>\n\t\t\t\t \t\t\t\t
131
+ \ <a class=\"icon\" href=\"/ca/logoff.shtml\" title=\"Sign Off\"><img src=\"/ca/img/exit.png\"
132
+ alt=\"Sign Off\"/> sign off</a>\n\t\t\t\t \t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\n\t\t<div
133
+ class=\"bbarlmenu\">\n\t\t\t<div class=\"bbarrmenu\">\n\t\t\t\t<div class=\"bbarmenu\">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\n\t\t\t</div>\n\t\n\t\t\t\n\t<div
134
+ id=\"contentbg\">\n\t\t<div id=\"content\">\n\t\t\t<div id=\"contentwrapper\">
135
+ \ <div id=\"subcontent\">\n <ul id=\"help\">\n <li class=\"palette7\">\n\t
136
+ \ <h3 class=\"bg\">Signing On</h3>\n\t <div class=\"border\">\n\t\tAll
137
+ fields are case-sensitive. If you have trouble signing on, check that the
138
+ \"Caps Lock\" isn't on.\t </div>\n\t </li>\n </ul>\n\n\t<script
139
+ type=\"text/javascript\" language=\"javascript\">\n\tfunction createCookie(name,value,days)
140
+ {\n \tpath = \"/ca/\";\n \tif (path == \"\") path = \"/\";\n \tif
141
+ (days) {\n \t\tvar date = new Date();\n \t\tdate.setTime(date.getTime()+(days*24*60*60*1000));\n
142
+ \ \t\tvar expires = \"; expires=\"+date.toGMTString();\n \t} else { \n\t\t
143
+ \ var expires = \"\";\n\t\t}\n \tdocument.cookie = name+\"=\"+value+expires+\";
144
+ path=\"+path+(window.location.protocol.indexOf('https:')==0?'; Secure':'');\n\t}\n\n
145
+ \ function eraseCookie(name) {\n \tcreateCookie(name,\"\",-1);\n }\n\t\n\tfunction
146
+ handleCookie() {\n\t\tif(document.getElementById(\"rememberMe\").checked ==
147
+ true) {\n\t\t if(document.getElementById(\"accountTextInput\")) {\n\t\t \tcreateCookie(\"defaultAccount\",
148
+ document.getElementById(\"accountTextInput\").value,7);\n\t\t } else {\n\t\t
149
+ \ \tcreateCookie(\"defaultAccount\", document.getElementById(\"accountHiddenInput\").value,7);\n\t\t
150
+ \ }\n\t\t} else { \n\t\t eraseCookie(\"defaultAccount\")\n\t\t}\n\t}\n\t</script>\n
151
+ \ <h1 class=\"pagetitle\">Please Sign On</h1>\n \n <form
152
+ method=\"post\" autocomplete=\"off\" onsubmit=\"handleCookie();\" action=\"config/j_security_check\">\n\t\t<table
153
+ class=\"data\">\n\t\t <tr>\n\t\t\t<th class=\"row\"><label for=\"accountTextInput\">Account:</label></th>\n\t\t
154
+ \ \t\t\t<td><input type=\"text\" id=\"accountTextInput\" name=\"j_account\"
155
+ /></td>\n\t\t \t\t </tr>\n \t <tr>\n\t\t\t<th class=\"row\"><label
156
+ for=\"j_username\">User Name:</label></th>\n\t\t\t<td><input type=\"text\"
157
+ id=\"j_username\" name=\"j_username\" /></td>\n\t\t </tr>\n\n \t <script
158
+ type=\"text/javascript\" language=\"javascript\">\n\t\t var elToFocus =
159
+ document.getElementById(\"accountTextInput\");\n\t\t\tif( null == elToFocus
160
+ ) {\n \t\t\telToFocus = document.getElementById(\"j_username\");\n\t\t\t}\n\t\t\telToFocus.focus();\n
161
+ \ \t </script>\n \t <tr>\n\t\t\t<th class=\"row\"><label for=\"j_password\">Password:</label></th>\n\t\t\t<td><input
162
+ type=\"password\" id=\"j_password\" name=\"j_password\" /></td>\n\t\t </tr>\n\t\t
163
+ \t\t \n\t\t <tr>\n\t\t\t<td colspan=\"2\"><label for=\"rememberMe\">Remember
164
+ my account on this computer</label> <input type=\"checkbox\" \n\t\t\t\t id=\"rememberMe\"
165
+ name=\"rememberMe\" /></td>\n\t\t </tr>\n\t\t \n\t\t <tr>\n\t\t <td colspan=\"2\"><br
166
+ />\n\t\t\t\t<input type=\"hidden\" name=\"j_formHash\" value=\"564fLwNvAWOy9Y5mvrFBBWPMo9tgVg=\"
167
+ />\n\t\t\t\t<input type=\"submit\" class=\"button\" value=\"Submit\" /></td>\n\t\t
168
+ \ </tr>\n\t\t</table>\n </form>\n\t\t<br/>\n\t\t<a href=\"/ca/forgotPassword.shtml\">Forgot
169
+ your password?</a>\n </div>\n\n\t\t<div class=\"bbarl\">\n\t\t<div class=\"bbarr\">\n\t\t<div
170
+ class=\"bbar\">\n\t\t</div>\n\t\t</div>\n\t\t</div>\n\t\t</div>\n\n\t\t\n\t\t</div>\n\t</div>\n\t</div>\n</body>\n</html>\n"
269
171
  http_version:
270
- recorded_at: Wed, 02 May 2012 10:49:55 GMT
271
- recorded_with: VCR 2.0.1
172
+ recorded_at: Thu, 14 Nov 2013 23:46:56 GMT
173
+ recorded_with: VCR 2.7.0