From f0f2a78d5854ad34dc63f67e3fc325d3241645f4 Mon Sep 17 00:00:00 2001 From: anar Date: Oct 18 2017 15:09:20 +0000 Subject: Added files created by testing --- diff --git a/hubs/tests/vcr-request-data/hubs.tests.test_widget_validators.ValidatorsTest.test_github_organization b/hubs/tests/vcr-request-data/hubs.tests.test_widget_validators.ValidatorsTest.test_github_organization new file mode 100644 index 0000000..dcfc6ae --- /dev/null +++ b/hubs/tests/vcr-request-data/hubs.tests.test_widget_validators.ValidatorsTest.test_github_organization @@ -0,0 +1,86 @@ +interactions: +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + method: GET + uri: https://api.github.com/users/fedora-infra + response: + body: + string: !!binary | + H4sIAAAAAAAAA52TzW6cMBSFXyXyehjjMJ02lqruKnXVzayyGRnjgRsZ2/IP0RTl3XsNJJogVRWz + Aiyf7x6OfUaibQuGcHJRjfWiAHPxguwINIRXFTseq687IgYRhT8nr3FjF6MLnNJ5MbB9C7FLdQrK + S2uiMnEvbU8TXeQ/hu8HBLZ+oWQywYUVzcECmtVIC3TlqYu9XpmYZ0+S1eaL1dq+ImVt+3+D6IcS + Tc7vYNo7KagcqY2dwvTwl95yEBDidlOTaqT5cYYmcwIeiVfNZmOLDm29GnQ0Uq+cnYCpDtKDi2DN + doOf1EizvhUG/oj7aKgOCMnWtluZVKhWA17G7fJZNlLnYRDymqPxSioYMOw7kSs9EuPVKezB75uU + 8hFAVGfR9LmRF6GD2hEj+rzx51TPh1+5niH6JGPyChV4850wV8JN0npHaqzzbUedC/u5GM7bFyXj + HpOlqNNWTkfzLlS9AGz3TOnAK1FrnLtQwf7LwsNJiR55LtUa5HmOnrOSfSxNN5fw8r1MWMmbLyzI + 9CVxYsSARcRJjyWripIV7OnEnvjhGz98ecYZyTWf9hyLsirY4fRY8orxsnomb38BYQwDb9AEAAA= + headers: + access-control-allow-origin: ['*'] + 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'] + cache-control: ['public, max-age=60, s-maxage=60'] + content-encoding: [gzip] + content-security-policy: [default-src 'none'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 18 Oct 2017 14:57:08 GMT'] + etag: [W/"26ff4247338ae3b104803156575c2cff"] + expect-ct: ['max-age=2592000; report-uri="https://api.github.com/_private/browser/errors"'] + last-modified: ['Mon, 14 Mar 2016 20:31:03 GMT'] + server: [GitHub.com] + status: [200 OK] + strict-transport-security: [max-age=31536000; includeSubdomains; preload] + vary: [Accept] + x-content-type-options: [nosniff] + x-frame-options: [deny] + x-github-media-type: [github.v3; format=json] + x-github-request-id: ['8483:248DD:3178E2B:58E7F3D:59E76BC3'] + x-ratelimit-limit: ['60'] + x-ratelimit-remaining: ['39'] + x-ratelimit-reset: ['1508341503'] + x-runtime-rack: ['0.020675'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + method: GET + uri: https://api.github.com/users/something-that-does-not-exist + response: + body: + string: !!binary | + H4sIAAAAAAAAAxXJMQ7CMAwF0Ksgs5J6YOsBGHsFFJqvNFISV7HdBfXuhfW9LzWoxgyaaRG7vcR7 + ogclWb2hW7Qi/e2j/n4z23VmTjhQZceYcrHNP9MqjY8nu2Io3zMsxKCl54rwNzovaRNpS2YAAAA= + headers: + access-control-allow-origin: ['*'] + 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'] + content-encoding: [gzip] + content-security-policy: [default-src 'none'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 18 Oct 2017 14:57:09 GMT'] + expect-ct: ['max-age=2592000; report-uri="https://api.github.com/_private/browser/errors"'] + server: [GitHub.com] + status: [404 Not Found] + strict-transport-security: [max-age=31536000; includeSubdomains; preload] + x-content-type-options: [nosniff] + x-frame-options: [deny] + x-github-media-type: [github.v3; format=json] + x-github-request-id: ['9928:248DC:1970632:35564D7:59E76BC4'] + x-ratelimit-limit: ['60'] + x-ratelimit-remaining: ['38'] + x-ratelimit-reset: ['1508341503'] + x-runtime-rack: ['0.013258'] + x-xss-protection: [1; mode=block] + status: {code: 404, message: Not Found} +version: 1 diff --git a/hubs/tests/vcr-request-data/hubs.tests.test_widget_validators.ValidatorsTest.test_github_repo b/hubs/tests/vcr-request-data/hubs.tests.test_widget_validators.ValidatorsTest.test_github_repo new file mode 100644 index 0000000..575ba8d --- /dev/null +++ b/hubs/tests/vcr-request-data/hubs.tests.test_widget_validators.ValidatorsTest.test_github_repo @@ -0,0 +1,99 @@ +interactions: +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + method: GET + uri: https://api.github.com/repos/fedora-infra/fedmsg + response: + body: + string: !!binary | + H4sIAAAAAAAAA+1Yy27jOBD8lUDXdUzbSjIZAYvZ094GuwvkNBeDlmiJE4kUSMpGIuTft0jqZQN+ + hL4GCBybYBWLTXazu9uIZ1ESx6vv8fPTLBK0YlESbVlW6TyaRdumLNfjoFT0noutomSYIfeCqShp + o1LmXHjsMA0Mnn759BR/m0V0Rw1V60aVmFgYU+uEED+ol/Ocm6LZNJqpVArDhJmnsiINiWMH/7H7 + 8wGEuepYLHOEgSO2mndEHg02bdVONRWmKo9E+LUd5GjyVpal3IPlWPalhciAtIZ0LFzkgSxAtkSa + gsF62NKHNQTX5vOiHKol9t+aZ5ZH40gUyz4trMNBlr0CHy1RrJaOsNnoVPHacCk+L/AADTapcir4 + Ow1jA1qDxEr7vBSHAprtcBk/D/ewltSK72j6Zk2jWMr4DsYOpDzCg9G81dZj/5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WV9+pazJe7NZ99Z3QfD3RM0XGctC3 + wsW6vu8kmNmjB9NHAuv+0xKiiyTx6uN/dyzNvYwWAAA= + headers: + access-control-allow-origin: ['*'] + 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'] + cache-control: ['public, max-age=60, s-maxage=60'] + content-encoding: [gzip] + content-security-policy: [default-src 'none'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 18 Oct 2017 14:57:10 GMT'] + etag: [W/"38e039a20d5cd6cc6f07ddf3cecca325"] + expect-ct: ['max-age=2592000; report-uri="https://api.github.com/_private/browser/errors"'] + last-modified: ['Thu, 05 Oct 2017 02:04:30 GMT'] + server: [GitHub.com] + status: [200 OK] + strict-transport-security: [max-age=31536000; includeSubdomains; preload] + vary: [Accept] + x-content-type-options: [nosniff] + x-frame-options: [deny] + x-github-media-type: [github.v3; format=json] + x-github-request-id: ['B0BB:248DD:3178F42:58E812F:59E76BC5'] + x-ratelimit-limit: ['60'] + x-ratelimit-remaining: ['37'] + x-ratelimit-reset: ['1508341503'] + x-runtime-rack: ['0.039710'] + x-xss-protection: [1; mode=block] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + method: GET + uri: https://api.github.com/repos/fedora-infra/something-that-does-not-exist + response: + body: + string: !!binary | + H4sIAAAAAAAAA6tWyk0tLk5MT1WyUvLLL1Fwyy/NS1HSUUrJTy7NTc0rSSzJzM+LLy3KAcpnlJQU + FFvp66eklqXm5BekFumlZ5ZklCbpJefn6pcZK9UCAP6TTUJNAAAA + headers: + access-control-allow-origin: ['*'] + 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'] + content-encoding: [gzip] + content-security-policy: [default-src 'none'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 18 Oct 2017 14:57:10 GMT'] + expect-ct: ['max-age=2592000; report-uri="https://api.github.com/_private/browser/errors"'] + server: [GitHub.com] + status: [404 Not Found] + strict-transport-security: [max-age=31536000; includeSubdomains; preload] + x-content-type-options: [nosniff] + x-frame-options: [deny] + x-github-media-type: [github.v3; format=json] + x-github-request-id: ['5100:248DD:3178FF1:58E825A:59E76BC6'] + x-ratelimit-limit: ['60'] + x-ratelimit-remaining: ['36'] + x-ratelimit-reset: ['1508341503'] + x-runtime-rack: ['0.018622'] + x-xss-protection: [1; mode=block] + status: {code: 404, message: Not Found} +version: 1