Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-41464] Add missing test data
  • Loading branch information
stephenc committed Jan 26, 2017
1 parent 232643c commit df17212
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/test/resources/api/__files/body-users-stephenc-JRfTU.json
@@ -0,0 +1,32 @@
{
"login": "stephenc",
"id": 209336,
"avatar_url": "https://avatars.githubusercontent.com/u/209336?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/stephenc",
"html_url": "https://github.com/stephenc",
"followers_url": "https://api.github.com/users/stephenc/followers",
"following_url": "https://api.github.com/users/stephenc/following{/other_user}",
"gists_url": "https://api.github.com/users/stephenc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/stephenc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/stephenc/subscriptions",
"organizations_url": "https://api.github.com/users/stephenc/orgs",
"repos_url": "https://api.github.com/users/stephenc/repos",
"events_url": "https://api.github.com/users/stephenc/events{/privacy}",
"received_events_url": "https://api.github.com/users/stephenc/received_events",
"type": "User",
"site_admin": false,
"name": "Stephen Connolly",
"company": "CloudBees Inc.",
"blog": "http://javaadventure.blogspot.com/",
"location": "Dublin, Ireland",
"email": null,
"hireable": null,
"bio": null,
"public_repos": 139,
"public_gists": 10,
"followers": 73,
"following": 13,
"created_at": "2010-02-23T17:38:28Z",
"updated_at": "2017-01-21T10:29:10Z"
}
34 changes: 34 additions & 0 deletions src/test/resources/api/mappings/mapping-users-stephenc-JRfTU.json
@@ -0,0 +1,34 @@
{
"request" : {
"url" : "/users/stephenc",
"method" : "GET"
},
"response" : {
"status" : 200,
"bodyFileName" : "body-users-stephenc-JRfTU.json",
"headers" : {
"Server" : "GitHub.com",
"Date" : "Tue, 06 Dec 2016 15:06:25 GMT",
"Content-Type" : "application/json; charset=utf-8",
"Transfer-Encoding" : "chunked",
"Status" : "200 OK",
"X-RateLimit-Limit" : "60",
"X-RateLimit-Remaining" : "60",
"X-RateLimit-Reset" : "1481039662",
"Cache-Control" : "public, max-age=60, s-maxage=60",
"Vary" : [ "Accept", "Accept-Encoding" ],
"ETag" : "W/\"91482e12d1cde431b38e0238d74dfa7b\"",
"Last-Modified" : "Sat, 27 Feb 2016 07:57:23 GMT",
"X-GitHub-Media-Type" : "github.v3; format=json",
"Access-Control-Expose-Headers" : "ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval",
"Access-Control-Allow-Origin" : "*",
"Content-Security-Policy" : "default-src 'none'",
"Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload",
"X-Content-Type-Options" : "nosniff",
"X-Frame-Options" : "deny",
"X-XSS-Protection" : "1; mode=block",
"X-Served-By" : "d256f86292c6dde5d09d15d926ec67a3",
"X-GitHub-Request-Id" : "B2A7FE77:629C:AF96C1F:5846D3F0"
}
}
}

0 comments on commit df17212

Please sign in to comment.