Commit b262d92e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Update VCR fixtures

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent c3a98b03
...@@ -155,3 +155,12 @@ Rails application: ...@@ -155,3 +155,12 @@ Rails application:
3. Update `GITLAB_SHELL_VERSION` in the Rails application to the **raw 3. Update `GITLAB_SHELL_VERSION` in the Rails application to the **raw
version**. (Note: this can be done as a separate MR to that, or in and MR version**. (Note: this can be done as a separate MR to that, or in and MR
that will make use of the latest GitLab Shell changes.) that will make use of the latest GitLab Shell changes.)
## Updating VCR fixtures
In order to generate new VCR fixtures you need to have a local GitLab instance
running and have next data:
1. gitlab-org/gitlab-test project.
2. SSH key with access to the project and ID 1 that belongs to Administrator.
3. SSH key without access to the project and ID 2.
This diff is collapsed.
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
http_interactions: http_interactions:
- request: - request:
method: post method: post
uri: https://dev.gitlab.org/api/v4/internal/allowed uri: http://localhost:3000/api/v4/internal/allowed
body: body:
encoding: US-ASCII encoding: US-ASCII
string: action=git-receive-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&project=gitlab%2Fgitlabhq&key_id=126&secret_token=a123 string: action=git-receive-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=ssh&env=%7B%7D&key_id=1&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
headers: headers:
Accept-Encoding: Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
...@@ -20,29 +20,27 @@ http_interactions: ...@@ -20,29 +20,27 @@ http_interactions:
code: 200 code: 200
message: OK message: OK
headers: headers:
Server: Cache-Control:
- nginx/1.1.19 - max-age=0, private, must-revalidate
Date: Content-Length:
- Wed, 03 Sep 2014 11:27:36 GMT - '155'
Content-Type: Content-Type:
- application/json - application/json
Content-Length: Date:
- '4' - Wed, 21 Jun 2017 10:44:52 GMT
Connection:
- keep-alive
Status:
- 200 OK
Etag: Etag:
- '"b326b5062b2f0e69046810717534cb09"' - W/"45654cae433b5a9c5fbba1d45d382e52"
Cache-Control: Vary:
- max-age=0, private, must-revalidate - Origin
X-Frame-Options:
- SAMEORIGIN
X-Request-Id: X-Request-Id:
- 85bfa9b3-fddc-4810-a033-f1eabc04c66c - 8d4b8b06-fb6e-4f94-832f-72f8e0afad5f
X-Runtime: X-Runtime:
- '0.089741' - '0.289759'
body: body:
encoding: UTF-8 encoding: UTF-8
string: '{"status": "true"}' string: '{"status":true,"gl_repository":"project-3","repository_path":"/Users/dzaporozhets/Projects/gitlab-development-kit/repositories/gitlab-org/gitlab-test.git"}'
http_version: http_version:
recorded_at: Wed, 03 Sep 2014 11:27:36 GMT recorded_at: Wed, 21 Jun 2017 10:44:52 GMT
recorded_with: VCR 2.4.0 recorded_with: VCR 2.4.0
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
http_interactions: http_interactions:
- request: - request:
method: post method: post
uri: https://dev.gitlab.org/api/v4/internal/allowed uri: http://localhost:3000/api/v4/internal/allowed
body: body:
encoding: US-ASCII encoding: US-ASCII
string: action=git-upload-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&project=gitlab%2Fgitlabhq&key_id=126&secret_token=a123 string: action=git-upload-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=ssh&env=%7B%7D&key_id=1&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
headers: headers:
Accept-Encoding: Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
...@@ -20,29 +20,27 @@ http_interactions: ...@@ -20,29 +20,27 @@ http_interactions:
code: 200 code: 200
message: OK message: OK
headers: headers:
Server: Cache-Control:
- nginx/1.1.19 - max-age=0, private, must-revalidate
Date: Content-Length:
- Wed, 03 Sep 2014 11:27:37 GMT - '155'
Content-Type: Content-Type:
- application/json - application/json
Content-Length: Date:
- '4' - Wed, 21 Jun 2017 10:44:52 GMT
Connection:
- keep-alive
Status:
- 200 OK
Etag: Etag:
- '"b326b5062b2f0e69046810717534cb09"' - W/"45654cae433b5a9c5fbba1d45d382e52"
Cache-Control: Vary:
- max-age=0, private, must-revalidate - Origin
X-Frame-Options:
- SAMEORIGIN
X-Request-Id: X-Request-Id:
- 115e7a72-b3a6-49e1-b531-980c71088c9d - 67ab4954-19e6-42ce-aae6-55c8ae5a365e
X-Runtime: X-Runtime:
- '0.833195' - '0.230871'
body: body:
encoding: UTF-8 encoding: UTF-8
string: '{"status": "true"}' string: '{"status":true,"gl_repository":"project-3","repository_path":"/Users/dzaporozhets/Projects/gitlab-development-kit/repositories/gitlab-org/gitlab-test.git"}'
http_version: http_version:
recorded_at: Wed, 03 Sep 2014 11:27:37 GMT recorded_at: Wed, 21 Jun 2017 10:44:52 GMT
recorded_with: VCR 2.4.0 recorded_with: VCR 2.4.0
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
http_interactions: http_interactions:
- request: - request:
method: get method: get
uri: https://dev.gitlab.org/api/v4/internal/broadcast_message uri: http://localhost:3000/api/v4/internal/broadcast_message
body: body:
encoding: US-ASCII encoding: US-ASCII
string: secret_token=a123 string: secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
headers: headers:
Accept-Encoding: Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
...@@ -13,26 +13,34 @@ http_interactions: ...@@ -13,26 +13,34 @@ http_interactions:
- "*/*" - "*/*"
User-Agent: User-Agent:
- Ruby - Ruby
Content-Type:
- application/x-www-form-urlencoded
response: response:
status: status:
code: 200 code: 200
message: Not Found message: OK
headers: headers:
Server: Cache-Control:
- nginx/1.1.19 - max-age=0, private, must-revalidate
Date: Content-Length:
- Sat, 07 Feb 2015 16:45:35 GMT - '2'
Content-Type: Content-Type:
- application/json - application/json
Content-Length: Date:
- '27' - Wed, 21 Jun 2017 10:44:50 GMT
Connection: Etag:
- keep-alive - W/"99914b932bd37a50b983c5e7c90ae93b"
Status: Vary:
- 200 OK - Origin
X-Frame-Options:
- SAMEORIGIN
X-Request-Id:
- d31271ab-e21f-4349-a4c3-54f238c075c3
X-Runtime:
- '0.254031'
body: body:
encoding: UTF-8 encoding: UTF-8
string: '{}' string: "{}"
http_version: http_version:
recorded_at: Sat, 07 Feb 2015 16:45:35 GMT recorded_at: Wed, 21 Jun 2017 10:44:50 GMT
recorded_with: VCR 2.4.0 recorded_with: VCR 2.4.0
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
http_interactions: http_interactions:
- request: - request:
method: get method: get
uri: https://dev.gitlab.org/api/v4/internal/broadcast_message uri: http://localhost:3000/api/v4/internal/broadcast_message
body: body:
encoding: US-ASCII encoding: US-ASCII
string: secret_token=a123 string: secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
headers: headers:
Accept-Encoding: Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
...@@ -13,26 +13,34 @@ http_interactions: ...@@ -13,26 +13,34 @@ http_interactions:
- "*/*" - "*/*"
User-Agent: User-Agent:
- Ruby - Ruby
Content-Type:
- application/x-www-form-urlencoded
response: response:
status: status:
code: 200 code: 200
message: OK message: OK
headers: headers:
Server: Cache-Control:
- nginx/1.1.19 - max-age=0, private, must-revalidate
Date: Content-Length:
- Sat, 07 Feb 2015 16:44:35 GMT - '153'
Content-Type: Content-Type:
- application/json - application/json
Content-Length: Date:
- '118' - Wed, 21 Jun 2017 12:29:13 GMT
Connection: Etag:
- keep-alive - W/"ce6de457fcc884f50125e81a10f165ce"
Status: Vary:
- 200 OK - Origin
X-Frame-Options:
- SAMEORIGIN
X-Request-Id:
- ebaaf2c2-112e-4b3c-9182-e8714cd2a29c
X-Runtime:
- '0.276085'
body: body:
encoding: UTF-8 encoding: UTF-8
string: '{"message":"Message","starts_at":"2015-02-07T15:35:00.000Z","ends_at":"2015-02-07T16:35:00.000Z","color":"","font":""}' string: '{"message":"Message","starts_at":"2017-06-21T12:28:00.000Z","ends_at":"2017-06-21T12:35:00.000Z","color":"#e75e40","font":"#ffffff","id":1,"active":true}'
http_version: http_version:
recorded_at: Sat, 07 Feb 2015 16:44:35 GMT recorded_at: Wed, 21 Jun 2017 12:29:13 GMT
recorded_with: VCR 2.4.0 recorded_with: VCR 2.4.0
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
http_interactions: http_interactions:
- request: - request:
method: get method: get
uri: https://dev.gitlab.org/api/v4/internal/check uri: http://localhost:3000/api/v4/internal/check
body: body:
encoding: US-ASCII encoding: US-ASCII
string: secret_token=a123 string: secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
headers: headers:
Accept-Encoding: Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
...@@ -13,34 +13,34 @@ http_interactions: ...@@ -13,34 +13,34 @@ http_interactions:
- "*/*" - "*/*"
User-Agent: User-Agent:
- Ruby - Ruby
Content-Type:
- application/x-www-form-urlencoded
response: response:
status: status:
code: 200 code: 200
message: OK message: OK
headers: headers:
Server: Cache-Control:
- nginx/1.1.19 - max-age=0, private, must-revalidate
Date:
- Wed, 03 Sep 2014 11:27:35 GMT
Content-Type:
- application/json
Content-Length: Content-Length:
- '72' - '72'
Connection: Content-Type:
- keep-alive - application/json
Status: Date:
- 200 OK - Wed, 21 Jun 2017 10:44:49 GMT
Etag: Etag:
- '"23ee74bf6981b57b9d0e0d8a91f3ec1b"' - W/"e1b00c927355c31ffb83b0800821cdbd"
Cache-Control: Vary:
- max-age=0, private, must-revalidate - Origin
X-Frame-Options:
- SAMEORIGIN
X-Request-Id: X-Request-Id:
- c389e282-4d7b-4041-9aed-336e5b007424 - 19d8b75c-45d1-4b8b-9e47-2fda86f98187
X-Runtime: X-Runtime:
- '0.958718' - '0.245482'
body: body:
encoding: UTF-8 encoding: UTF-8
string: '{"api_version":"v4","gitlab_version":"7.3.0.pre","gitlab_rev":"e8f1331"}' string: '{"api_version":"v4","gitlab_version":"9.3.0-pre","gitlab_rev":"8f537e5"}'
http_version: http_version:
recorded_at: Wed, 03 Sep 2014 11:27:35 GMT recorded_at: Wed, 21 Jun 2017 10:44:49 GMT
recorded_with: VCR 2.4.0 recorded_with: VCR 2.4.0
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
http_interactions: http_interactions:
- request: - request:
method: get method: get
uri: https://dev.gitlab.org/api/v4/internal/discover?key_id=126 uri: http://localhost:3000/api/v4/internal/discover?key_id=1
body: body:
encoding: US-ASCII encoding: US-ASCII
string: secret_token=a123 string: secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
headers: headers:
Accept-Encoding: Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
...@@ -13,34 +13,34 @@ http_interactions: ...@@ -13,34 +13,34 @@ http_interactions:
- "*/*" - "*/*"
User-Agent: User-Agent:
- Ruby - Ruby
Content-Type:
- application/x-www-form-urlencoded
response: response:
status: status:
code: 200 code: 200
message: OK message: OK
headers: headers:
Server: Cache-Control:
- nginx/1.1.19 - max-age=0, private, must-revalidate
Date: Content-Length:
- Wed, 03 Sep 2014 11:27:35 GMT - '42'
Content-Type: Content-Type:
- application/json - application/json
Content-Length: Date:
- '56' - Wed, 21 Jun 2017 10:44:49 GMT
Connection:
- keep-alive
Status:
- 200 OK
Etag: Etag:
- '"1d75c1cf3d4bfa4d2b7bb6a0bcfd7f55"' - W/"63b4ab301951bea83c4fc398eba8e307"
Cache-Control: Vary:
- max-age=0, private, must-revalidate - Origin
X-Frame-Options:
- SAMEORIGIN
X-Request-Id: X-Request-Id:
- ef4513ae-0424-4941-8be0-b5a3a7b4bf12 - dc11b8d4-1972-417b-8305-2c35c849405c
X-Runtime: X-Runtime:
- '0.016934' - '0.230170'
body: body:
encoding: UTF-8 encoding: UTF-8
string: '{"name":"Dmitriy Zaporozhets","username":"dzaporozhets"}' string: '{"name":"Administrator","username":"root"}'
http_version: http_version:
recorded_at: Wed, 03 Sep 2014 11:27:35 GMT recorded_at: Wed, 21 Jun 2017 10:44:49 GMT
recorded_with: VCR 2.4.0 recorded_with: VCR 2.4.0
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
http_interactions: http_interactions:
- request: - request:
method: post method: post
uri: https://dev.gitlab.org/api/v4/internal/allowed uri: http://localhost:3000/api/v4/internal/allowed
body: body:
encoding: US-ASCII encoding: US-ASCII
string: action=git-upload-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&project=gitlab%2Fgitlabhq&user_id=1&secret_token=a123 string: action=git-upload-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=http&env=%7B%7D&key_id=1&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
headers: headers:
Accept-Encoding: Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
...@@ -20,29 +20,27 @@ http_interactions: ...@@ -20,29 +20,27 @@ http_interactions:
code: 200 code: 200
message: OK message: OK
headers: headers:
Server: Cache-Control:
- nginx/1.1.19 - max-age=0, private, must-revalidate
Date: Content-Length:
- Wed, 03 Sep 2014 11:27:39 GMT - '62'
Content-Type: Content-Type:
- application/json - application/json
Content-Length: Date:
- '4' - Wed, 21 Jun 2017 10:32:01 GMT
Connection:
- keep-alive
Status:
- 200 OK
Etag: Etag:
- '"b326b5062b2f0e69046810717534cb09"' - W/"71e09fcf8a60a03cd1acc22806386ead"
Cache-Control: Vary:
- max-age=0, private, must-revalidate - Origin
X-Frame-Options:
- SAMEORIGIN
X-Request-Id: X-Request-Id:
- 8bd01f76-6029-4921-ba97-12323a7d5750 - 70bdecc9-0078-4a4b-aa6b-cac1b2578886
X-Runtime: X-Runtime:
- '0.019640' - '0.324202'
body: body:
encoding: UTF-8 encoding: UTF-8
string: '{"status": false}' string: '{"status":false,"message":"Pulling over HTTP is not allowed."}'
http_version: http_version:
recorded_at: Wed, 03 Sep 2014 11:27:39 GMT recorded_at: Wed, 21 Jun 2017 10:32:01 GMT
recorded_with: VCR 2.4.0 recorded_with: VCR 2.4.0
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
http_interactions: http_interactions:
- request: - request:
method: post method: post
uri: https://dev.gitlab.org/api/v4/internal/allowed uri: http://localhost:3000/api/v4/internal/allowed
body: body:
encoding: US-ASCII encoding: US-ASCII
string: action=git-receive-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&project=gitlab%2Fgitlabhq&protocol=ssh&key_id=2&secret_token=a123 string: action=git-receive-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=http&env=%7B%7D&key_id=1&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
headers: headers:
Accept-Encoding: Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
...@@ -21,24 +21,26 @@ http_interactions: ...@@ -21,24 +21,26 @@ http_interactions:
message: OK message: OK
headers: headers:
Cache-Control: Cache-Control:
- no-cache - max-age=0, private, must-revalidate
Content-Length: Content-Length:
- '30' - '62'
Content-Type: Content-Type:
- application/json - application/json
Date: Date:
- Wed, 22 Jun 2016 01:01:41 GMT - Wed, 21 Jun 2017 10:32:01 GMT
Status: Etag:
- 200 OK - W/"7f14e23ac07cc8b0a53c567fcf9432fd"
Vary: Vary:
- Origin - Origin
X-Frame-Options:
- SAMEORIGIN
X-Request-Id: X-Request-Id:
- 55b7af2c-3559-41d2-b301-9b86ad1d8fac - 573f3584-87c6-41cb-a5bf-5e7ee76d4250
X-Runtime: X-Runtime:
- '2.280895' - '0.266135'
body: body:
encoding: UTF-8 encoding: UTF-8
string: '{"status": false, "message":"Git access over SSH is not allowed"}' string: '{"status":false,"message":"Pushing over HTTP is not allowed."}'
http_version: http_version:
recorded_at: Wed, 22 Jun 2016 01:01:41 GMT recorded_at: Wed, 21 Jun 2017 10:32:01 GMT
recorded_with: VCR 2.4.0 recorded_with: VCR 2.4.0
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
http_interactions: http_interactions:
- request: - request:
method: post method: post
uri: https://dev.gitlab.org/api/v4/internal/lfs_authenticate uri: http://localhost:3000/api/v4/internal/lfs_authenticate
body: body:
encoding: US-ASCII encoding: US-ASCII
string: project=gitlab%2Fgitlabhq&key_id=126&secret_token=a123 string: project=gitlab-org%2Fgitlab-test.git&key_id=1&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
headers: headers:
Accept-Encoding: Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
...@@ -13,34 +13,34 @@ http_interactions: ...@@ -13,34 +13,34 @@ http_interactions:
- "*/*" - "*/*"
User-Agent: User-Agent:
- Ruby - Ruby
Content-Type:
- application/x-www-form-urlencoded
response: response:
status: status:
code: 200 code: 200
message: OK message: OK
headers: headers:
Server: Cache-Control:
- nginx/1.1.19 - max-age=0, private, must-revalidate
Date: Content-Length:
- Wed, 03 Sep 2014 11:27:35 GMT - '158'
Content-Type: Content-Type:
- application/json - application/json
Content-Length: Date:
- '56' - Wed, 21 Jun 2017 10:44:50 GMT
Connection:
- keep-alive
Status:
- 200 OK
Etag: Etag:
- '"1d75c1cf3d4bfa4d2b7bb6a0bcfd7f55"' - W/"0a8ccf1603566e521c169d5e43c86cd2"
Cache-Control: Vary:
- max-age=0, private, must-revalidate - Origin
X-Frame-Options:
- SAMEORIGIN
X-Request-Id: X-Request-Id:
- ef4513ae-0424-4941-8be0-b5a3a7b4bf12 - d82d6071-1868-4a37-b026-65ab37f96f2f
X-Runtime: X-Runtime:
- '0.016934' - '0.331056'
body: body:
encoding: UTF-8 encoding: UTF-8
string: '{"username":"dzaporozhets","lfs_token":"wsnys8Zm8Jn7zyhHTAAK","repository_http_path":"http://gitlab.dev/gitlab/gitlabhq.git"}' string: '{"username":"root","lfs_token":"Hyzhyde_wLUeyUQsR3tHGTG8eNocVQm4ssioTEsBSdb6KwCSzQ","repository_http_path":"http://localhost:3000/gitlab-org/gitlab-test.git"}'
http_version: http_version:
recorded_at: Wed, 03 Sep 2014 11:27:35 GMT recorded_at: Wed, 21 Jun 2017 10:44:50 GMT
recorded_with: VCR 2.4.0 recorded_with: VCR 2.4.0
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
http_interactions: http_interactions:
- request: - request:
method: post method: post
uri: https://dev.gitlab.org/api/v4/internal/notify_post_receive uri: http://localhost:3000/api/v4/internal/notify_post_receive
body: body:
encoding: US-ASCII encoding: US-ASCII
string: gl_repository=project-1&repo_path=%2Fpath%2Fto%2Fmy%2Frepo.git&secret_token=a123 string: gl_repository=project-1&project=%2Fpath%2Fto%2Fmy%2Frepo.git&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
headers: headers:
Accept-Encoding: Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
...@@ -23,22 +23,24 @@ http_interactions: ...@@ -23,22 +23,24 @@ http_interactions:
Cache-Control: Cache-Control:
- max-age=0, private, must-revalidate - max-age=0, private, must-revalidate
Content-Length: Content-Length:
- '2' - '3'
Content-Type: Content-Type:
- application/json - application/json
Date: Date:
- Fri, 28 Apr 2017 20:07:14 GMT - Wed, 21 Jun 2017 12:47:48 GMT
Etag: Etag:
- W/"99914b932bd37a50b983c5e7c90ae93b" - W/"3644a684f98ea8fe223c713b77189a77"
Vary: Vary:
- Origin - Origin
X-Frame-Options:
- SAMEORIGIN
X-Request-Id: X-Request-Id:
- 404a3fa8-28ca-40d6-acbb-7923c7fbf342 - 407b184d-d6cf-43db-93fa-3f2d97112948
X-Runtime: X-Runtime:
- '3.988681' - '6.626186'
body: body:
encoding: UTF-8 encoding: UTF-8
string: "{}" string: '200'
http_version: http_version:
recorded_at: Fri, 28 Apr 2017 20:07:14 GMT recorded_at: Wed, 21 Jun 2017 12:47:48 GMT
recorded_with: VCR 2.4.0 recorded_with: VCR 2.4.0
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
http_interactions: http_interactions:
- request: - request:
method: get method: get
uri: https://dev.gitlab.org/api/v4/internal/authorized_keys?key=whatever uri: http://localhost:3000/api/v4/internal/authorized_keys?key=whatever
body: body:
encoding: US-ASCII encoding: US-ASCII
string: secret_token=a123 string: secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
headers: headers:
Accept-Encoding: Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
...@@ -20,31 +20,25 @@ http_interactions: ...@@ -20,31 +20,25 @@ http_interactions:
code: 404 code: 404
message: Not Found message: Not Found
headers: headers:
Server:
- nginx
Date:
- Mon, 07 Mar 2016 12:09:59 GMT
Content-Type:
- text/html; charset=utf-8
Connection:
- keep-alive
Cache-Control: Cache-Control:
- no-cache - no-cache
Set-Cookie: Content-Length:
- _gitlab_session=a924e63729e538c9efe10fa8338077d7; path=/; expires=Mon, 14 - '31'
Mar 2016 12:09:59 -0000; secure; HttpOnly Content-Type:
Status: - application/json
- 404 Not Found Date:
X-Content-Type-Options: - Wed, 21 Jun 2017 12:15:09 GMT
- nosniff Vary:
- Origin
X-Frame-Options: X-Frame-Options:
- SAMEORIGIN - SAMEORIGIN
X-Request-Id: X-Request-Id:
- 275ad011-515f-4239-80be-e537fd7c9086 - c829f804-616e-4046-9b70-cc6a2a559166
X-Runtime: X-Runtime:
- '2.169401' - '0.281120'
X-Xss-Protection: body:
- 1; mode=block encoding: UTF-8
string: '{"message":"404 Key Not Found"}'
http_version: http_version:
recorded_at: Mon, 07 Mar 2016 12:10:00 GMT recorded_at: Wed, 21 Jun 2017 12:15:09 GMT
recorded_with: VCR 2.4.0 recorded_with: VCR 2.4.0
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
http_interactions: http_interactions:
- request: - request:
method: get method: get
uri: https://dev.gitlab.org/api/v4/internal/authorized_keys?key=whatever uri: http://localhost:3000/api/v4/internal/authorized_keys?key=whatever
body: body:
encoding: US-ASCII encoding: US-ASCII
string: secret_token=a123 string: secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
headers: headers:
Accept-Encoding: Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
...@@ -17,34 +17,28 @@ http_interactions: ...@@ -17,34 +17,28 @@ http_interactions:
- application/x-www-form-urlencoded - application/x-www-form-urlencoded
response: response:
status: status:
code: 501 code: 404
message: Not Implemented message: Not Found
headers: headers:
Server:
- nginx
Date:
- Mon, 07 Mar 2016 12:09:59 GMT
Content-Type:
- text/html; charset=utf-8
Connection:
- keep-alive
Cache-Control: Cache-Control:
- no-cache - no-cache
Set-Cookie: Content-Length:
- _gitlab_session=a924e63729e538c9efe10fa8338077d7; path=/; expires=Mon, 14 - '31'
Mar 2016 12:09:59 -0000; secure; HttpOnly Content-Type:
Status: - application/json
- 501 Not Implemented Date:
X-Content-Type-Options: - Wed, 21 Jun 2017 12:15:09 GMT
- nosniff Vary:
- Origin
X-Frame-Options: X-Frame-Options:
- SAMEORIGIN - SAMEORIGIN
X-Request-Id: X-Request-Id:
- 275ad011-515f-4239-80be-e537fd7c9086 - 4bcc3073-f32d-4e07-994e-5eb476b23d41
X-Runtime: X-Runtime:
- '2.169401' - '0.448808'
X-Xss-Protection: body:
- 1; mode=block encoding: UTF-8
string: '{"message":"404 Key Not Found"}'
http_version: http_version:
recorded_at: Mon, 07 Mar 2016 12:10:00 GMT recorded_at: Wed, 21 Jun 2017 12:15:09 GMT
recorded_with: VCR 2.4.0 recorded_with: VCR 2.4.0
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
http_interactions: http_interactions:
- request: - request:
method: get method: get
uri: https://dev.gitlab.org/api/v4/internal/authorized_keys?key=AAAAB3NzaC1yc2EAAAADAQABAAACAQDPKPqqnqQ9PDFw65cO7iHXrKw6ucSZg8Bd2CZ150Yy1YRDPJOWeRNCnddS+M/Lk uri: http://localhost:3000/api/v4/internal/authorized_keys?key=rsa-key
body: body:
encoding: US-ASCII encoding: US-ASCII
string: secret_token=a123 string: secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
headers: headers:
Accept-Encoding: Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
...@@ -20,21 +20,28 @@ http_interactions: ...@@ -20,21 +20,28 @@ http_interactions:
code: 200 code: 200
message: OK message: OK
headers: headers:
Server:
- nginx/1.1.19
Date:
- Wed, 03 Sep 2014 11:27:35 GMT
Content-Type:
- application/json
Connection:
- keep-alive
Status:
- 200 OK
Cache-Control: Cache-Control:
- max-age=0, private, must-revalidate - max-age=0, private, must-revalidate
Content-Length:
- '686'
Content-Type:
- application/json
Date:
- Wed, 21 Jun 2017 12:16:41 GMT
Etag:
- W/"18dfce1367306a2dda6aaf8b1e7795a8"
Vary:
- Origin
X-Frame-Options:
- SAMEORIGIN
X-Request-Id:
- 839ab67c-7b72-44e0-916e-ca4f68c25604
X-Runtime:
- '9.070282'
body: body:
encoding: UTF-8 encoding: UTF-8
string: '{"id":2, "title":"some key title", "key":"ssh-rsa a-made=up-rsa-key dummy@gitlab.com", "created_at":"2016-03-04T18:27:36.959Z"}' string: '{"id":99,"title":"untitled","key":"ssh-rsa rsa-key
dummy@gitlab.com","created_at":"2017-06-21T09:50:07.150Z","can_push":false}'
http_version: http_version:
recorded_at: Mon, 07 Mar 2016 12:10:00 GMT recorded_at: Wed, 21 Jun 2017 12:16:41 GMT
recorded_with: VCR 2.4.0 recorded_with: VCR 2.4.0
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
http_interactions: http_interactions:
- request: - request:
method: post method: post
uri: https://dev.gitlab.org/api/v4/internal/allowed uri: http://localhost:3000/api/v4/internal/allowed
body: body:
encoding: US-ASCII encoding: US-ASCII
string: action=git-upload-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&project=gitlab%2Fgitlabhq&key_id=2&secret_token=a123 string: action=git-upload-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=ssh&env=%7B%7D&key_id=1&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
headers: headers:
Accept-Encoding: Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
...@@ -17,30 +17,30 @@ http_interactions: ...@@ -17,30 +17,30 @@ http_interactions:
- application/x-www-form-urlencoded - application/x-www-form-urlencoded
response: response:
status: status:
code: 404 code: 200
message: Not Found message: OK
headers: headers:
Server: Cache-Control:
- nginx/1.1.19 - max-age=0, private, must-revalidate
Date: Content-Length:
- Wed, 03 Sep 2014 11:27:38 GMT - '63'
Content-Type: Content-Type:
- application/json - application/json
Content-Length: Date:
- '27' - Wed, 21 Jun 2017 12:23:57 GMT
Connection: Etag:
- keep-alive - W/"76a32010244f80700d5e1ba8a55d094c"
Status: Vary:
- 404 Not Found - Origin
Cache-Control: X-Frame-Options:
- no-cache - SAMEORIGIN
X-Request-Id: X-Request-Id:
- 8b0210d2-4db5-4325-8120-740e22eaf7d5 - 096ae253-c6fe-4360-b4d4-48f4b5435ca6
X-Runtime: X-Runtime:
- '0.015198' - '6.377187'
body: body:
encoding: UTF-8 encoding: UTF-8
string: '{"status": false, "message":"404 Not found"}' string: '{"status":false,"message":"Git access over SSH is not allowed"}'
http_version: http_version:
recorded_at: Wed, 03 Sep 2014 11:27:38 GMT recorded_at: Wed, 21 Jun 2017 12:23:57 GMT
recorded_with: VCR 2.4.0 recorded_with: VCR 2.4.0
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
http_interactions: http_interactions:
- request: - request:
method: post method: post
uri: https://dev.gitlab.org/api/v4/internal/allowed uri: http://localhost:3000/api/v4/internal/allowed
body: body:
encoding: US-ASCII encoding: US-ASCII
string: action=git-receive-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&project=gitlab%2Fgitlabhq&protocol=http&key_id=2&secret_token=a123 string: action=git-receive-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=ssh&env=%7B%7D&key_id=2&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
headers: headers:
Accept-Encoding: Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
...@@ -21,24 +21,26 @@ http_interactions: ...@@ -21,24 +21,26 @@ http_interactions:
message: OK message: OK
headers: headers:
Cache-Control: Cache-Control:
- no-cache - max-age=0, private, must-revalidate
Content-Length: Content-Length:
- '30' - '63'
Content-Type: Content-Type:
- application/json - application/json
Date: Date:
- Wed, 22 Jun 2016 01:03:41 GMT - Wed, 21 Jun 2017 12:24:04 GMT
Status: Etag:
- 200 OK - W/"76a32010244f80700d5e1ba8a55d094c"
Vary: Vary:
- Origin - Origin
X-Frame-Options:
- SAMEORIGIN
X-Request-Id: X-Request-Id:
- 55b7af2c-3559-41d2-b301-9b86ad1d8fac - c843a5a3-fc08-46eb-aa45-caceae515638
X-Runtime: X-Runtime:
- '2.280895' - '7.359835'
body: body:
encoding: UTF-8 encoding: UTF-8
string: '{"status": false, "message":"Git access over HTTP is not allowed"}' string: '{"status":false,"message":"Git access over SSH is not allowed"}'
http_version: http_version:
recorded_at: Wed, 22 Jun 2016 01:03:41 GMT recorded_at: Wed, 21 Jun 2017 12:24:04 GMT
recorded_with: VCR 2.4.0 recorded_with: VCR 2.4.0
\ No newline at end of file
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
http_interactions: http_interactions:
- request: - request:
method: post method: post
uri: https://dev.gitlab.org/api/v4/internal/allowed uri: http://localhost:3000/api/v4/internal/allowed
body: body:
encoding: US-ASCII encoding: US-ASCII
string: action=git-receive-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&project=gitlab%2Fgitlabhq&key_id=2&secret_token=a123 string: action=git-receive-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=ssh&env=%7B%7D&key_id=1&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
headers: headers:
Accept-Encoding: Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
...@@ -17,30 +17,30 @@ http_interactions: ...@@ -17,30 +17,30 @@ http_interactions:
- application/x-www-form-urlencoded - application/x-www-form-urlencoded
response: response:
status: status:
code: 404 code: 200
message: Not Found message: OK
headers: headers:
Server: Cache-Control:
- nginx/1.1.19 - max-age=0, private, must-revalidate
Date: Content-Length:
- Wed, 03 Sep 2014 11:27:38 GMT - '63'
Content-Type: Content-Type:
- application/json - application/json
Content-Length: Date:
- '27' - Wed, 21 Jun 2017 12:23:57 GMT
Connection: Etag:
- keep-alive - W/"76a32010244f80700d5e1ba8a55d094c"
Status: Vary:
- 404 Not Found - Origin
Cache-Control: X-Frame-Options:
- no-cache - SAMEORIGIN
X-Request-Id: X-Request-Id:
- f9c23a82-be65-41c8-958a-5f3e1b9aa58b - 93620e06-fda9-4be5-855e-300f5d62fa3c
X-Runtime: X-Runtime:
- '0.028027' - '0.207159'
body: body:
encoding: UTF-8 encoding: UTF-8
string: '{"status": false, "message":"404 Not found"}' string: '{"status":false,"message":"Git access over SSH is not allowed"}'
http_version: http_version:
recorded_at: Wed, 03 Sep 2014 11:27:38 GMT recorded_at: Wed, 21 Jun 2017 12:23:57 GMT
recorded_with: VCR 2.4.0 recorded_with: VCR 2.4.0
---
http_interactions:
- request:
method: post
uri: http://localhost:3000/api/v4/internal/allowed
body:
encoding: US-ASCII
string: action=git-upload-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=ssh&env=%7B%7D&user_id=2&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Ruby
Content-Type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message: OK
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Content-Length:
- '63'
Content-Type:
- application/json
Date:
- Wed, 21 Jun 2017 12:24:05 GMT
Etag:
- W/"76a32010244f80700d5e1ba8a55d094c"
Vary:
- Origin
X-Frame-Options:
- SAMEORIGIN
X-Request-Id:
- 3b242d73-d860-48ac-8fef-80e2d0d3daca
X-Runtime:
- '0.342469'
body:
encoding: UTF-8
string: '{"status":false,"message":"Git access over SSH is not allowed"}'
http_version:
recorded_at: Wed, 21 Jun 2017 12:24:05 GMT
recorded_with: VCR 2.4.0
---
http_interactions:
- request:
method: post
uri: http://localhost:3000/api/v4/internal/allowed
body:
encoding: US-ASCII
string: action=git-upload-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=ssh&env=%7B%7D&key_id=2&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
headers:
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- Ruby
Content-Type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message: OK
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Content-Length:
- '63'
Content-Type:
- application/json
Date:
- Wed, 21 Jun 2017 12:24:04 GMT
Etag:
- W/"76a32010244f80700d5e1ba8a55d094c"
Vary:
- Origin
X-Frame-Options:
- SAMEORIGIN
X-Request-Id:
- 8ce54f29-9ed0-46e5-aedb-37edaa3d52da
X-Runtime:
- '0.228256'
body:
encoding: UTF-8
string: '{"status":false,"message":"Git access over SSH is not allowed"}'
http_version:
recorded_at: Wed, 21 Jun 2017 12:24:04 GMT
recorded_with: VCR 2.4.0
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
http_interactions: http_interactions:
- request: - request:
method: post method: post
uri: https://dev.gitlab.org/api/v4/internal/two_factor_recovery_codes uri: http://localhost:3000/api/v4/internal/two_factor_recovery_codes
body: body:
encoding: US-ASCII encoding: US-ASCII
string: username=user-1&secret_token=a123 string: key_id=777&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
headers: headers:
Accept-Encoding: Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
...@@ -20,23 +20,27 @@ http_interactions: ...@@ -20,23 +20,27 @@ http_interactions:
code: 200 code: 200
message: OK message: OK
headers: headers:
Server: Cache-Control:
- nginx - max-age=0, private, must-revalidate
Date: Content-Length:
- Tue, 16 Aug 2016 22:10:11 GMT - '58'
Content-Type: Content-Type:
- application/json - application/json
Connection: Date:
- keep-alive - Wed, 21 Jun 2017 12:33:42 GMT
Status: Etag:
- 200 OK - W/"2642e3904bef8fa05ab8e0ca78c19047"
Vary:
- Origin
X-Frame-Options:
- SAMEORIGIN
X-Request-Id: X-Request-Id:
- 4467029d-51c6-41bc-af5f-6da279dbb238 - 7f8f2587-f6a2-445a-97a2-36fb9ea8f2d2
X-Runtime: X-Runtime:
- '0.004589' - '0.196409'
body: body:
encoding: UTF-8 encoding: UTF-8
string: '{ "success": false, "message": "Could not find the given key" }' string: '{"success":false,"message":"Could not find the given key"}'
http_version: http_version:
recorded_at: Tue, 16 Aug 2016 22:10:11 GMT recorded_at: Wed, 21 Jun 2017 12:33:42 GMT
recorded_with: VCR 2.4.0 recorded_with: VCR 2.4.0
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
http_interactions: http_interactions:
- request: - request:
method: post method: post
uri: https://dev.gitlab.org/api/v4/internal/two_factor_recovery_codes uri: http://localhost:3000/api/v4/internal/two_factor_recovery_codes
body: body:
encoding: US-ASCII encoding: US-ASCII
string: username=user-1&secret_token=a123 string: key_id=1&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
headers: headers:
Accept-Encoding: Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
...@@ -20,23 +20,27 @@ http_interactions: ...@@ -20,23 +20,27 @@ http_interactions:
code: 200 code: 200
message: OK message: OK
headers: headers:
Server: Cache-Control:
- nginx - max-age=0, private, must-revalidate
Date: Content-Length:
- Tue, 16 Aug 2016 22:10:11 GMT - '225'
Content-Type: Content-Type:
- application/json - application/json
Connection: Date:
- keep-alive - Wed, 21 Jun 2017 12:31:42 GMT
Status: Etag:
- 200 OK - W/"087adad20960d665d59e7e4ca02efd28"
Vary:
- Origin
X-Frame-Options:
- SAMEORIGIN
X-Request-Id: X-Request-Id:
- 4467029d-51c6-41bc-af5f-6da279dbb238 - a0e1c950-83a7-4fed-afb0-bfb01d104795
X-Runtime: X-Runtime:
- '0.004589' - '1.378088'
body: body:
encoding: UTF-8 encoding: UTF-8
string: '{ "success": true, "recovery_codes": ["f67c514de60c4953","41278385fc00c1e0"] }' string: '{"success":true,"recovery_codes":["f67c514de60c4953","41278385fc00c1e0"]}'
http_version: http_version:
recorded_at: Tue, 16 Aug 2016 22:10:11 GMT recorded_at: Wed, 21 Jun 2017 12:31:42 GMT
recorded_with: VCR 2.4.0 recorded_with: VCR 2.4.0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment