From f7973b3d829ef2635db03981d5a5f244144bf4b3 Mon Sep 17 00:00:00 2001 From: Khaled Garbaya Date: Thu, 26 Jul 2018 13:50:45 +0200 Subject: [PATCH] test: Add recording (#123) --- .eslintignore | 1 + package-lock.json | 35 + package.json | 6 +- test/end-to-end/assertions.js | 4 - test/end-to-end/cli.js | 5 +- test/end-to-end/content-transform.spec.js | 4 +- test/end-to-end/content-type.spec.js | 3 +- test/end-to-end/derive-entry.spec.js | 3 +- test/end-to-end/editor-interface.spec.js | 3 +- test/end-to-end/fields.spec.js | 3 +- test/end-to-end/validations.spec.js | 3 +- test/fixtures/.gitkeep | 0 .../contentful-migration-integration.js | 10573 ++++++++++++++++ test/integration/migration.spec.js | 10 +- test/record.js | 62 + 15 files changed, 10698 insertions(+), 17 deletions(-) create mode 100644 .eslintignore create mode 100644 test/fixtures/.gitkeep create mode 100644 test/fixtures/contentful-migration-integration.js create mode 100644 test/record.js diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 000000000..8be5c353a --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +test/fixtures/ diff --git a/package-lock.json b/package-lock.json index bb8981810..08be50cc6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -699,6 +699,12 @@ "type-detect": "^4.0.0" } }, + "deep-equal": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.0.1.tgz", + "integrity": "sha1-9dJgKStmDghO/0zbyfCK0yR0SLU=", + "dev": true + }, "deep-is": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", @@ -2111,6 +2117,23 @@ } } }, + "nock": { + "version": "9.4.2", + "resolved": "https://registry.npmjs.org/nock/-/nock-9.4.2.tgz", + "integrity": "sha512-WFRlGfJJ17uyXKAIFKXqoq5o49W7aYjfH3Zges133kYGwL6PuSjthP50osQJJNMQoz0f0SodmREjzo8eLh/Bxw==", + "dev": true, + "requires": { + "chai": "^4.1.2", + "debug": "^3.1.0", + "deep-equal": "^1.0.0", + "json-stringify-safe": "^5.0.1", + "lodash": "^4.17.5", + "mkdirp": "^0.5.0", + "propagate": "^1.0.0", + "qs": "^6.5.1", + "semver": "^5.5.0" + } + }, "normalize-package-data": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz", @@ -5076,6 +5099,12 @@ "integrity": "sha1-ihvjZr+Pwj2yvSPxDG/pILQ4nR8=", "dev": true }, + "propagate": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/propagate/-/propagate-1.0.0.tgz", + "integrity": "sha1-AMLa7t2iDofjeCs0Stuhzd1q1wk=", + "dev": true + }, "pseudomap": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", @@ -5899,6 +5928,12 @@ "resolved": "https://registry.npmjs.org/yn/-/yn-2.0.0.tgz", "integrity": "sha1-5a2ryKz0CPY4X8dklWhMiOavaJo=", "dev": true + }, + "zlib": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/zlib/-/zlib-1.0.5.tgz", + "integrity": "sha1-bnyXL8NxxkWmr7A6sUdp3vEU/MA=", + "dev": true } } } diff --git a/package.json b/package.json index 7dea54a3e..ea8b12926 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "clean": "rimraf built", "build": "npm run clean && tsc -p .", "prepare": "npm run build", - "test": "npm run build && npm run test-unit && npm run test-integration && npm run test-e2e && npm run lint", + "test": "NOCK_RECORD=0 npm run build && npm run test-unit && npm run test-integration && npm run test-e2e && npm run lint", "test-watch": "npm run test-unit -- --watch", "test-unit": "NODE_ENV=test mocha --compilers ts-node/register --recursive test/unit/lib/ ", "test-integration": "NODE_ENV=test mocha --require test/integration/setup.js 'test/integration/**/*.spec.js'", @@ -101,6 +101,7 @@ "eslint-plugin-standard": "^3.0.1", "mocha": "^5.2.0", "nixt": "^0.5.0", + "nock": "^9.4.2", "nyc": "^11.2.1", "rewire": "^2.5.2", "rimraf": "^2.6.2", @@ -112,7 +113,8 @@ "tslint": "^5.7.0", "tslint-config-standard": "^6.0.1", "typescript": "^2.5.3", - "uuid": "^3.2.1" + "uuid": "^3.3.2", + "zlib": "^1.0.5" }, "bin": { "contentful-migration": "./bin/contentful-migration" diff --git a/test/end-to-end/assertions.js b/test/end-to-end/assertions.js index af7b98197..2fe861333 100644 --- a/test/end-to-end/assertions.js +++ b/test/end-to-end/assertions.js @@ -66,8 +66,6 @@ module.exports = { entriesTransform: function (id, message) { return result => { expect(result.code).to.eql(1); - expect(result.stderr).not.to.be.empty(); - expect(result.stdout).not.to.be.empty(); const withoutAnsiCodes = stripAnsi(`${result.stdout} ${result.stderr}`); expect(withoutAnsiCodes).to.include(id); @@ -207,8 +205,6 @@ module.exports = { }, entriesTransform: function (id) { return result => { - expect(result.stdout).not.to.be.empty(); - const withoutAnsiCodes = stripAnsi(result.stdout); expect(withoutAnsiCodes).to.include(`Transform entries for ${id}`); }; diff --git a/test/end-to-end/cli.js b/test/end-to-end/cli.js index 6f9b2fd47..2b83bee39 100644 --- a/test/end-to-end/cli.js +++ b/test/end-to-end/cli.js @@ -3,11 +3,12 @@ const nixt = require('nixt'); const ACCESS_TOKEN = process.env.CONTENTFUL_INTEGRATION_MANAGEMENT_TOKEN; - +process.env.TEST_ENVIRONMENT = 'end-to-end-tests'; const cli = () => { return nixt() .env('CONTENTFUL_MANAGEMENT_ACCESS_TOKEN', ACCESS_TOKEN) - .base('./bin/contentful-migration ').clone(); + .base('./bin/contentful-migration ') + .clone(); }; module.exports = cli; diff --git a/test/end-to-end/content-transform.spec.js b/test/end-to-end/content-transform.spec.js index 45d906b91..36e25b22d 100644 --- a/test/end-to-end/content-transform.spec.js +++ b/test/end-to-end/content-transform.spec.js @@ -5,10 +5,10 @@ const _ = require('lodash'); const assert = require('./assertions'); const cli = require('./cli'); const { createDevEnvironment, deleteDevEnvironment, getEntries, makeRequest } = require('../helpers/client'); -const uuid = require('uuid'); +const SOURCE_TEST_SPACE = process.env.CONTENTFUL_INTEGRATION_SOURCE_SPACE; +const uuid = require('uuid'); const ENVIRONMENT_ID = uuid.v4(); -const SOURCE_TEST_SPACE = process.env.CONTENTFUL_INTEGRATION_SOURCE_SPACE; describe('apply content transformation', function () { this.timeout(30000); diff --git a/test/end-to-end/content-type.spec.js b/test/end-to-end/content-type.spec.js index 495c962a4..c7499f85a 100644 --- a/test/end-to-end/content-type.spec.js +++ b/test/end-to-end/content-type.spec.js @@ -7,9 +7,10 @@ const { expect } = require('chai'); const assert = require('./assertions'); const cli = require('./cli'); const { createDevEnvironment, deleteDevEnvironment, getDevContentType } = require('../helpers/client'); -const uuid = require('uuid'); +const uuid = require('uuid'); const ENVIRONMENT_ID = uuid.v4(); + const SOURCE_TEST_SPACE = process.env.CONTENTFUL_INTEGRATION_SOURCE_SPACE; describe('apply content-type migration examples', function () { diff --git a/test/end-to-end/derive-entry.spec.js b/test/end-to-end/derive-entry.spec.js index 116ed0e5b..b63f0614d 100644 --- a/test/end-to-end/derive-entry.spec.js +++ b/test/end-to-end/derive-entry.spec.js @@ -5,9 +5,10 @@ const _ = require('lodash'); const assert = require('./assertions'); const cli = require('./cli'); const { createDevEnvironment, deleteDevEnvironment, getEntries, makeRequest } = require('../helpers/client'); -const uuid = require('uuid'); +const uuid = require('uuid'); const ENVIRONMENT_ID = uuid.v4(); + const SOURCE_TEST_SPACE = process.env.CONTENTFUL_INTEGRATION_SOURCE_SPACE; describe('apply derive entry transformation', function () { diff --git a/test/end-to-end/editor-interface.spec.js b/test/end-to-end/editor-interface.spec.js index ae09e4a0e..abcd8b16c 100644 --- a/test/end-to-end/editor-interface.spec.js +++ b/test/end-to-end/editor-interface.spec.js @@ -7,9 +7,10 @@ const { expect } = require('chai'); const assert = require('./assertions'); const cli = require('./cli'); const { createDevEnvironment, deleteDevEnvironment, getDevEditorInterface } = require('../helpers/client'); -const uuid = require('uuid'); +const uuid = require('uuid'); const ENVIRONMENT_ID = uuid.v4(); + const SOURCE_TEST_SPACE = process.env.CONTENTFUL_INTEGRATION_SOURCE_SPACE; describe('apply editor-interface migration examples', function () { diff --git a/test/end-to-end/fields.spec.js b/test/end-to-end/fields.spec.js index f151e854a..9b954f90d 100644 --- a/test/end-to-end/fields.spec.js +++ b/test/end-to-end/fields.spec.js @@ -7,9 +7,10 @@ const { expect } = require('chai'); const assert = require('./assertions'); const cli = require('./cli'); const { createDevEnvironment, deleteDevEnvironment, getDevContentType } = require('../helpers/client'); -const uuid = require('uuid'); +const uuid = require('uuid'); const ENVIRONMENT_ID = uuid.v4(); + const SOURCE_TEST_SPACE = process.env.CONTENTFUL_INTEGRATION_SOURCE_SPACE; describe('apply field migration examples', function () { diff --git a/test/end-to-end/validations.spec.js b/test/end-to-end/validations.spec.js index b7a1407d3..99e4ac171 100644 --- a/test/end-to-end/validations.spec.js +++ b/test/end-to-end/validations.spec.js @@ -7,9 +7,10 @@ const { expect } = require('chai'); const assert = require('./assertions'); const cli = require('./cli'); const { createDevEnvironment, deleteDevEnvironment, getDevContentType } = require('../helpers/client'); -const uuid = require('uuid'); +const uuid = require('uuid'); const ENVIRONMENT_ID = uuid.v4(); + const SOURCE_TEST_SPACE = process.env.CONTENTFUL_INTEGRATION_SOURCE_SPACE; describe('apply validations migration examples', function () { diff --git a/test/fixtures/.gitkeep b/test/fixtures/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/test/fixtures/contentful-migration-integration.js b/test/fixtures/contentful-migration-integration.js new file mode 100644 index 000000000..276dbfa74 --- /dev/null +++ b/test/fixtures/contentful-migration-integration.js @@ -0,0 +1,10573 @@ +const nock = require('nock'); + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin') + .reply(200, { + "name":"Migrations CLI Test", + "sys":{ + "type":"Space", + "id":"bohepdihyxin", + "version":1, + "createdBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "createdAt":"2017-09-04T10:02:24Z", + "updatedBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedAt":"2017-09-04T10:02:24Z" + } +} + +, [ 'Accept-Ranges', + 'bytes', + 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'Cache-Control', + 'max-age=0', + 'CF-Organization-Id', + '33lrAejsx0jnNQeRJgZ3EO', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:00 GMT', + 'ETag', + 'W/"9794e7fe9bac8cf325815d01b4053837"', + 'Referrer-Policy', + 'strict-origin-when-cross-origin', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35363', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + '9189765631203f89411ca05e04d67ee9', + 'X-Download-Options', + 'noopen', + 'X-Frame-Options', + 'ALLOWALL', + 'X-Permitted-Cross-Domain-Policies', + 'none', + 'X-XSS-Protection', + '1; mode=block', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=w3yM7S9OSSaIhjgSaKPQ+FPrVVsAAAAAQUIPAAAAAAA6kNKcrL8CfxUROrYtiGd8; expires=Tue, 23 Jul 2019 08:17:24 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=64krF+qPrikmV8jj6lKYhQAAAABA+yuuCQ1jHaiQAwEJwtb1; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=xnkERSMfbg/Sb/EfejOiBlPrVVsAAAAA1jeHjkyijxt437+JI8vOzw==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '1-17693594-17693599 NNNN CT(0 0 0) RT(1532357459430 70) q(0 1 1 -1) r(3 3) U5', + 'X-CDN', + 'Incapsula', + + + 'Transfer-Encoding', + 'chunked' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration', {"name":"env-integration"}) + .reply(201, {"name":"env-integration","sys":{"type":"Environment","id":"env-integration","version":1,"space":{"sys":{"type":"Link","linkType":"Space","id":"bohepdihyxin"}},"status":{"sys":{"type":"Link","linkType":"Status","id":"queued"}},"createdBy":{"sys":{"type":"Link","linkType":"User","id":"33kZDXNajFNmbngiu5MvUa"}},"createdAt":"2018-07-23T14:51:00Z","updatedBy":{"sys":{"type":"Link","linkType":"User","id":"33kZDXNajFNmbngiu5MvUa"}},"updatedAt":"2018-07-23T14:51:00Z"}}, [ 'Accept-Ranges', + 'bytes', + 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'Cache-Control', + 'max-age=0', + 'CF-Organization-Id', + '33lrAejsx0jnNQeRJgZ3EO', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:00 GMT', + 'ETag', + 'W/"4713545bb0ac817bfa8e38bcfcfc7270"', + 'Referrer-Policy', + 'strict-origin-when-cross-origin', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35362', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + '40fa353ffa967708756431f0df302655', + 'X-Download-Options', + 'noopen', + 'X-Frame-Options', + 'ALLOWALL', + 'X-Permitted-Cross-Domain-Policies', + 'none', + 'X-XSS-Protection', + '1; mode=block', + 'Content-Length', + '707', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=UDAv3lb2R8eSw8hp8O0KeVTrVVsAAAAAQUIPAAAAAAAUKeQt974C3wSzzxJAZ59F; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=g7uPbxRpcz0ju90H6lKYhQAAAAC2siOkeTxLXclUh+x/8VSl; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=RCBebaM/1xUtcPEfejOiBlTrVVsAAAAABvY2GjrhOglk96TgoxTvIQ==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '0-10399546-10399547 NNNN CT(0 0 0) RT(1532357459840 35) q(0 0 0 -1) r(4 4) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration') + .reply(200, { + "name":"env-integration", + "sys":{ + "type":"Environment", + "id":"env-integration", + "version":5, + "space":{ + "sys":{ + "type":"Link", + "linkType":"Space", + "id":"bohepdihyxin" + } + }, + "status":{ + "sys":{ + "type":"Link", + "linkType":"Status", + "id":"ready" + } + }, + "createdBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "createdAt":"2018-07-23T14:51:00Z", + "updatedBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedAt":"2018-07-23T14:51:01Z" + } +} + +, [ 'Accept-Ranges', + 'bytes', + 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'Cache-Control', + 'max-age=0', + 'CF-Organization-Id', + '33lrAejsx0jnNQeRJgZ3EO', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:01 GMT', + 'ETag', + 'W/"e0e8a1555e26b0f46268c98f2fea6663"', + 'Referrer-Policy', + 'strict-origin-when-cross-origin', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35361', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + 'bcf6fe82b420e4054b08d9810133d5c6', + 'X-Download-Options', + 'noopen', + 'X-Frame-Options', + 'ALLOWALL', + 'X-Permitted-Cross-Domain-Policies', + 'none', + 'X-XSS-Protection', + '1; mode=block', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=re8JlHpJQE+ngBTlRmjY01TrVVsAAAAAQUIPAAAAAABckfH8KJyKHGBpt8EAX9+r; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=E/oQVs83oGFMPl6W6lKYhQAAAAC3t4uVpwsd0D6+2Z2okryW; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=OEtpHx4vBRfFcPEfejOiBlTrVVsAAAAA5fCAzaqt8KnLJhBMqUT8uA==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '0-10399557-10399560 NNNN CT(118 240 0) RT(1532357460289 32) q(0 0 3 -1) r(6 6) U5', + 'X-CDN', + 'Incapsula', + + + 'Transfer-Encoding', + 'chunked' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types') + .query({"sys.id":{"in":"dog"}}) + .reply(200, { + "sys": { + "type": "Array" + }, + "total": 0, + "skip": 0, + "limit": 100, + "items": [] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:01 GMT', + 'ETag', + '"29f2c21be26360c424f617d8592cf6f9"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35360', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + 'db58e064216d5f7aea7edcc1a507e9e0', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=4PaoHbIvSMukX+npqBJhs1XrVVsAAAAAQUIPAAAAAAA74X1BUwlCtzF+qk5ZXAPr; expires=Tue, 23 Jul 2019 08:17:24 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=Oe0zHAJVdwe5h57p6lKYhQAAAABuv3rB9AEDosEp51arLjVU; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=s+ziTN8D8DwkcfEfejOiBlXrVVsAAAAAbxgq82vTdZepQ7dYeW3pfg==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '1-17693708-17693710 NNNN CT(0 0 0) RT(1532357461073 33) q(0 0 0 -1) r(3 3) U5', + 'X-CDN', + 'Incapsula', + + + 'Transfer-Encoding', + 'chunked' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/locales') + .reply(200, { + "total":1, + "limit":100, + "skip":0, + "sys":{ + "type":"Array" + }, + "items":[ + { + "name":"U.S. English", + "internal_code":"en-US", + "code":"en-US", + "fallbackCode":null, + "default":true, + "contentManagementApi":true, + "contentDeliveryApi":true, + "optional":false, + "sys":{ + "type":"Locale", + "id":"0zK7OynpqVdcSetOBfe5P8", + "version":1, + "space":{ + "sys":{ + "type":"Link", + "linkType":"Space", + "id":"bohepdihyxin" + } + }, + "environment":{ + "sys":{ + "type":"Link", + "linkType":"Environment", + "id":"env-integration" + } + }, + "createdBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "createdAt":"2018-07-23T14:51:00Z", + "updatedBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedAt":"2018-07-23T14:51:00Z" + } + } + ] +} + +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'Cache-Control', + 'max-age=0', + 'CF-Organization-Id', + '33lrAejsx0jnNQeRJgZ3EO', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:02 GMT', + 'ETag', + 'W/"7e337906d0a6faa3de1b0ec7edd5b080"', + 'Referrer-Policy', + 'strict-origin-when-cross-origin', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35359', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + '9a5286f5cb92710a9c6c9ae65f20e971', + 'X-Download-Options', + 'noopen', + 'X-Frame-Options', + 'ALLOWALL', + 'X-Permitted-Cross-Domain-Policies', + 'none', + 'X-XSS-Protection', + '1; mode=block', + 'Content-Length', + '413', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=WtKSyC2PTASz90hL3XSrAlXrVVsAAAAAQUIPAAAAAAAzir2jTTsUZGcedmn88KAG; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=9YSUBdV1FS4SWQ3D6lKYhQAAAACJt99VbQT2ZqUkVQWs59rw; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=3AkSDlRdTGuEcfEfejOiBlXrVVsAAAAAQoZ78+NS0ZnFZtSbVu+klw==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '2-25589035-25589038 NNNN CT(0 0 0) RT(1532357461577 42) q(0 0 0 -1) r(1 1) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/dog', {"name":"angry dog","fields":[{"id":"woofs","name":"woof woof","type":"Number","required":true}],"description":"super angry"}) + .reply(201, {"sys":{"space":{"sys":{"type":"Link","linkType":"Space","id":"bohepdihyxin"}},"id":"dog","type":"ContentType","createdAt":"2018-07-23T14:51:02.544Z","updatedAt":"2018-07-23T14:51:02.544Z","environment":{"sys":{"id":"env-integration","type":"Link","linkType":"Environment"}},"createdBy":{"sys":{"type":"Link","linkType":"User","id":"33kZDXNajFNmbngiu5MvUa"}},"updatedBy":{"sys":{"type":"Link","linkType":"User","id":"33kZDXNajFNmbngiu5MvUa"}},"version":1},"displayField":null,"name":"angry dog","description":"super angry","fields":[{"id":"woofs","name":"woof woof","type":"Number","localized":false,"required":true,"validations":[],"disabled":false,"omitted":false}]}, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:02 GMT', + 'ETag', + '"690710753e4d0afe8d8b808dabfda23f"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35358', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + '658feb0cd4d5f9e058a02886feafe5bc', + 'Content-Length', + '1024', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=8DSES7WbRc6AeuzybJg72lbrVVsAAAAAQUIPAAAAAAAIaJkIHFnWGfN9HRGZfdVw; expires=Tue, 23 Jul 2019 08:17:21 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=iFyANTJAJUrdxlVp6lKYhQAAAAADsc5Fju74+feQsAHgaI2/; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=KK4jbRL4engjcvEfejOiBlbrVVsAAAAAk+WOEse3o9IYn1/uMaEZUA==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '10-19799203-19799208 NNNN CT(0 0 0) RT(1532357461874 31) q(0 0 0 -1) r(5 5) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/dog/published') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "dog", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:02.544Z", + "updatedAt": "2018-07-23T14:51:03.557Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "version": 2, + "firstPublishedAt": "2018-07-23T14:51:03.557Z", + "publishedCounter": 1, + "publishedAt": "2018-07-23T14:51:03.557Z", + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 1 + }, + "displayField": null, + "name": "angry dog", + "description": "super angry", + "fields": [ + { + "id": "woofs", + "name": "woof woof", + "type": "Number", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:03 GMT', + 'ETag', + 'W/"c24a26a8d43b29a8832bd43d26791ec8"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35357', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + '24176e0fefb45dbd56637a04cc4e0462', + 'Content-Length', + '443', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=tuo/q2ZMQyeA+VxSPi920lfrVVsAAAAAQUIPAAAAAABd+BPzL7UXi8BoAxwdw0P8; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=S0NcJRyXBXr12ZNV6lKYhQAAAAA/poRAk22mqhhvbwvlNojd; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=i/ObHKUsjDjscvEfejOiBlfrVVsAAAAAugklQNVmbfGMjzUAyxhmXQ==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '2-25589146-25589148 NNNN CT(109 222 0) RT(1532357462541 36) q(0 0 4 -1) r(8 8) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types/dog') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "dog", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:02.544Z", + "updatedAt": "2018-07-23T14:51:03.557Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 1, + "version": 2, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 1, + "firstPublishedAt": "2018-07-23T14:51:03.557Z", + "publishedAt": "2018-07-23T14:51:03.557Z" + }, + "displayField": null, + "name": "angry dog", + "description": "super angry", + "fields": [ + { + "id": "woofs", + "name": "woof woof", + "type": "Number", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:04 GMT', + 'ETag', + 'W/"42280d03c9bcfc25f9752ab0d5fb7ced"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35356', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + '1d3cfcc1f055fea6446a178575bbe593', + 'Content-Length', + '443', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=/7uSSV2VRmyztckaK4RREVfrVVsAAAAAQUIPAAAAAACSvpROsv2zRN/wtLryJ3IK; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=gzFqY3OAGgbsGJg96lKYhQAAAAA11uXTiA9xffCbtqSGfaWp; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=MFwPEAdmjxpDc/EfejOiBlfrVVsAAAAAJF6VjwpDzoQrykQIt/ZBwg==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '0-10399713-10399714 NNNN CT(0 0 0) RT(1532357463486 37) q(0 0 0 -1) r(3 3) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types') + .query({"sys.id":{"in":"dog"}}) + .reply(200, { + "sys": { + "type": "Array" + }, + "total": 1, + "skip": 0, + "limit": 100, + "items": [ + { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "dog", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:02.544Z", + "updatedAt": "2018-07-23T14:51:03.557Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 1, + "version": 2, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 1, + "firstPublishedAt": "2018-07-23T14:51:03.557Z", + "publishedAt": "2018-07-23T14:51:03.557Z" + }, + "displayField": null, + "name": "angry dog", + "description": "super angry", + "fields": [ + { + "id": "woofs", + "name": "woof woof", + "type": "Number", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + } + ] + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:09 GMT', + 'ETag', + 'W/"0a8af09f50fd68b8f8470a02064012c8"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35355', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + '73c15ff66acdf23d5879b0edb9db2ba4', + 'Content-Length', + '510', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=blRGZbtjRTqLXKyU4LzSqF3rVVsAAAAAQUIPAAAAAABqWntycMTURHcIFPE0D1LT; expires=Tue, 23 Jul 2019 08:17:24 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=++eYFYkuzjFAH+RM6lKYhQAAAADItduwlAW16QkavG1zVm6X; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=wWGZKAN5fwQQePEfejOiBl3rVVsAAAAAFEbYFSKBEOgNuvb6AsGgMg==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '1-17694217-17694220 NNNN CT(0 0 0) RT(1532357468930 32) q(0 0 0 -1) r(3 3) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/locales') + .reply(200, { + "total":1, + "limit":100, + "skip":0, + "sys":{ + "type":"Array" + }, + "items":[ + { + "name":"U.S. English", + "internal_code":"en-US", + "code":"en-US", + "fallbackCode":null, + "default":true, + "contentManagementApi":true, + "contentDeliveryApi":true, + "optional":false, + "sys":{ + "type":"Locale", + "id":"0zK7OynpqVdcSetOBfe5P8", + "version":1, + "space":{ + "sys":{ + "type":"Link", + "linkType":"Space", + "id":"bohepdihyxin" + } + }, + "environment":{ + "sys":{ + "type":"Link", + "linkType":"Environment", + "id":"env-integration" + } + }, + "createdBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "createdAt":"2018-07-23T14:51:00Z", + "updatedBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedAt":"2018-07-23T14:51:00Z" + } + } + ] +} + +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'Cache-Control', + 'max-age=0', + 'CF-Organization-Id', + '33lrAejsx0jnNQeRJgZ3EO', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:09 GMT', + 'ETag', + 'W/"7e337906d0a6faa3de1b0ec7edd5b080"', + 'Referrer-Policy', + 'strict-origin-when-cross-origin', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35354', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + '317c5f7ecce587162acd32b77603915f', + 'X-Download-Options', + 'noopen', + 'X-Frame-Options', + 'ALLOWALL', + 'X-Permitted-Cross-Domain-Policies', + 'none', + 'X-XSS-Protection', + '1; mode=block', + 'Content-Length', + '413', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=5YVpEzayRUCqGByvPp66UF3rVVsAAAAAQUIPAAAAAAAzdG2Ig4rj0vwmBwNk9aMV; expires=Tue, 23 Jul 2019 08:17:20 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=my/4ApRztAfhfj926lKYhQAAAAAZgxbloWYa17oHLVIKgDVO; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=Ib8APM0Wk1lYePEfejOiBl3rVVsAAAAAu2W2sI1EbZvEtj7gP6U/dw==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '9-11225216-11225224 NNNN CT(0 0 0) RT(1532357469329 44) q(0 0 0 -1) r(2 2) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/dog', {"name":"angry dog","displayField":null,"fields":[{"id":"woofs","name":"woof woof","type":"Number","localized":false,"required":true,"validations":[],"disabled":false,"omitted":true}],"description":"super angry"}) + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "dog", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:02.544Z", + "updatedAt": "2018-07-23T14:51:11.566Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 1, + "version": 3, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 1, + "firstPublishedAt": "2018-07-23T14:51:03.557Z", + "publishedAt": "2018-07-23T14:51:03.557Z" + }, + "displayField": null, + "name": "angry dog", + "description": "super angry", + "fields": [ + { + "id": "woofs", + "name": "woof woof", + "type": "Number", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": true + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:11 GMT', + 'ETag', + 'W/"f750a095b0f4bf2a589055ea50f5ad19"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35353', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + '0f348a84aaae6cb725410d08865f506f', + 'Content-Length', + '447', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=VxZIAL9oRnSqg8vNgkRSPV/rVVsAAAAAQUIPAAAAAADUsONw8bG0J6Gw8atMo+ld; expires=Tue, 23 Jul 2019 08:17:20 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=rZpCPW0++0/kPGLH6lKYhQAAAADjZiEj6uyVa9Pug+oYhWjR; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=Gd3bMquGZgijefEfejOiBl/rVVsAAAAAjX0hA84a4lZ7h7zQyrXQNA==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '9-11225240-11225245 NNNN CT(0 0 0) RT(1532357469674 34) q(0 0 0 -1) r(15 15) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/dog/published') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "dog", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:02.544Z", + "updatedAt": "2018-07-23T14:51:12.297Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 2, + "version": 4, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 3, + "firstPublishedAt": "2018-07-23T14:51:03.557Z", + "publishedAt": "2018-07-23T14:51:12.297Z" + }, + "displayField": null, + "name": "angry dog", + "description": "super angry", + "fields": [ + { + "id": "woofs", + "name": "woof woof", + "type": "Number", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": true + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:12 GMT', + 'ETag', + 'W/"af0500152b54d6aafae877ad4e3b0fcb"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35352', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + '5cc01a425444c579581755c2bb1ac0e6', + 'Content-Length', + '451', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=ajjgv1mFRsy1EO0GnRU86mDrVVsAAAAAQUIPAAAAAAColXgbk4/RXiMJ/t3E35wF; expires=Tue, 23 Jul 2019 08:17:21 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=e83sZoWemgPRtMxS6lKYhQAAAABltD0LN7Ww548Oi2/8o8Gd; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=y/1TdKPuMQBpevEfejOiBmDrVVsAAAAAMyqvINJixppJ529Caj5acw==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '10-19800214-19800215 NNNN CT(107 221 0) RT(1532357471399 38) q(0 0 3 -1) r(7 7) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/dog', {"name":"angry dog","displayField":null,"fields":[{"id":"woofs","name":"woof woof","type":"Number","localized":false,"required":true,"validations":[],"disabled":false,"omitted":true,"deleted":true}],"description":"super angry"}) + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "dog", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:02.544Z", + "updatedAt": "2018-07-23T14:51:13.228Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 2, + "version": 5, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 3, + "firstPublishedAt": "2018-07-23T14:51:03.557Z", + "publishedAt": "2018-07-23T14:51:12.297Z" + }, + "displayField": null, + "name": "angry dog", + "description": "super angry", + "fields": [] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:13 GMT', + 'ETag', + 'W/"70f496c041125ebbfe692f74fc7af354"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35351', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + 'fe67b1263467bdbf071eede4306e04f6', + 'Content-Length', + '372', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=ttgRmTOdQtu/pb6hAAU29GDrVVsAAAAAQUIPAAAAAAANkrf2EJhOXCKvX6RjXByd; expires=Tue, 23 Jul 2019 08:17:24 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=NVCYemSH4gYvNhW96lKYhQAAAACSsGxHl3T+/4//m0B4Rp1R; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=nIoKeC3LkVP/evEfejOiBmDrVVsAAAAAJSI+h+/8F3SP/JToWBk7JQ==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '1-17694418-17694420 NNNN CT(101 203 0) RT(1532357472330 33) q(0 0 3 -1) r(5 5) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/dog/published') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "dog", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:02.544Z", + "updatedAt": "2018-07-23T14:51:13.813Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 3, + "version": 6, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 5, + "firstPublishedAt": "2018-07-23T14:51:03.557Z", + "publishedAt": "2018-07-23T14:51:13.813Z" + }, + "displayField": null, + "name": "angry dog", + "description": "super angry", + "fields": [] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:13 GMT', + 'ETag', + 'W/"166573cdf7e93b1d364e67ad157cab6b"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35350', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + '6cbebd2177bd1649a41c8dd1420420b2', + 'Content-Length', + '368', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=5XaRDQnaRWyymz1ADTIg/2HrVVsAAAAAQUIPAAAAAAC8lUmZqfu49FN1UTaINAlY; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=8WPHdR6RdSCespTh6lKYhQAAAABpUX/Rb3A9zFHzGucFC5Fv; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=8RjJbqN0YnOze/EfejOiBmHrVVsAAAAAOySLrHTAYJ0yuu1dPJuTAg==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '2-25590054-25590067 NNNN CT(0 0 0) RT(1532357473029 38) q(0 0 0 -1) r(6 6) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types/dog') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "dog", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:02.544Z", + "updatedAt": "2018-07-23T14:51:13.813Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 3, + "version": 6, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 5, + "firstPublishedAt": "2018-07-23T14:51:03.557Z", + "publishedAt": "2018-07-23T14:51:13.813Z" + }, + "displayField": null, + "name": "angry dog", + "description": "super angry", + "fields": [] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:14 GMT', + 'ETag', + 'W/"166573cdf7e93b1d364e67ad157cab6b"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35349', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + '4e00ee28518e65857f440b2f15354f6e', + 'Content-Length', + '368', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=PYbKcTa4TCiBgWyAThd592HrVVsAAAAAQUIPAAAAAACRSsVkMJuerv8kLTfpbLvT; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=0u9PQvoc92NL7W5y6lKYhQAAAACOktZGMh8d+CRFNiDfggBT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=IEVeMlKNyHbke/EfejOiBmHrVVsAAAAAUOSLmKRHhouXI85wSwdTHg==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '4-11437173-11437176 NNNN CT(0 0 0) RT(1532357473672 29) q(0 0 0 -1) r(1 1) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types') + .query({"sys.id":{"in":"dog"}}) + .reply(200, { + "sys": { + "type": "Array" + }, + "total": 1, + "skip": 0, + "limit": 100, + "items": [ + { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "dog", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:02.544Z", + "updatedAt": "2018-07-23T14:51:13.813Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 3, + "version": 6, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 5, + "firstPublishedAt": "2018-07-23T14:51:03.557Z", + "publishedAt": "2018-07-23T14:51:13.813Z" + }, + "displayField": null, + "name": "angry dog", + "description": "super angry", + "fields": [] + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:14 GMT', + 'ETag', + 'W/"da490e42f7733adb80a16b0795948a2a"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35348', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + '7b602c80e2054ef9d5d50e2c055ffd9a', + 'Content-Length', + '433', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=a7LmHk7STqO1XN62xwTYZmLrVVsAAAAAQUIPAAAAAABh1Ru48yQbY6QIQ6sZKzn1; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=3mfcWb4I2yT1BS5J6lKYhQAAAADxNp56YnPrmdiSGXRm/tL2; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=ev/lFryHsHEJfPEfejOiBmLrVVsAAAAAOrLxCkQYu4a3M07a/S9+mA==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '2-25590202-25590207 NNNN CT(0 0 0) RT(1532357473967 32) q(0 0 1 -1) r(2 2) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/locales') + .reply(200, { + "total":1, + "limit":100, + "skip":0, + "sys":{ + "type":"Array" + }, + "items":[ + { + "name":"U.S. English", + "internal_code":"en-US", + "code":"en-US", + "fallbackCode":null, + "default":true, + "contentManagementApi":true, + "contentDeliveryApi":true, + "optional":false, + "sys":{ + "type":"Locale", + "id":"0zK7OynpqVdcSetOBfe5P8", + "version":1, + "space":{ + "sys":{ + "type":"Link", + "linkType":"Space", + "id":"bohepdihyxin" + } + }, + "environment":{ + "sys":{ + "type":"Link", + "linkType":"Environment", + "id":"env-integration" + } + }, + "createdBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "createdAt":"2018-07-23T14:51:00Z", + "updatedBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedAt":"2018-07-23T14:51:00Z" + } + } + ] +} + +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'Cache-Control', + 'max-age=0', + 'CF-Organization-Id', + '33lrAejsx0jnNQeRJgZ3EO', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:14 GMT', + 'ETag', + 'W/"7e337906d0a6faa3de1b0ec7edd5b080"', + 'Referrer-Policy', + 'strict-origin-when-cross-origin', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35347', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '7', + 'X-Contentful-Request-Id', + 'b16149329f8e8c4c123551e1754b35f2', + 'X-Download-Options', + 'noopen', + 'X-Frame-Options', + 'ALLOWALL', + 'X-Permitted-Cross-Domain-Policies', + 'none', + 'X-XSS-Protection', + '1; mode=block', + 'Content-Length', + '413', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=KzQsk13+Spu+4KSKAV/7QmLrVVsAAAAAQUIPAAAAAACtMSY4ugy2nH4wRe/iibD2; expires=Tue, 23 Jul 2019 08:17:21 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=rpEuEaPyilXPx0iY6lKYhQAAAABNpcmCOezNpPcSR1Jk1Au7; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=tKAYCHJ+11NSfPEfejOiBmLrVVsAAAAA857KBOXZPEQlh9gQXw1Wkw==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '10-19800606-19800609 NNNN CT(0 0 0) RT(1532357474219 34) q(0 0 0 -1) r(2 2) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/dog', {"name":"Friendly dog","displayField":null,"fields":[{"id":"goodboys","type":"Number","name":"number of times he has been called a good boy","required":false}],"description":"Who's a good boy? He is!"}) + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "dog", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:02.544Z", + "updatedAt": "2018-07-23T14:51:15.180Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 3, + "version": 7, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 5, + "firstPublishedAt": "2018-07-23T14:51:03.557Z", + "publishedAt": "2018-07-23T14:51:13.813Z" + }, + "displayField": null, + "name": "Friendly dog", + "description": "Who's a good boy? He is!", + "fields": [ + { + "id": "goodboys", + "name": "number of times he has been called a good boy", + "type": "Number", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:15 GMT', + 'ETag', + 'W/"72e2f1c143221e4334da356a698b5f47"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35346', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + 'f945b7870db20ba205d8ded7e4c222c9', + 'Content-Length', + '492', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=LiDPRt2TQUiZBvAixz3/jGLrVVsAAAAAQUIPAAAAAAAmmFplMQN1l/MHFSu96HMi; expires=Tue, 23 Jul 2019 08:17:21 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=oJY2SRLUMiZZFkqW6lKYhQAAAADuMBn9GbJQNEQ6HQmkqpj0; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=LJ9JAcSdYzeqfPEfejOiBmLrVVsAAAAAP0f6c1N7dcDkpPUY5OR11A==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '10-19800655-19800663 NNNN CT(0 0 0) RT(1532357474593 33) q(0 0 0 -1) r(2 2) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/dog/published') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "dog", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:02.544Z", + "updatedAt": "2018-07-23T14:51:15.766Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 4, + "version": 8, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 7, + "firstPublishedAt": "2018-07-23T14:51:03.557Z", + "publishedAt": "2018-07-23T14:51:15.766Z" + }, + "displayField": null, + "name": "Friendly dog", + "description": "Who's a good boy? He is!", + "fields": [ + { + "id": "goodboys", + "name": "number of times he has been called a good boy", + "type": "Number", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:15 GMT', + 'ETag', + 'W/"924c5927b7b1c3b032d2c39c1a3db857"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35345', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + '847dc26248237ef527c65efd0c615c7a', + 'Content-Length', + '489', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=21peELbmT92exFHzxYmn8WPrVVsAAAAAQUIPAAAAAACCQ9sr2U+r599kJQUtiWiN; expires=Tue, 23 Jul 2019 08:17:21 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=5LwpCutmjnQi8z8c6lKYhQAAAABbohfS4DTq6zNw7JWNadXR; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=5P8cP4h9EmwuffEfejOiBmPrVVsAAAAAE+I22mqp4cp1gs69SGji3w==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '10-19800717-19800721 NNNN CT(107 217 0) RT(1532357474903 31) q(0 0 3 -1) r(6 6) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types/dog') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "dog", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:02.544Z", + "updatedAt": "2018-07-23T14:51:15.766Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 4, + "version": 8, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 7, + "firstPublishedAt": "2018-07-23T14:51:03.557Z", + "publishedAt": "2018-07-23T14:51:15.766Z" + }, + "displayField": null, + "name": "Friendly dog", + "description": "Who's a good boy? He is!", + "fields": [ + { + "id": "goodboys", + "name": "number of times he has been called a good boy", + "type": "Number", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:16 GMT', + 'ETag', + 'W/"924c5927b7b1c3b032d2c39c1a3db857"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35344', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + 'c0376047b04c04bd3b56bff70284c3bd', + 'Content-Length', + '489', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=8mHr1gJKThKRRF5pejrByGPrVVsAAAAAQUIPAAAAAAAiIi84PD1R/Nl6rUMLx6uz; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=EiitNJ2mQyALg9oa6lKYhQAAAADiE60gdHH/Xmh5qO5Xg63O; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=1Gn3Rc13YUFqffEfejOiBmPrVVsAAAAAbOmAck8Euf2s21KqBSXjKA==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '4-11437247-11437248 NNNN CT(0 0 0) RT(1532357475642 31) q(0 0 0 -1) r(2 2) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types') + .query({"sys.id":{"in":"dog"}}) + .reply(200, { + "sys": { + "type": "Array" + }, + "total": 1, + "skip": 0, + "limit": 100, + "items": [ + { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "dog", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:02.544Z", + "updatedAt": "2018-07-23T14:51:15.766Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 4, + "version": 8, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 7, + "firstPublishedAt": "2018-07-23T14:51:03.557Z", + "publishedAt": "2018-07-23T14:51:15.766Z" + }, + "displayField": null, + "name": "Friendly dog", + "description": "Who's a good boy? He is!", + "fields": [ + { + "id": "goodboys", + "name": "number of times he has been called a good boy", + "type": "Number", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + } + ] + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:16 GMT', + 'ETag', + 'W/"26fb32107bdbe0800253d85e7786c558"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35343', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + '819d38518fde61f39b29c69a247745d3', + 'Content-Length', + '554', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=30HulJe5Qg2v02XL3vhq8WTrVVsAAAAAQUIPAAAAAADdAObdDoZAv2WyBDCjqGE/; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=ALyJGYvwlQG3tTPj6lKYhQAAAACfhFKhq6eRan5hQs4KU2+8; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=yQFjGr63v02offEfejOiBmTrVVsAAAAAQcnBsTi6BEiHphxZXfrHUQ==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '2-25590355-25590363 NNNN CT(0 0 0) RT(1532357475876 33) q(0 0 0 -1) r(2 2) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/locales') + .reply(200, { + "total":1, + "limit":100, + "skip":0, + "sys":{ + "type":"Array" + }, + "items":[ + { + "name":"U.S. English", + "internal_code":"en-US", + "code":"en-US", + "fallbackCode":null, + "default":true, + "contentManagementApi":true, + "contentDeliveryApi":true, + "optional":false, + "sys":{ + "type":"Locale", + "id":"0zK7OynpqVdcSetOBfe5P8", + "version":1, + "space":{ + "sys":{ + "type":"Link", + "linkType":"Space", + "id":"bohepdihyxin" + } + }, + "environment":{ + "sys":{ + "type":"Link", + "linkType":"Environment", + "id":"env-integration" + } + }, + "createdBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "createdAt":"2018-07-23T14:51:00Z", + "updatedBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedAt":"2018-07-23T14:51:00Z" + } + } + ] +} + +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'Cache-Control', + 'max-age=0', + 'CF-Organization-Id', + '33lrAejsx0jnNQeRJgZ3EO', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:16 GMT', + 'ETag', + 'W/"7e337906d0a6faa3de1b0ec7edd5b080"', + 'Referrer-Policy', + 'strict-origin-when-cross-origin', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35342', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '7', + 'X-Contentful-Request-Id', + '12a4c85654e05a2eb49d9abdbe5e4440', + 'X-Download-Options', + 'noopen', + 'X-Frame-Options', + 'ALLOWALL', + 'X-Permitted-Cross-Domain-Policies', + 'none', + 'X-XSS-Protection', + '1; mode=block', + 'Content-Length', + '413', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=a9gfhC9GRsqvYkKAcFyX5GTrVVsAAAAAQUIPAAAAAAALz4zJxQpsl7EmGjHIuUHb; expires=Tue, 23 Jul 2019 08:17:20 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=ZLjoNWXN5RwYOnar6lKYhQAAAAAVoNDX2RlbkZ8FVjhZY1Yq; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=HNEmZPvVlj8QfvEfejOiBmTrVVsAAAAAiSqQeEO8QB/QZsI0ETIs9A==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '3-6799449-6799450 NNNN CT(0 0 0) RT(1532357476264 32) q(0 0 0 -1) r(2 2) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/dog', {"name":"Friendly dog","displayField":null,"fields":[{"id":"goodboys","name":"number of times he has been called a good boy","type":"Number","localized":false,"required":false,"validations":[],"disabled":false,"omitted":false,"newId":"aDifferentId"}],"description":"Who's a good boy? He is!"}) + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "dog", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:02.544Z", + "updatedAt": "2018-07-23T14:51:17.430Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 4, + "version": 9, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 7, + "firstPublishedAt": "2018-07-23T14:51:03.557Z", + "publishedAt": "2018-07-23T14:51:15.766Z" + }, + "displayField": null, + "name": "Friendly dog", + "description": "Who's a good boy? He is!", + "fields": [ + { + "id": "aDifferentId", + "name": "number of times he has been called a good boy", + "type": "Number", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:17 GMT', + 'ETag', + 'W/"0a06216b98277238777616efe667f394"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35341', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + '01ef351f19a77017655a92f10e237256', + 'Content-Length', + '499', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=i0+WVsuSTnqYISCp7jzmiWXrVVsAAAAAQUIPAAAAAACmMr92e9mxesZFRSvLrjjo; expires=Tue, 23 Jul 2019 08:17:21 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=xEVaWHO82HV4ZMMk6lKYhQAAAABhfgh8sBZetvYIwYKIFOT7; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=iv+OaAv73EqmfvEfejOiBmXrVVsAAAAAECubqxc2IKy5KxyHBUAXpA==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '10-19800922-19800930 NNNN CT(109 222 0) RT(1532357476537 48) q(0 0 4 -1) r(6 6) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/dog/published') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "dog", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:02.544Z", + "updatedAt": "2018-07-23T14:51:18.096Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 5, + "version": 10, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 9, + "firstPublishedAt": "2018-07-23T14:51:03.557Z", + "publishedAt": "2018-07-23T14:51:18.096Z" + }, + "displayField": null, + "name": "Friendly dog", + "description": "Who's a good boy? He is!", + "fields": [ + { + "id": "aDifferentId", + "name": "number of times he has been called a good boy", + "type": "Number", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:18 GMT', + 'ETag', + 'W/"6a5658eab2796b364d5e9af465739790"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35340', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + 'd32c8fd504d6b6bb1eb5dcefe0473c86', + 'Content-Length', + '495', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=5XlOZnHeRFm8Sj+koecFlmXrVVsAAAAAQUIPAAAAAABzQ1bLEjoQrvkMdbqrv6Wr; expires=Tue, 23 Jul 2019 08:17:20 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=unD8DG0pdCrxJVWW6lKYhQAAAADE2/18zK9iklg6Wo6LVDYz; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=BYWMToijPjdRf/EfejOiBmXrVVsAAAAAnHlJHMb+28fK66XQ5fLFrg==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '3-6799466-6799468 NNNN CT(104 209 0) RT(1532357477247 31) q(0 0 3 -1) r(6 6) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/dog', {"name":"Friendly dog","displayField":null,"fields":[{"id":"aDifferentId","name":"ID switching is fun!","type":"Number","localized":false,"required":false,"validations":[],"disabled":false,"omitted":false}],"description":"Who's a good boy? He is!"}) + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "dog", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:02.544Z", + "updatedAt": "2018-07-23T14:51:18.554Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 5, + "version": 11, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 9, + "firstPublishedAt": "2018-07-23T14:51:03.557Z", + "publishedAt": "2018-07-23T14:51:18.096Z" + }, + "displayField": null, + "name": "Friendly dog", + "description": "Who's a good boy? He is!", + "fields": [ + { + "id": "aDifferentId", + "name": "ID switching is fun!", + "type": "Number", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:18 GMT', + 'ETag', + 'W/"16dc8fe7b236862257ae7d3873eb79ea"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35339', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + '69d9e5ee70920227e81f0ed8c345639e', + 'Content-Length', + '489', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=kYzktuIVS2iyTP66zQya+GbrVVsAAAAAQUIPAAAAAADfEoPMdV+LzR3ahTU76AJB; expires=Tue, 23 Jul 2019 08:17:20 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=OXTKc5/WkwdMhJRx6lKYhQAAAADEjeKTRJoI2h4WJ4eK9+1d; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=3YEIW9G2HB6Ff/EfejOiBmbrVVsAAAAAd9uDnV/Q0vZugaXjS+3eFg==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '7-3856294-3856296 NNNN CT(0 0 0) RT(1532357478007 31) q(0 0 0 -1) r(2 2) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/dog/published') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "dog", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:02.544Z", + "updatedAt": "2018-07-23T14:51:18.830Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 6, + "version": 12, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 11, + "firstPublishedAt": "2018-07-23T14:51:03.557Z", + "publishedAt": "2018-07-23T14:51:18.830Z" + }, + "displayField": null, + "name": "Friendly dog", + "description": "Who's a good boy? He is!", + "fields": [ + { + "id": "aDifferentId", + "name": "ID switching is fun!", + "type": "Number", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:18 GMT', + 'ETag', + 'W/"7692b0c4c34b37cb335451e696c5a2b0"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35338', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '7', + 'X-Contentful-Request-Id', + '5069b093b01d89cb40f2faf678c3dae0', + 'Content-Length', + '488', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=cRCLCRmIR/q2j8Gzm8UIYWbrVVsAAAAAQUIPAAAAAABf7g5nJk5Dsd/mOvAIhi5o; expires=Tue, 23 Jul 2019 08:17:33 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=G3QvLds9YFICG2kv6lKYhQAAAAB5dq9VtqGrstw9IAf8fU6D; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=G7/sArqcUEDRf/EfejOiBmbrVVsAAAAA9VBtLIzWBCMku41O5sufJA==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '8-6491867-6491869 NNNN CT(0 0 0) RT(1532357478290 34) q(0 0 0 -1) r(2 2) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types/dog') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "dog", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:02.544Z", + "updatedAt": "2018-07-23T14:51:18.830Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 6, + "version": 12, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 11, + "firstPublishedAt": "2018-07-23T14:51:03.557Z", + "publishedAt": "2018-07-23T14:51:18.830Z" + }, + "displayField": null, + "name": "Friendly dog", + "description": "Who's a good boy? He is!", + "fields": [ + { + "id": "aDifferentId", + "name": "ID switching is fun!", + "type": "Number", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:19 GMT', + 'ETag', + 'W/"7692b0c4c34b37cb335451e696c5a2b0"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35337', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + 'b6fe081e42d271692a2c84260b1998e5', + 'Content-Length', + '488', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=ixOUY8Y0SmiZmXG/8wxrXmbrVVsAAAAAQUIPAAAAAAD9YT62SO887LQYiGcshEsQ; expires=Tue, 23 Jul 2019 08:17:21 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=3I2fXUZ+90Wi1E9a6lKYhQAAAAAnEx1sc7Wu+AtldY7QM5aM; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=yAReNqyLFUIFgPEfejOiBmbrVVsAAAAAlyiR8U4MHO+7CW5B0pBa7A==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '10-19801188-19801196 NNNN CT(0 0 0) RT(1532357478663 38) q(0 0 0 -1) r(1 1) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types') + .query({"sys.id":{"in":"dog"}}) + .reply(200, { + "sys": { + "type": "Array" + }, + "total": 1, + "skip": 0, + "limit": 100, + "items": [ + { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "dog", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:02.544Z", + "updatedAt": "2018-07-23T14:51:18.830Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 6, + "version": 12, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 11, + "firstPublishedAt": "2018-07-23T14:51:03.557Z", + "publishedAt": "2018-07-23T14:51:18.830Z" + }, + "displayField": null, + "name": "Friendly dog", + "description": "Who's a good boy? He is!", + "fields": [ + { + "id": "aDifferentId", + "name": "ID switching is fun!", + "type": "Number", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + } + ] + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:19 GMT', + 'ETag', + 'W/"d8fed88d4b3ab2a929f7ed9903b1db50"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35336', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + 'c8c5e713eac6b239cc1830324391c936', + 'Content-Length', + '552', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=p1/y9Qe3RquyC/epRwTD4mfrVVsAAAAAQUIPAAAAAABNvP92EDR73icpn1aBqbU0; expires=Tue, 23 Jul 2019 08:17:24 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=9epFT+XKOTC4sNLQ6lKYhQAAAACqUDMObbG5KTq4UeO91bFL; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=kyQ0QBAE2ihBgPEfejOiBmfrVVsAAAAAbX7IqgDJjLTydK8R5waVMw==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '1-17694913-17694919 NNNN CT(0 0 0) RT(1532357478919 37) q(0 0 0 -1) r(2 2) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/entries') + .query({"sys.contentType.sys.id":"dog"}) + .reply(200, { + "sys": { + "type": "Array" + }, + "total": 0, + "skip": 0, + "limit": 100, + "items": [] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:19 GMT', + 'ETag', + '"29f2c21be26360c424f617d8592cf6f9"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35335', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '7', + 'X-Contentful-Request-Id', + 'f909312a96570639bf5ed5608bac7c47', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=xvBTdS8YTimB8pcjrowAcmfrVVsAAAAAQUIPAAAAAAA2JHN8wzZK+v4i+SKYqFpQ; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=gaueEx5B/ioBnhy66lKYhQAAAAC9WKLx+nMzvyN0XqDDbQVH; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=sZEwVe1fSzh+gPEfejOiBmfrVVsAAAAA90lV9/qfFDdI1RrGjX+9lQ==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '5-18170284-18170286 NNNN CT(0 0 0) RT(1532357479205 67) q(0 0 0 -1) r(2 2) U5', + 'X-CDN', + 'Incapsula', + + + 'Transfer-Encoding', + 'chunked' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/locales') + .reply(200, { + "total":1, + "limit":100, + "skip":0, + "sys":{ + "type":"Array" + }, + "items":[ + { + "name":"U.S. English", + "internal_code":"en-US", + "code":"en-US", + "fallbackCode":null, + "default":true, + "contentManagementApi":true, + "contentDeliveryApi":true, + "optional":false, + "sys":{ + "type":"Locale", + "id":"0zK7OynpqVdcSetOBfe5P8", + "version":1, + "space":{ + "sys":{ + "type":"Link", + "linkType":"Space", + "id":"bohepdihyxin" + } + }, + "environment":{ + "sys":{ + "type":"Link", + "linkType":"Environment", + "id":"env-integration" + } + }, + "createdBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "createdAt":"2018-07-23T14:51:00Z", + "updatedBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedAt":"2018-07-23T14:51:00Z" + } + } + ] +} + +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'Cache-Control', + 'max-age=0', + 'CF-Organization-Id', + '33lrAejsx0jnNQeRJgZ3EO', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:20 GMT', + 'ETag', + 'W/"7e337906d0a6faa3de1b0ec7edd5b080"', + 'Referrer-Policy', + 'strict-origin-when-cross-origin', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35334', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + '6677513a8bcdb5356e3487454a7569af', + 'X-Download-Options', + 'noopen', + 'X-Frame-Options', + 'ALLOWALL', + 'X-Permitted-Cross-Domain-Policies', + 'none', + 'X-XSS-Protection', + '1; mode=block', + 'Content-Length', + '413', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=fZ7qlOvTRIuO9bXMIczu9WfrVVsAAAAAQUIPAAAAAABKQmyy9UwuJqUPgjPzT/Hp; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=0GfeZ4FXjlfZkMMd6lKYhQAAAABI+Dr7WJuH+zCde7eVQgqU; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=2x9idh3jIkeogPEfejOiBmfrVVsAAAAAHAZcsplDQhUISwit/cTeDA==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '4-11437335-11437337 NNNN CT(0 0 0) RT(1532357479506 38) q(0 0 0 -1) r(1 1) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .delete('/spaces/bohepdihyxin/environments/env-integration/content_types/dog/published') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "dog", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:02.544Z", + "updatedAt": "2018-07-23T14:51:20.613Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 6, + "version": 13, + "firstPublishedAt": "2018-07-23T14:51:03.557Z" + }, + "displayField": null, + "name": "Friendly dog", + "description": "Who's a good boy? He is!", + "fields": [ + { + "id": "aDifferentId", + "name": "ID switching is fun!", + "type": "Number", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:20 GMT', + 'ETag', + 'W/"184e5f9b491d02f743a214c38955404a"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35333', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + 'a634d2c48a25c16125807f3ceb8cf550', + 'Content-Length', + '465', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=qTkWECocS3auGXQILpNP3WjrVVsAAAAAQUIPAAAAAAAvmXV24u5lSXrs5N6Kxbte; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=hrg8PdUzS22y1H9T6lKYhQAAAAAkNyv2q6k3om++W+/60oV+; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=bP/ZLTc2uF9dgfEfejOiBmjrVVsAAAAAYc7FixA4j+4NHsXbzMwevw==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '2-25590804-25590810 NNNN CT(110 222 0) RT(1532357479731 45) q(0 0 4 -1) r(7 7) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .delete('/spaces/bohepdihyxin/environments/env-integration/content_types/dog') + .reply(204, "", [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:21 GMT', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35332', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + '367ef743a51d397cbbf13179633b19b1', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=V871QaISQZSyYjg0qPc9NGjrVVsAAAAAQUIPAAAAAAAhfoV4WA/lgGM/sbyPr9Xm; expires=Tue, 23 Jul 2019 08:17:24 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=4I4fG6kbbSMpm1hU6lKYhQAAAACBsiUTGld51vsHi5xSyYRL; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=Oj+nYlLjM1y2gfEfejOiBmjrVVsAAAAA3UwcyL7Ms+fMK2xK1VY5bQ==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '1-17695008-17695012 NNNN CT(0 0 0) RT(1532357480504 31) q(0 0 0 -1) r(3 3) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types/dog') + .reply(404, { + "sys": { + "type": "Error", + "id": "NotFound" + }, + "message": "The resource could not be found.", + "details": { + "id": "dog", + "type": "ContentType", + "space": "bohepdihyxin", + "environment": "env-integration" + }, + "requestId": "0bf57f94b07daacb22135e2499ee4ae0" +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:21 GMT', + 'ETag', + '"d8d3b5cc0693d4f15d31ff8532596ea3"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35331', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + '0bf57f94b07daacb22135e2499ee4ae0', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=FMOcnCHRSdKHj6xMUEN5ymnrVVsAAAAAQUIPAAAAAABPBECGzNP7j75HjyVUGve7; expires=Tue, 23 Jul 2019 08:17:21 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=midgTZqB9nZOPBty6lKYhQAAAAAbHsvRXofhw3b3z64OsoPQ; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=GxkKXDiXiCj+gfEfejOiBmnrVVsAAAAAwZHiSsvTyP4f8ePMIFDu6Q==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '10-19801517-19801520 NNNN CT(0 0 0) RT(1532357481025 33) q(0 0 0 -1) r(2 2) U5', + 'X-CDN', + 'Incapsula', + + + 'Transfer-Encoding', + 'chunked' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types') + .query({"sys.id":{"in":"dieatary-food"}}) + .reply(200, { + "sys": { + "type": "Array" + }, + "total": 0, + "skip": 0, + "limit": 100, + "items": [] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:21 GMT', + 'ETag', + '"29f2c21be26360c424f617d8592cf6f9"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35330', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '7', + 'X-Contentful-Request-Id', + 'd6aadc103828eb767de2e5cde9a4e44f', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=mHNQwH5MRoqkaP2qlgCDFGnrVVsAAAAAQUIPAAAAAAA3AFqaelDmvskh13eQPi1H; expires=Tue, 23 Jul 2019 08:17:24 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=ckcyaFM7WUiWHGN36lKYhQAAAAAAl8RuETKYOSZ+935diASA; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=CUzMeVIDzTY8gvEfejOiBmnrVVsAAAAANl0BSt9+Y30RFIdDKZ0T1A==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '1-17695052-17695054 NNNN CT(0 0 0) RT(1532357481331 38) q(0 0 0 -1) r(2 2) U5', + 'X-CDN', + 'Incapsula', + + + 'Transfer-Encoding', + 'chunked' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/locales') + .reply(200, { + "total":1, + "limit":100, + "skip":0, + "sys":{ + "type":"Array" + }, + "items":[ + { + "name":"U.S. English", + "internal_code":"en-US", + "code":"en-US", + "fallbackCode":null, + "default":true, + "contentManagementApi":true, + "contentDeliveryApi":true, + "optional":false, + "sys":{ + "type":"Locale", + "id":"0zK7OynpqVdcSetOBfe5P8", + "version":1, + "space":{ + "sys":{ + "type":"Link", + "linkType":"Space", + "id":"bohepdihyxin" + } + }, + "environment":{ + "sys":{ + "type":"Link", + "linkType":"Environment", + "id":"env-integration" + } + }, + "createdBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "createdAt":"2018-07-23T14:51:00Z", + "updatedBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedAt":"2018-07-23T14:51:00Z" + } + } + ] +} + +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'Cache-Control', + 'max-age=0', + 'CF-Organization-Id', + '33lrAejsx0jnNQeRJgZ3EO', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:22 GMT', + 'ETag', + 'W/"7e337906d0a6faa3de1b0ec7edd5b080"', + 'Referrer-Policy', + 'strict-origin-when-cross-origin', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35329', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + '8c21df8f76b34ea41d2d217b1aefbabd', + 'X-Download-Options', + 'noopen', + 'X-Frame-Options', + 'ALLOWALL', + 'X-Permitted-Cross-Domain-Policies', + 'none', + 'X-XSS-Protection', + '1; mode=block', + 'Content-Length', + '413', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=nlCAcoJSQ/ebZ7U9pIoMImnrVVsAAAAAQUIPAAAAAACrAVutAjhJnsxYjnYopcU6; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=O2Mobg9wv1qVIU6l6lKYhQAAAACyyiAD1XX1byjH592EnJ0Y; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=KOl9Dowc+ySNgvEfejOiBmnrVVsAAAAAX8WNeuvV7EOZfGOEFNN9ow==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '4-11437435-11437440 NNNN CT(0 0 0) RT(1532357481632 34) q(0 0 0 -1) r(2 2) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/dieatary-food', {"name":"Dieatary Food","fields":[{"id":"name","type":"Symbol","name":"name of the food","validations":[{"unique":true}]},{"id":"calories","type":"Number","name":"amount of calories the food contains","validations":[{"range":{"max":500}}]}],"description":"Food with up to 500 calories"}) + .reply(201, {"sys":{"space":{"sys":{"type":"Link","linkType":"Space","id":"bohepdihyxin"}},"id":"dieatary-food","type":"ContentType","createdAt":"2018-07-23T14:51:22.802Z","updatedAt":"2018-07-23T14:51:22.802Z","environment":{"sys":{"id":"env-integration","type":"Link","linkType":"Environment"}},"createdBy":{"sys":{"type":"Link","linkType":"User","id":"33kZDXNajFNmbngiu5MvUa"}},"updatedBy":{"sys":{"type":"Link","linkType":"User","id":"33kZDXNajFNmbngiu5MvUa"}},"version":1},"displayField":null,"name":"Dieatary Food","description":"Food with up to 500 calories","fields":[{"id":"name","name":"name of the food","type":"Symbol","localized":false,"required":false,"validations":[{"unique":true}],"disabled":false,"omitted":false},{"id":"calories","name":"amount of calories the food contains","type":"Number","localized":false,"required":false,"validations":[{"range":{"max":500}}],"disabled":false,"omitted":false}]}, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:23 GMT', + 'ETag', + '"eb150bae30a68d99adfa2ebb97869187"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35328', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + 'a44dd4f810f619a74b18a7eb516e4247', + 'Content-Length', + '1436', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=MwzOwrWGSW2mssokzoOd8WrrVVsAAAAAQUIPAAAAAAD7OC7t+QtDLi/Y5uAdi016; expires=Tue, 23 Jul 2019 08:17:33 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=bclhADnPQkh7tu6w6lKYhQAAAACfhSSqgrxSVc2/BPW4hCxO; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=yGY0Yt2USiZsg/EfejOiBmrrVVsAAAAA9zq/tL6v7FopVOfZC8EOqA==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '8-6492106-6492107 NNNN CT(110 220 0) RT(1532357481925 36) q(0 0 3 -1) r(8 8) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/dieatary-food/published') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "dieatary-food", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:22.802Z", + "updatedAt": "2018-07-23T14:51:23.351Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "version": 2, + "firstPublishedAt": "2018-07-23T14:51:23.351Z", + "publishedCounter": 1, + "publishedAt": "2018-07-23T14:51:23.351Z", + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 1 + }, + "displayField": null, + "name": "Dieatary Food", + "description": "Food with up to 500 calories", + "fields": [ + { + "id": "name", + "name": "name of the food", + "type": "Symbol", + "localized": false, + "required": false, + "validations": [ + { + "unique": true + } + ], + "disabled": false, + "omitted": false + }, + { + "id": "calories", + "name": "amount of calories the food contains", + "type": "Number", + "localized": false, + "required": false, + "validations": [ + { + "range": { + "max": 500 + } + } + ], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:23 GMT', + 'ETag', + 'W/"80bb38728c6029bad19b5d113e7e2668"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35327', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + '749b2fb384ddada0b35d529477448085', + 'Content-Length', + '546', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=UtIgZUHRTymVyahjbIXO72vrVVsAAAAAQUIPAAAAAADV23xKUPYRkmVfOljL48nW; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=/WsQUC+H8VaX8dYj6lKYhQAAAAAdD36WmBJUq3YBFlOK22Iv; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=eidkUgYiEkPxg/EfejOiBmvrVVsAAAAAHF5LIgheQzlZn2OIU4bcOA==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '0-10400241-10400242 NNNN CT(0 0 0) RT(1532357482811 31) q(0 0 0 -1) r(5 5) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types/dieatary-food') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "dieatary-food", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:22.802Z", + "updatedAt": "2018-07-23T14:51:23.351Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 1, + "version": 2, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 1, + "firstPublishedAt": "2018-07-23T14:51:23.351Z", + "publishedAt": "2018-07-23T14:51:23.351Z" + }, + "displayField": null, + "name": "Dieatary Food", + "description": "Food with up to 500 calories", + "fields": [ + { + "id": "name", + "name": "name of the food", + "type": "Symbol", + "localized": false, + "required": false, + "validations": [ + { + "unique": true + } + ], + "disabled": false, + "omitted": false + }, + { + "id": "calories", + "name": "amount of calories the food contains", + "type": "Number", + "localized": false, + "required": false, + "validations": [ + { + "range": { + "max": 500 + } + } + ], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:23 GMT', + 'ETag', + 'W/"ade49b675830f2374ecac336ca71c72e"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35326', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + 'd93d22e372b4cabf86a891f5a8887ccd', + 'Content-Length', + '546', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=GjO0d5okQ4iY6n4Spkaqx2vrVVsAAAAAQUIPAAAAAAAZVeZpLTgkHjekm/SQSTix; expires=Tue, 23 Jul 2019 08:17:33 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=8WgwZvZTOGh+EZVM6lKYhQAAAADaOuAmqjuW+zmvWjACg5Aj; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=Rj3fAwLsFzk+hPEfejOiBmvrVVsAAAAA9O+z7IRBjVcapdVtQR4l9g==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '8-6492198-6492199 NNNN CT(0 0 0) RT(1532357483418 33) q(0 0 0 -1) r(1 1) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types') + .query({"sys.id":{"in":"food"}}) + .reply(200, { + "sys": { + "type": "Array" + }, + "total": 0, + "skip": 0, + "limit": 100, + "items": [] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:24 GMT', + 'ETag', + '"29f2c21be26360c424f617d8592cf6f9"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35325', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + 'db3c3542ac537fe45aae42db1fad6028', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=+LhN2damRAehaza5FqShu2vrVVsAAAAAQUIPAAAAAADCytDklJIPn5mVNuYo0rXB; expires=Tue, 23 Jul 2019 08:17:24 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=b7niKpxTFQ1MbD006lKYhQAAAABOZZJE1lMnoReF5DkfHLPQ; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=PKi5CUnrbFFjhPEfejOiBmvrVVsAAAAAKdIig2On0fKW+2VzZVEaEw==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '1-17695325-17695328 NNNN CT(0 0 0) RT(1532357483654 31) q(0 0 0 -1) r(2 2) U5', + 'X-CDN', + 'Incapsula', + + + 'Transfer-Encoding', + 'chunked' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/locales') + .reply(200, { + "total":1, + "limit":100, + "skip":0, + "sys":{ + "type":"Array" + }, + "items":[ + { + "name":"U.S. English", + "internal_code":"en-US", + "code":"en-US", + "fallbackCode":null, + "default":true, + "contentManagementApi":true, + "contentDeliveryApi":true, + "optional":false, + "sys":{ + "type":"Locale", + "id":"0zK7OynpqVdcSetOBfe5P8", + "version":1, + "space":{ + "sys":{ + "type":"Link", + "linkType":"Space", + "id":"bohepdihyxin" + } + }, + "environment":{ + "sys":{ + "type":"Link", + "linkType":"Environment", + "id":"env-integration" + } + }, + "createdBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "createdAt":"2018-07-23T14:51:00Z", + "updatedBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedAt":"2018-07-23T14:51:00Z" + } + } + ] +} + +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'Cache-Control', + 'max-age=0', + 'CF-Organization-Id', + '33lrAejsx0jnNQeRJgZ3EO', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:24 GMT', + 'ETag', + 'W/"7e337906d0a6faa3de1b0ec7edd5b080"', + 'Referrer-Policy', + 'strict-origin-when-cross-origin', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35324', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + '8a249f6f0d2d6248ddab7fc38dfdf9c6', + 'X-Download-Options', + 'noopen', + 'X-Frame-Options', + 'ALLOWALL', + 'X-Permitted-Cross-Domain-Policies', + 'none', + 'X-XSS-Protection', + '1; mode=block', + 'Content-Length', + '413', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=cc5E86DYS/qf6vbS+WQg72zrVVsAAAAAQUIPAAAAAABOWU7Cc89wIzxW8/YtQGK1; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=LyRwRdI2WTyUCmfg6lKYhQAAAACEM3/+/wB4GVIerePf9T2F; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=NbgoBwsmbxqIhPEfejOiBmzrVVsAAAAANIhzYtyEumJi9ThCQbqgaQ==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '4-11437532-11437536 NNNN CT(0 0 0) RT(1532357483902 32) q(0 0 0 -1) r(1 1) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/food', {"name":"foooood","displayField":"taste","fields":[{"id":"taste","type":"Symbol","name":"what it tastes like"}],"description":" well, food"}) + .reply(201, {"sys":{"space":{"sys":{"type":"Link","linkType":"Space","id":"bohepdihyxin"}},"id":"food","type":"ContentType","createdAt":"2018-07-23T14:51:24.667Z","updatedAt":"2018-07-23T14:51:24.667Z","environment":{"sys":{"id":"env-integration","type":"Link","linkType":"Environment"}},"createdBy":{"sys":{"type":"Link","linkType":"User","id":"33kZDXNajFNmbngiu5MvUa"}},"updatedBy":{"sys":{"type":"Link","linkType":"User","id":"33kZDXNajFNmbngiu5MvUa"}},"version":1},"displayField":"taste","name":"foooood","description":" well, food","fields":[{"id":"taste","name":"what it tastes like","type":"Symbol","localized":false,"required":false,"validations":[],"disabled":false,"omitted":false}]}, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:24 GMT', + 'ETag', + '"d2ab83fd0530c7cb063c4a0c6377f5c0"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35323', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '7', + 'X-Contentful-Request-Id', + '508a8de7abddafa127dc56c87a29e7ae', + 'Content-Length', + '1037', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=A4VLmlJXRzWWXjTD5lIoymzrVVsAAAAAQUIPAAAAAADHjyrpE7UbM0WhsjMoj4V9; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=OfVTVs/DCRApQHzP6lKYhQAAAADKphyY/7l7F2sKVNrcNqDL; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=wtuaWaMUGFLQhPEfejOiBmzrVVsAAAAALAhhnTQWlZ9HdXFg0SgQKQ==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '5-18170515-18170516 NNNN CT(0 0 0) RT(1532357484117 29) q(0 0 0 -1) r(4 4) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/food/published') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "food", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:24.667Z", + "updatedAt": "2018-07-23T14:51:25.177Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "version": 2, + "firstPublishedAt": "2018-07-23T14:51:25.177Z", + "publishedCounter": 1, + "publishedAt": "2018-07-23T14:51:25.177Z", + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 1 + }, + "displayField": "taste", + "name": "foooood", + "description": " well, food", + "fields": [ + { + "id": "taste", + "name": "what it tastes like", + "type": "Symbol", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:25 GMT', + 'ETag', + 'W/"da7e6f295763cfa0ab5208aa0542ed50"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35322', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + '7d223523551eb0f0f64b9031bdfef6f0', + 'Content-Length', + '448', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=AnRA96J4RFKFuWBsWYm+7W3rVVsAAAAAQUIPAAAAAABf9U7iHSpF5CzoYlEp1aAQ; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=axfdGst/OgQQ8Vf26lKYhQAAAAAqEMT/igO2Sm4uy1QtluzW; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=IF50Nj4lOhxBhfEfejOiBm3rVVsAAAAAayeskqVsogN3zxlgVK7BPA==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '2-25591225-25591233 NNNN CT(0 0 0) RT(1532357484583 33) q(0 0 0 -1) r(4 4) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types') + .query({"sys.id":{"in":"food"}}) + .reply(200, { + "sys": { + "type": "Array" + }, + "total": 1, + "skip": 0, + "limit": 100, + "items": [ + { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "food", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:24.667Z", + "updatedAt": "2018-07-23T14:51:25.177Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 1, + "version": 2, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 1, + "firstPublishedAt": "2018-07-23T14:51:25.177Z", + "publishedAt": "2018-07-23T14:51:25.177Z" + }, + "displayField": "taste", + "name": "foooood", + "description": " well, food", + "fields": [ + { + "id": "taste", + "name": "what it tastes like", + "type": "Symbol", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + } + ] + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:25 GMT', + 'ETag', + 'W/"419f23f68a2bdbc0478d6a4e12658dca"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35321', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + '8ec4e9d2ac2545bd01e22185db874f2f', + 'Content-Length', + '513', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=/cwygQSwQiSfNNrQce8V9G3rVVsAAAAAQUIPAAAAAAA35hiWl9SWiK0y6dvSF4Sh; expires=Tue, 23 Jul 2019 08:17:20 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=5PDlFEV2oWUkMlrY6lKYhQAAAAAQPh+9vqqQMBPQozjkMPi8; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=yyQ6XgMXfE61hfEfejOiBm3rVVsAAAAAgp6SaTLSJugFSLQ9EjD90Q==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '3-6799629-6799631 NNNN CT(101 100 0) RT(1532357485086 33) q(0 0 2 -1) r(4 4) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/locales') + .reply(200, { + "total":1, + "limit":100, + "skip":0, + "sys":{ + "type":"Array" + }, + "items":[ + { + "name":"U.S. English", + "internal_code":"en-US", + "code":"en-US", + "fallbackCode":null, + "default":true, + "contentManagementApi":true, + "contentDeliveryApi":true, + "optional":false, + "sys":{ + "type":"Locale", + "id":"0zK7OynpqVdcSetOBfe5P8", + "version":1, + "space":{ + "sys":{ + "type":"Link", + "linkType":"Space", + "id":"bohepdihyxin" + } + }, + "environment":{ + "sys":{ + "type":"Link", + "linkType":"Environment", + "id":"env-integration" + } + }, + "createdBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "createdAt":"2018-07-23T14:51:00Z", + "updatedBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedAt":"2018-07-23T14:51:00Z" + } + } + ] +} + +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'Cache-Control', + 'max-age=0', + 'CF-Organization-Id', + '33lrAejsx0jnNQeRJgZ3EO', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:26 GMT', + 'ETag', + 'W/"7e337906d0a6faa3de1b0ec7edd5b080"', + 'Referrer-Policy', + 'strict-origin-when-cross-origin', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35320', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + 'cd02152dde7031f425130b3cd881281b', + 'X-Download-Options', + 'noopen', + 'X-Frame-Options', + 'ALLOWALL', + 'X-Permitted-Cross-Domain-Policies', + 'none', + 'X-XSS-Protection', + '1; mode=block', + 'Content-Length', + '413', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=fAzKtC5ASneL+GQz5+WFPW3rVVsAAAAAQUIPAAAAAACDAYksKbkZJryn/TSM5w0S; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=Z1j+HNq6FS1n4a5C6lKYhQAAAADFDpWG51GpKNXDv2gsUk3F; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=MBRqchQXqi/khfEfejOiBm3rVVsAAAAAynceYxaMETqoa1WdKrcTow==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '2-25591347-25591351 NNNN CT(0 0 0) RT(1532357485668 33) q(0 0 0 -1) r(1 1) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/food', {"name":"foooood","displayField":"taste","fields":[{"id":"calories","type":"Number","name":"How many calories does it have?"},{"id":"taste","name":"what it tastes like","type":"Symbol","localized":false,"required":false,"validations":[],"disabled":false,"omitted":false},{"id":"producer","type":"Symbol","name":"Food producer"},{"id":"vegan","type":"Boolean","name":"Vegan friendly"},{"id":"gmo","type":"Boolean","name":"Genetically modified food"},{"id":"sugar","type":"Number","name":"Amount of sugar"}],"description":" well, food"}) + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "food", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:24.667Z", + "updatedAt": "2018-07-23T14:51:26.739Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 1, + "version": 3, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 1, + "firstPublishedAt": "2018-07-23T14:51:25.177Z", + "publishedAt": "2018-07-23T14:51:25.177Z" + }, + "displayField": "taste", + "name": "foooood", + "description": " well, food", + "fields": [ + { + "id": "calories", + "name": "How many calories does it have?", + "type": "Number", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "taste", + "name": "what it tastes like", + "type": "Symbol", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "producer", + "name": "Food producer", + "type": "Symbol", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "vegan", + "name": "Vegan friendly", + "type": "Boolean", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "gmo", + "name": "Genetically modified food", + "type": "Boolean", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "sugar", + "name": "Amount of sugar", + "type": "Number", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:26 GMT', + 'ETag', + 'W/"aa3c239878713521e4ee878e3eb7680f"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35319', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + 'bc09fe14a0fff39c233bb2fa2ee27682', + 'Content-Length', + '592', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=jt0hLDQSQNOYGF5jfiY9ZW7rVVsAAAAAQUIPAAAAAABalnWR+p0inSOP2WXN7z3P; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=0BCCYCshqDLiCz/K6lKYhQAAAABThAfi35bLq5RnUzva8FXX; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=JdbhFL6zb3RXhvEfejOiBm7rVVsAAAAAurTrov3dCmGsTeaO/FXjkg==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '2-25591382-25591384 NNNN CT(101 203 0) RT(1532357485899 31) q(0 0 3 -1) r(4 4) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/food/published') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "food", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:24.667Z", + "updatedAt": "2018-07-23T14:51:27.147Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 2, + "version": 4, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 3, + "firstPublishedAt": "2018-07-23T14:51:25.177Z", + "publishedAt": "2018-07-23T14:51:27.147Z" + }, + "displayField": "taste", + "name": "foooood", + "description": " well, food", + "fields": [ + { + "id": "calories", + "name": "How many calories does it have?", + "type": "Number", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "taste", + "name": "what it tastes like", + "type": "Symbol", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "producer", + "name": "Food producer", + "type": "Symbol", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "vegan", + "name": "Vegan friendly", + "type": "Boolean", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "gmo", + "name": "Genetically modified food", + "type": "Boolean", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "sugar", + "name": "Amount of sugar", + "type": "Number", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:27 GMT', + 'ETag', + 'W/"8b3db22b699047943b9e9223fe221b78"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35318', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + '64c2c3df7fb698329e4d1689a8df8720', + 'Content-Length', + '593', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=K541v68QRmqQN9EbeytwyG7rVVsAAAAAQUIPAAAAAAAwBWyA2RNMPTHQaMcr4gC7; expires=Tue, 23 Jul 2019 08:17:21 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=om4zQ0fak1cMPzu86lKYhQAAAADm4DjVyCn650c8QecqmCXz; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=hm0jGmDhT0bchvEfejOiBm7rVVsAAAAAUyVMZc6UXJn5TauQv3GfEA==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '10-19802024-19802029 NNNN CT(0 0 0) RT(1532357486556 31) q(0 0 0 -1) r(4 4) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types/food') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "food", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:24.667Z", + "updatedAt": "2018-07-23T14:51:27.147Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 2, + "version": 4, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 3, + "firstPublishedAt": "2018-07-23T14:51:25.177Z", + "publishedAt": "2018-07-23T14:51:27.147Z" + }, + "displayField": "taste", + "name": "foooood", + "description": " well, food", + "fields": [ + { + "id": "calories", + "name": "How many calories does it have?", + "type": "Number", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "taste", + "name": "what it tastes like", + "type": "Symbol", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "producer", + "name": "Food producer", + "type": "Symbol", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "vegan", + "name": "Vegan friendly", + "type": "Boolean", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "gmo", + "name": "Genetically modified food", + "type": "Boolean", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "sugar", + "name": "Amount of sugar", + "type": "Number", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:27 GMT', + 'ETag', + 'W/"8b3db22b699047943b9e9223fe221b78"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35317', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + '09b1f5f3dcdfafd00fc3a3e7595ee28b', + 'Content-Length', + '593', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=R19O0Q/wSESjc9NHNgPkMm/rVVsAAAAAQUIPAAAAAAB9ebN2mt3yuiuXFEX8UiWz; expires=Tue, 23 Jul 2019 08:17:21 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=AokDU4awGEJkdE606lKYhQAAAABRPPfa8rgshyK8YDkwVChk; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=qrZ+ZV5P5w8Vh/EfejOiBm/rVVsAAAAA5sEY8FvbOxNW/ttRQCj6gQ==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '10-19802106-19802109 NNNN CT(0 0 0) RT(1532357487077 36) q(0 0 0 -1) r(1 1) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types') + .query({"sys.id":{"in":"person%2Canimal"}}) + .reply(200, { + "sys": { + "type": "Array" + }, + "total": 0, + "skip": 0, + "limit": 100, + "items": [] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:28 GMT', + 'ETag', + '"29f2c21be26360c424f617d8592cf6f9"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35316', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + 'aee673afe73170167b739fb16a31a663', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=CRIT4Y1XQG67Yxd89rmLM2/rVVsAAAAAQUIPAAAAAABa2qu0NdE19HrB493bDENr; expires=Tue, 23 Jul 2019 08:17:20 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=LlLJdORNmB9NQIXO6lKYhQAAAADHHITlm2ecVnHEumaY4oql; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=YK5DfelusDGih/EfejOiBm/rVVsAAAAAHCTG66K0gZ7xZF0MBbg8eQ==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '7-3856523-3856525 NNNN CT(112 227 0) RT(1532357487343 34) q(0 0 4 -1) r(5 5) U5', + 'X-CDN', + 'Incapsula', + + + 'Transfer-Encoding', + 'chunked' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/locales') + .reply(200, { + "total":1, + "limit":100, + "skip":0, + "sys":{ + "type":"Array" + }, + "items":[ + { + "name":"U.S. English", + "internal_code":"en-US", + "code":"en-US", + "fallbackCode":null, + "default":true, + "contentManagementApi":true, + "contentDeliveryApi":true, + "optional":false, + "sys":{ + "type":"Locale", + "id":"0zK7OynpqVdcSetOBfe5P8", + "version":1, + "space":{ + "sys":{ + "type":"Link", + "linkType":"Space", + "id":"bohepdihyxin" + } + }, + "environment":{ + "sys":{ + "type":"Link", + "linkType":"Environment", + "id":"env-integration" + } + }, + "createdBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "createdAt":"2018-07-23T14:51:00Z", + "updatedBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedAt":"2018-07-23T14:51:00Z" + } + } + ] +} + +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'Cache-Control', + 'max-age=0', + 'CF-Organization-Id', + '33lrAejsx0jnNQeRJgZ3EO', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:28 GMT', + 'ETag', + 'W/"7e337906d0a6faa3de1b0ec7edd5b080"', + 'Referrer-Policy', + 'strict-origin-when-cross-origin', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35315', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + '30b37303e31edff0c297f43127147a67', + 'X-Download-Options', + 'noopen', + 'X-Frame-Options', + 'ALLOWALL', + 'X-Permitted-Cross-Domain-Policies', + 'none', + 'X-XSS-Protection', + '1; mode=block', + 'Content-Length', + '413', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=rxw7vo/6S36QIlzUXOmOd3DrVVsAAAAAQUIPAAAAAACm7ABZqi0vFFKBoT64VgyY; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=d8pzL0h6PV9wsNz46lKYhQAAAADu+4WbEccxlpuFUMDgrANg; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=c7NmP+trM0XYh/EfejOiBnDrVVsAAAAAyQrMn8XlJy59IL4jOvmI5Q==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '5-18170813-18170815 NNNN CT(0 0 0) RT(1532357487991 31) q(0 0 0 -1) r(1 1) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/person', {"name":"Person","fields":[{"id":"age","name":"Age","type":"Number","required":true},{"id":"fullName","name":"Full name","type":"Symbol","required":true,"localized":true}],"description":"A content type for a person"}) + .reply(201, {"sys":{"space":{"sys":{"type":"Link","linkType":"Space","id":"bohepdihyxin"}},"id":"person","type":"ContentType","createdAt":"2018-07-23T14:51:28.762Z","updatedAt":"2018-07-23T14:51:28.762Z","environment":{"sys":{"id":"env-integration","type":"Link","linkType":"Environment"}},"createdBy":{"sys":{"type":"Link","linkType":"User","id":"33kZDXNajFNmbngiu5MvUa"}},"updatedBy":{"sys":{"type":"Link","linkType":"User","id":"33kZDXNajFNmbngiu5MvUa"}},"version":1},"displayField":null,"name":"Person","description":"A content type for a person","fields":[{"id":"age","name":"Age","type":"Number","localized":false,"required":true,"validations":[],"disabled":false,"omitted":false},{"id":"fullName","name":"Full name","type":"Symbol","localized":true,"required":true,"validations":[],"disabled":false,"omitted":false}]}, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:28 GMT', + 'ETag', + '"d007b2cb258d01abd907c952d57fe43b"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35314', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '7', + 'X-Contentful-Request-Id', + 'ebec8f3350c4331b1079bf1a89d20197', + 'Content-Length', + '1242', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=iAnJWHbCTbW9Wxqe9DhneHDrVVsAAAAAQUIPAAAAAAD0sg0M1QhfLdAJwwz6zcV7; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=GSlaGMCF/1UH8/3F6lKYhQAAAABhxk7qRrk8Zoo4WsGFsjp2; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=hFNSNqWJVRkZiPEfejOiBnDrVVsAAAAAjW7wN3VhamLvNH9xFVn3iw==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '2-25591591-25591594 NNNN CT(0 0 0) RT(1532357488214 31) q(0 0 0 -1) r(2 2) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/person/published') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "person", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:28.762Z", + "updatedAt": "2018-07-23T14:51:29.063Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "version": 2, + "firstPublishedAt": "2018-07-23T14:51:29.063Z", + "publishedCounter": 1, + "publishedAt": "2018-07-23T14:51:29.063Z", + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 1 + }, + "displayField": null, + "name": "Person", + "description": "A content type for a person", + "fields": [ + { + "id": "age", + "name": "Age", + "type": "Number", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "fullName", + "name": "Full name", + "type": "Symbol", + "localized": true, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:29 GMT', + 'ETag', + 'W/"e78467d1374ccbddd5cb1769a3ea0091"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35313', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + '3799d89c031806366ca49b6d69c9f4eb', + 'Content-Length', + '480', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=ahMznObRRlKpM4gQ+6uANXDrVVsAAAAAQUIPAAAAAACGaMeCHgsteLgYPvdCwg+Z; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=IRKEDbUSckcwtCEb6lKYhQAAAADIWKA+koeoVQhZoWiE7jDw; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=8BpXPio3Gl9hiPEfejOiBnDrVVsAAAAA4rSweEJKhAyYddNQtx/dsg==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '4-11437725-11437726 NNNN CT(0 0 0) RT(1532357488514 30) q(0 0 0 -1) r(3 3) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/animal', {"name":"Animal","fields":[{"id":"species","name":"The species of the animal","type":"Symbol","required":true},{"id":"isFurry","name":"Is this a furry animal","type":"Boolean","required":false}],"description":"An animal"}) + .reply(201, {"sys":{"space":{"sys":{"type":"Link","linkType":"Space","id":"bohepdihyxin"}},"id":"animal","type":"ContentType","createdAt":"2018-07-23T14:51:29.604Z","updatedAt":"2018-07-23T14:51:29.604Z","environment":{"sys":{"id":"env-integration","type":"Link","linkType":"Environment"}},"createdBy":{"sys":{"type":"Link","linkType":"User","id":"33kZDXNajFNmbngiu5MvUa"}},"updatedBy":{"sys":{"type":"Link","linkType":"User","id":"33kZDXNajFNmbngiu5MvUa"}},"version":1},"displayField":null,"name":"Animal","description":"An animal","fields":[{"id":"species","name":"The species of the animal","type":"Symbol","localized":false,"required":true,"validations":[],"disabled":false,"omitted":false},{"id":"isFurry","name":"Is this a furry animal","type":"Boolean","localized":false,"required":false,"validations":[],"disabled":false,"omitted":false}]}, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:29 GMT', + 'ETag', + '"681b8b5c13adb60fe5d2ece78c885acf"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35312', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + '02b749a910894513c5038b6eb831f9dd', + 'Content-Length', + '1265', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=ot2svIP6SkyVUfW09QLd0HHrVVsAAAAAQUIPAAAAAABEQKsPf2x2pmrurBzTDY3z; expires=Tue, 23 Jul 2019 08:17:20 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=ONPFQWOIUgUjLvFn6lKYhQAAAABcWSNJSRPofJcREKv06020; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=cMb7FGi4kxa3iPEfejOiBnHrVVsAAAAAiDtaNWUueY018MCcEiNQ/A==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '3-6799683-6799685 NNNN CT(0 0 0) RT(1532357489022 32) q(0 0 0 -1) r(3 3) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/animal/published') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "animal", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:29.604Z", + "updatedAt": "2018-07-23T14:51:29.962Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "version": 2, + "firstPublishedAt": "2018-07-23T14:51:29.962Z", + "publishedCounter": 1, + "publishedAt": "2018-07-23T14:51:29.962Z", + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 1 + }, + "displayField": null, + "name": "Animal", + "description": "An animal", + "fields": [ + { + "id": "species", + "name": "The species of the animal", + "type": "Symbol", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "isFurry", + "name": "Is this a furry animal", + "type": "Boolean", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:30 GMT', + 'ETag', + 'W/"bba8097d94c713076396a9894ef6280b"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35311', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '7', + 'X-Contentful-Request-Id', + '3f127c0f25b77d3e0e43af4ba5f5dc14', + 'Content-Length', + '486', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=g1x7JZ8hRPeAOQ2LtJPB8HHrVVsAAAAAQUIPAAAAAABowpOnQQCYujBZ6Ne7QHkc; expires=Tue, 23 Jul 2019 08:17:20 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=zcP4MdgSYB+CsmuO6lKYhQAAAAAv3XcrtuqfmvMKWyL2Swnp; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=yKEaP85NeWgeifEfejOiBnHrVVsAAAAAz3RF36d77xbieURPZ3pWsQ==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '7-3856559-3856560 NNNN CT(0 0 0) RT(1532357489420 43) q(0 0 0 -1) r(4 4) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/person', {"name":"Person","fields":[{"id":"age","name":"Age","type":"Number","required":true},{"id":"fullName","name":"Full name","type":"Symbol","required":true,"localized":true},{"id":"pet","name":"Their pet","type":"Link","linkType":"Entry","required":false}],"description":"A content type for a person"}) + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "person", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:28.762Z", + "updatedAt": "2018-07-23T14:51:30.516Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 1, + "version": 3, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 1, + "firstPublishedAt": "2018-07-23T14:51:29.063Z", + "publishedAt": "2018-07-23T14:51:29.063Z" + }, + "displayField": null, + "name": "Person", + "description": "A content type for a person", + "fields": [ + { + "id": "age", + "name": "Age", + "type": "Number", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "fullName", + "name": "Full name", + "type": "Symbol", + "localized": true, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "pet", + "name": "Their pet", + "type": "Link", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false, + "linkType": "Entry" + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:30 GMT', + 'ETag', + 'W/"a23e30bbb66eacf86f7d07271146ef17"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35310', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + 'efdb028872d9a5a1626357d1058b1889', + 'Content-Length', + '522', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=rldy842zRXuAfM3pmQNrtHLrVVsAAAAAQUIPAAAAAAC1TQ0+MKW9tDshudb0JOuJ; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=HPq5RXsJN3lRm2CK6lKYhQAAAACX7sacs9uZbsgRADYYz1d3; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=wGgOEcFIt1hbifEfejOiBnLrVVsAAAAAZQ/mXGDAiXxRr6oEoBiSPQ==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '2-25591805-25591809 NNNN CT(0 0 0) RT(1532357489980 30) q(0 0 0 -1) r(1 1) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/person/published') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "person", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:28.762Z", + "updatedAt": "2018-07-23T14:51:30.780Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 2, + "version": 4, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 3, + "firstPublishedAt": "2018-07-23T14:51:29.063Z", + "publishedAt": "2018-07-23T14:51:30.780Z" + }, + "displayField": null, + "name": "Person", + "description": "A content type for a person", + "fields": [ + { + "id": "age", + "name": "Age", + "type": "Number", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "fullName", + "name": "Full name", + "type": "Symbol", + "localized": true, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "pet", + "name": "Their pet", + "type": "Link", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false, + "linkType": "Entry" + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:30 GMT', + 'ETag', + 'W/"34ad292c6ccd60535525fc83bafd004f"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35309', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + 'f2e53d47f6e584b12c87c941c72780e8', + 'Content-Length', + '525', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=ntWpgkuzRp++UMR+usM6XHLrVVsAAAAAQUIPAAAAAADBp6OU7GTaa9j7S3UJV+QV; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=TZumLITfUxsxbnmQ6lKYhQAAAAATVxq2ACVs4W1LoMS2xIw6; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=DDF7SVtr+l+zifEfejOiBnLrVVsAAAAAU2QtFST5uwczVozLcv/aMw==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '5-18171006-18171008 NNNN CT(0 0 0) RT(1532357490240 38) q(0 0 0 -1) r(4 4) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/animal', {"name":"Animal","fields":[{"id":"species","name":"The species of the animal","type":"Symbol","required":true},{"id":"isFurry","name":"Is this a furry animal","type":"Boolean","required":false},{"id":"name","name":"The name of the animal","type":"Symbol","required":true,"localized":true}],"description":"An animal"}) + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "animal", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:29.604Z", + "updatedAt": "2018-07-23T14:51:31.573Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 1, + "version": 3, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 1, + "firstPublishedAt": "2018-07-23T14:51:29.962Z", + "publishedAt": "2018-07-23T14:51:29.962Z" + }, + "displayField": null, + "name": "Animal", + "description": "An animal", + "fields": [ + { + "id": "species", + "name": "The species of the animal", + "type": "Symbol", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "isFurry", + "name": "Is this a furry animal", + "type": "Boolean", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "name", + "name": "The name of the animal", + "type": "Symbol", + "localized": true, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:31 GMT', + 'ETag', + 'W/"92906e55f32f25b6820d337b670c1be8"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35308', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + '559f5c2bcd5e9fc226ca6a0b5dfd33d3', + 'Content-Length', + '509', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=C1qc2lt/SDKHdOBtgTl5EXPrVVsAAAAAQUIPAAAAAACuSxBTwqI9qlMmVRNMhqjo; expires=Tue, 23 Jul 2019 08:17:33 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=tZv2Bxu2pQ+valS36lKYhQAAAABfUx6GA2Sk3bM55JZhoynL; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=+UAoMEUSFXkUivEfejOiBnPrVVsAAAAABTwlma/U8enneu3Kmuqgrw==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '8-6492561-6492564 NNNN CT(109 110 0) RT(1532357490748 29) q(0 0 2 -1) r(5 5) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/animal/published') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "animal", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:29.604Z", + "updatedAt": "2018-07-23T14:51:31.900Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 2, + "version": 4, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 3, + "firstPublishedAt": "2018-07-23T14:51:29.962Z", + "publishedAt": "2018-07-23T14:51:31.900Z" + }, + "displayField": null, + "name": "Animal", + "description": "An animal", + "fields": [ + { + "id": "species", + "name": "The species of the animal", + "type": "Symbol", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "isFurry", + "name": "Is this a furry animal", + "type": "Boolean", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "name", + "name": "The name of the animal", + "type": "Symbol", + "localized": true, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:32 GMT', + 'ETag', + 'W/"87275556f00a845c770134f913f801e6"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35307', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + 'b31291cd55f186db808476a41559d1c6', + 'Content-Length', + '513', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=23OLUfloQmybnL6ycwsDMXPrVVsAAAAAQUIPAAAAAAAiHDicHCFQReW2Al3AyrlC; expires=Tue, 23 Jul 2019 08:17:24 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=xWXvPk/AOCYTdPLp6lKYhQAAAAByu06GJ15DXfM5AIyiEvEF; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=kKZ+DNszrwt4ivEfejOiBnPrVVsAAAAAprTUt6ck4k0gLzoW7vadVA==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '1-17695824-17695826 NNNN CT(0 0 0) RT(1532357491343 31) q(0 0 0 -1) r(4 4) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types/person') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "person", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:28.762Z", + "updatedAt": "2018-07-23T14:51:30.780Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 2, + "version": 4, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 3, + "firstPublishedAt": "2018-07-23T14:51:29.063Z", + "publishedAt": "2018-07-23T14:51:30.780Z" + }, + "displayField": null, + "name": "Person", + "description": "A content type for a person", + "fields": [ + { + "id": "age", + "name": "Age", + "type": "Number", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "fullName", + "name": "Full name", + "type": "Symbol", + "localized": true, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "pet", + "name": "Their pet", + "type": "Link", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false, + "linkType": "Entry" + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:32 GMT', + 'ETag', + 'W/"34ad292c6ccd60535525fc83bafd004f"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35306', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + 'fc09ced0cadb72f968b68b4ae950aee7', + 'Content-Length', + '525', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=RGNM0f8KRzCIz3ZBLtUX73TrVVsAAAAAQUIPAAAAAACVkEx+TD5fr1yRJWy/S+Fr; expires=Tue, 23 Jul 2019 08:17:24 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=y7QKLevY4EPGDwn66lKYhQAAAADTsZ7gABNvbXNIbrf/qgdh; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=vlRkL22q9VO5ivEfejOiBnTrVVsAAAAASPvuiPn5cfU6nzos/81pog==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '1-17695851-17695852 NNNN CT(0 0 0) RT(1532357491872 30) q(0 0 0 -1) r(1 1) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types/animal') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "animal", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:29.604Z", + "updatedAt": "2018-07-23T14:51:31.900Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 2, + "version": 4, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 3, + "firstPublishedAt": "2018-07-23T14:51:29.962Z", + "publishedAt": "2018-07-23T14:51:31.900Z" + }, + "displayField": null, + "name": "Animal", + "description": "An animal", + "fields": [ + { + "id": "species", + "name": "The species of the animal", + "type": "Symbol", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "isFurry", + "name": "Is this a furry animal", + "type": "Boolean", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "name", + "name": "The name of the animal", + "type": "Symbol", + "localized": true, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:32 GMT', + 'ETag', + 'W/"87275556f00a845c770134f913f801e6"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35305', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + '4815bed6b4e8c2f31c573b11049945e4', + 'Content-Length', + '513', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=z+hFjB5PTFaQCsOvOm7Xc3TrVVsAAAAAQUIPAAAAAACpe62w4CWYC+fvAOSNSvUU; expires=Tue, 23 Jul 2019 08:17:33 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=lAHdE3hd70O0haD36lKYhQAAAAD5yulVo/GSO/6hLwhqdp4s; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=pVSdLALpPU0ci/EfejOiBnTrVVsAAAAAWbFF8f9ENkGKPl4bS41+4Q==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '8-6492641-6492644 NNNN CT(101 101 0) RT(1532357492135 78) q(0 0 2 -1) r(3 3) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types') + .query({"sys.id":{"in":"person%2CsomethingElse"}}) + .reply(200, { + "sys": { + "type": "Array" + }, + "total": 1, + "skip": 0, + "limit": 100, + "items": [ + { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "person", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:28.762Z", + "updatedAt": "2018-07-23T14:51:30.780Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 2, + "version": 4, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 3, + "firstPublishedAt": "2018-07-23T14:51:29.063Z", + "publishedAt": "2018-07-23T14:51:30.780Z" + }, + "displayField": null, + "name": "Person", + "description": "A content type for a person", + "fields": [ + { + "id": "age", + "name": "Age", + "type": "Number", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "fullName", + "name": "Full name", + "type": "Symbol", + "localized": true, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "pet", + "name": "Their pet", + "type": "Link", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false, + "linkType": "Entry" + } + ] + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:33 GMT', + 'ETag', + 'W/"ac8e47ee4607a6f04ed2d94c54c31b2f"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35304', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + '0896aebeb9d2242eed9a7819c899970b', + 'Content-Length', + '589', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=UiToYMVoQwuIaqeU7ObN3nTrVVsAAAAAQUIPAAAAAACXaXeSWqtHXUV71yvoSKAg; expires=Tue, 23 Jul 2019 08:17:21 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=lNc6N3k7aw41i+M56lKYhQAAAABXhSoLUfm4T48Bzi8nJMED; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=6+k3JvmXV2NKi/EfejOiBnTrVVsAAAAASY38CXacVAkTVa6i2pQRYA==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '10-19802638-19802647 NNNN CT(0 0 0) RT(1532357492675 38) q(0 0 0 -1) r(1 1) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/blogpost', {"name":"blog post","fields":[{"name":"title","id":"title","type":"Symbol"},{"name":"category","id":"category","type":"Symbol"}]}) + .reply(201, {"sys":{"space":{"sys":{"type":"Link","linkType":"Space","id":"bohepdihyxin"}},"id":"blogpost","type":"ContentType","createdAt":"2018-07-23T14:51:33.493Z","updatedAt":"2018-07-23T14:51:33.493Z","environment":{"sys":{"id":"env-integration","type":"Link","linkType":"Environment"}},"createdBy":{"sys":{"type":"Link","linkType":"User","id":"33kZDXNajFNmbngiu5MvUa"}},"updatedBy":{"sys":{"type":"Link","linkType":"User","id":"33kZDXNajFNmbngiu5MvUa"}},"version":1},"displayField":null,"name":"blog post","description":null,"fields":[{"id":"title","name":"title","type":"Symbol","localized":false,"required":false,"validations":[],"disabled":false,"omitted":false},{"id":"category","name":"category","type":"Symbol","localized":false,"required":false,"validations":[],"disabled":false,"omitted":false}]}, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:33 GMT', + 'ETag', + '"ec8a33302260b5eaea9a0bdc32648e21"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35303', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + 'db8d5d7f722e2ec87ec8da4e0bdc94a4', + 'Content-Length', + '1228', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=wSr6dYSbSOS/1MQ5Z4k4N3XrVVsAAAAAQUIPAAAAAABRsGxWJDF8yMmcmWyQn6uw; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=bkd1fzqtS3dUXuBH6lKYhQAAAACMn/4rqSeGvYvwabehKGWs; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=cG6iAvprtkR+i/EfejOiBnXrVVsAAAAA3RFXCnjmZPfjlaYvhsTPYQ==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '4-11437945-11437948 NNNN CT(0 0 0) RT(1532357492933 38) q(0 0 0 -1) r(2 2) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/blogpost/published') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "blogpost", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:33.493Z", + "updatedAt": "2018-07-23T14:51:33.800Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "version": 2, + "firstPublishedAt": "2018-07-23T14:51:33.799Z", + "publishedCounter": 1, + "publishedAt": "2018-07-23T14:51:33.799Z", + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 1 + }, + "displayField": null, + "name": "blog post", + "description": null, + "fields": [ + { + "id": "title", + "name": "title", + "type": "Symbol", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "category", + "name": "category", + "type": "Symbol", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:33 GMT', + 'ETag', + 'W/"a3cf06724ab5f0aaf919c9c65a1e17e7"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35302', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '7', + 'X-Contentful-Request-Id', + '47802a56d46c844d38326583f9d7aa43', + 'Content-Length', + '448', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=RoRCP7I5RYKuohEHiKPkOHXrVVsAAAAAQUIPAAAAAAB9wtAmRyWwiTa9OpLiohTr; expires=Tue, 23 Jul 2019 08:17:20 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=N6MlG3XLig1wT2M06lKYhQAAAAALMtwgQIMBj15QMkkM7Pau; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=Iig4ZslA7j7Gi/EfejOiBnXrVVsAAAAAvmhZz4+KA15bjXQg8tztKw==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '9-11226713-11226714 NNNN CT(0 0 0) RT(1532357493248 35) q(0 0 0 -1) r(4 4) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .post('/spaces/bohepdihyxin/environments/env-integration/entries', {"fields":{"title":{"en-US":"hello!"}}}) + .reply(201, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "5jvah25nuooOoiAwKiaUeY", + "type": "Entry", + "createdAt": "2018-07-23T14:51:34.257Z", + "updatedAt": "2018-07-23T14:51:34.257Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "version": 1, + "contentType": { + "sys": { + "type": "Link", + "linkType": "ContentType", + "id": "blogpost" + } + } + }, + "fields": { + "title": { + "en-US": "hello!" + } + } +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:34 GMT', + 'ETag', + '"3bfc87567561f46f2dc4d6c0154c0f9b"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35301', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + 'aa8b6041605c5cdfced9bfd6469e6e98', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=30ZFWxL0REGstoLd3QFUPHXrVVsAAAAAQUIPAAAAAABgecsyBLEbiPrKG92HPe7v; expires=Tue, 23 Jul 2019 08:17:21 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=CwCJaOSW41SNPfin6lKYhQAAAAC/gZHWZWZ6RWB/gVFwIs8O; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=u7QAEtXyEEr+i/EfejOiBnXrVVsAAAAAqZ4YUqEukVzQJeJ0IPZseg==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '10-19802719-19802722 NNNN CT(0 0 0) RT(1532357493716 30) q(0 0 0 -1) r(2 2) U5', + 'X-CDN', + 'Incapsula', + + + 'Transfer-Encoding', + 'chunked' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .post('/spaces/bohepdihyxin/environments/env-integration/entries', {"fields":{"title":{"en-US":"hello!"}}}) + .reply(201, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "bkv2OXj3fUoW8CMcQE4SI", + "type": "Entry", + "createdAt": "2018-07-23T14:51:34.809Z", + "updatedAt": "2018-07-23T14:51:34.809Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "version": 1, + "contentType": { + "sys": { + "type": "Link", + "linkType": "ContentType", + "id": "blogpost" + } + } + }, + "fields": { + "title": { + "en-US": "hello!" + } + } +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:34 GMT', + 'ETag', + '"15e46a95d33bbc97504a5dab3b1702f7"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35300', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + '87284de13a72cb5e82b3dbbfa2049085', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=YDbOWjQ1RiuyxWqdpJu+MHbrVVsAAAAAQUIPAAAAAABXJxvr8u/+gfHSGuH0BZOr; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=LCFUGYVFulHZj6pI6lKYhQAAAABRtrOa8uDhcDg0zqBHyv2V; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=A+TNQK2QA19tjPEfejOiBnbrVVsAAAAA6M1jOdXq+oBn0Npo0BM5pw==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '2-25592186-25592189 NNNN CT(121 121 0) RT(1532357494011 30) q(0 0 2 -1) r(5 5) U5', + 'X-CDN', + 'Incapsula', + + + 'Transfer-Encoding', + 'chunked' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types') + .query({"sys.id":{"in":"blogpost"}}) + .reply(200, { + "sys": { + "type": "Array" + }, + "total": 1, + "skip": 0, + "limit": 100, + "items": [ + { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "blogpost", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:33.493Z", + "updatedAt": "2018-07-23T14:51:33.800Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 1, + "version": 2, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 1, + "firstPublishedAt": "2018-07-23T14:51:33.799Z", + "publishedAt": "2018-07-23T14:51:33.799Z" + }, + "displayField": null, + "name": "blog post", + "description": null, + "fields": [ + { + "id": "title", + "name": "title", + "type": "Symbol", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + }, + { + "id": "category", + "name": "category", + "type": "Symbol", + "localized": false, + "required": false, + "validations": [], + "disabled": false, + "omitted": false + } + ] + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:35 GMT', + 'ETag', + 'W/"72731bfec378adfa2c81ea193ab15f73"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35299', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + 'd514d20ce64cc4edfba71f75db7bfd4e', + 'Content-Length', + '517', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=ZQCkP81aSFyvx+J+pD1Dk3brVVsAAAAAQUIPAAAAAADpmmzAJFoNZsHS0i+FdQq7; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=H2gtM7JLlhTfkTXH6lKYhQAAAAAjDUSlLjTzJSYqxEOOljtE; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=0X/bNO5g/yiojPEfejOiBnbrVVsAAAAAYV+IO2W8iwkfo7B9iQsr4A==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '2-25592224-25592227 NNNN CT(0 0 0) RT(1532357494652 40) q(0 0 0 -1) r(2 2) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/entries') + .query({"sys.contentType.sys.id":{"in":"blogpost"},"skip":"0"}) + .reply(200, { + "sys": { + "type": "Array" + }, + "total": 2, + "skip": 0, + "limit": 100, + "items": [ + { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "5jvah25nuooOoiAwKiaUeY", + "type": "Entry", + "createdAt": "2018-07-23T14:51:34.257Z", + "updatedAt": "2018-07-23T14:51:34.257Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "version": 1, + "contentType": { + "sys": { + "type": "Link", + "linkType": "ContentType", + "id": "blogpost" + } + } + }, + "fields": { + "title": { + "en-US": "hello!" + } + } + }, + { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "bkv2OXj3fUoW8CMcQE4SI", + "type": "Entry", + "createdAt": "2018-07-23T14:51:34.809Z", + "updatedAt": "2018-07-23T14:51:34.809Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "version": 1, + "contentType": { + "sys": { + "type": "Link", + "linkType": "ContentType", + "id": "blogpost" + } + } + }, + "fields": { + "title": { + "en-US": "hello!" + } + } + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:35 GMT', + 'ETag', + 'W/"8a988bc602d824e49dd7b26c9d97991b"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35298', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + '8b3255e503daf301ef6d67e44d22190a', + 'Content-Length', + '445', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=g9Whhe6ITGmNYVDOYsQ71HfrVVsAAAAAQUIPAAAAAACyBirbNUKNVvXqvI0lziZv; expires=Tue, 23 Jul 2019 08:17:20 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=dGSPc4gP1HpAjMyr6lKYhQAAAACXLlpZgWmdZ+SrrTz8k1fn; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=RPDICRl3CW3RjPEfejOiBnfrVVsAAAAAqyZCQ1vc2+1+4yngRFAA1w==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '3-6799864-6799866 NNNN CT(0 0 0) RT(1532357494896 36) q(0 0 0 -1) r(1 1) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/locales') + .reply(200, { + "total":1, + "limit":100, + "skip":0, + "sys":{ + "type":"Array" + }, + "items":[ + { + "name":"U.S. English", + "internal_code":"en-US", + "code":"en-US", + "fallbackCode":null, + "default":true, + "contentManagementApi":true, + "contentDeliveryApi":true, + "optional":false, + "sys":{ + "type":"Locale", + "id":"0zK7OynpqVdcSetOBfe5P8", + "version":1, + "space":{ + "sys":{ + "type":"Link", + "linkType":"Space", + "id":"bohepdihyxin" + } + }, + "environment":{ + "sys":{ + "type":"Link", + "linkType":"Environment", + "id":"env-integration" + } + }, + "createdBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "createdAt":"2018-07-23T14:51:00Z", + "updatedBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedAt":"2018-07-23T14:51:00Z" + } + } + ] +} + +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'Cache-Control', + 'max-age=0', + 'CF-Organization-Id', + '33lrAejsx0jnNQeRJgZ3EO', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:35 GMT', + 'ETag', + 'W/"7e337906d0a6faa3de1b0ec7edd5b080"', + 'Referrer-Policy', + 'strict-origin-when-cross-origin', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35297', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '7', + 'X-Contentful-Request-Id', + '09cc05666168e3d9a0ca65bb05eddfbd', + 'X-Download-Options', + 'noopen', + 'X-Frame-Options', + 'ALLOWALL', + 'X-Permitted-Cross-Domain-Policies', + 'none', + 'X-XSS-Protection', + '1; mode=block', + 'Content-Length', + '413', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=fOYQcOfgQwa9jRNr4AunInfrVVsAAAAAQUIPAAAAAACoRLYAPqgntYUujcRyKhri; expires=Tue, 23 Jul 2019 08:17:33 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=Hw0LTZhQxzQh1QCV6lKYhQAAAABdQOfqehY77iOp+aXpJNKV; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=DPD6Fso5NAYGjfEfejOiBnfrVVsAAAAAx2ys4waptWCk/qQ23fQ96g==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '8-6492850-6492853 NNNN CT(0 0 0) RT(1532357495145 38) q(0 0 0 -1) r(2 2) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/entries/5jvah25nuooOoiAwKiaUeY', {"sys":{"id":"5jvah25nuooOoiAwKiaUeY","version":1,"contentType":{"sys":{"type":"Link","linkType":"ContentType","id":"blogpost"}}},"fields":{"title":{"en-US":"hello!"},"category":{"en-US":"hello!"}}}) + .reply(200, {"sys":{"space":{"sys":{"type":"Link","linkType":"Space","id":"bohepdihyxin"}},"id":"5jvah25nuooOoiAwKiaUeY","type":"Entry","createdAt":"2018-07-23T14:51:34.257Z","updatedAt":"2018-07-23T14:51:36.158Z","environment":{"sys":{"id":"env-integration","type":"Link","linkType":"Environment"}},"createdBy":{"sys":{"type":"Link","linkType":"User","id":"33kZDXNajFNmbngiu5MvUa"}},"updatedBy":{"sys":{"type":"Link","linkType":"User","id":"33kZDXNajFNmbngiu5MvUa"}},"version":2,"contentType":{"sys":{"type":"Link","linkType":"ContentType","id":"blogpost"}}},"fields":{"title":{"en-US":"hello!"},"category":{"en-US":"hello!"}}}, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:36 GMT', + 'ETag', + '"68a7f031d612bb4ca8bccefbfaabbc39"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35296', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + '0c031f95ed784408bfeb2fafb288ed6e', + 'Content-Length', + '980', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=lYLVUf78SaWHeU/FUgWmqnfrVVsAAAAAQUIPAAAAAABI9L3GAZ0Lvk+3asixLdTi; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=RQhjRAiuciIwg4up6lKYhQAAAAAoob7r7HiN1mKLAdIGkIWC; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=gH3Ld7/pb11ljfEfejOiBnfrVVsAAAAApkeGS+o4dkxJA86/2/+U6w==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '2-25592304-25592308 NNNN CT(107 107 0) RT(1532357495392 49) q(0 0 2 -1) r(4 4) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/entries/5jvah25nuooOoiAwKiaUeY/published') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "5jvah25nuooOoiAwKiaUeY", + "type": "Entry", + "createdAt": "2018-07-23T14:51:34.257Z", + "updatedAt": "2018-07-23T14:51:36.489Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 1, + "version": 3, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 2, + "firstPublishedAt": "2018-07-23T14:51:36.489Z", + "publishedAt": "2018-07-23T14:51:36.489Z", + "contentType": { + "sys": { + "type": "Link", + "linkType": "ContentType", + "id": "blogpost" + } + } + }, + "fields": { + "title": { + "en-US": "hello!" + }, + "category": { + "en-US": "hello!" + } + } +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:36 GMT', + 'ETag', + 'W/"b5734d10e2e966233a4a93fa27ac14fa"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35295', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + 'eec5598b90a1a0b9d36d4249517a5813', + 'Content-Length', + '392', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=kp4ltZjiRcOIMhqt9DftonjrVVsAAAAAQUIPAAAAAADwOjjEmyNlSXvPnFB0Rw8M; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=X5AWeFxk/3wf61L46lKYhQAAAAAidxpKFWi718onoV+RbRD6; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=/6tSVkuFrEm0jfEfejOiBnjrVVsAAAAApIzWROHEpJH5Lg56cbdg6w==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '5-18171468-18171471 NNNN CT(0 0 0) RT(1532357495949 34) q(0 0 0 -1) r(4 4) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/entries/bkv2OXj3fUoW8CMcQE4SI', {"sys":{"id":"bkv2OXj3fUoW8CMcQE4SI","version":1,"contentType":{"sys":{"type":"Link","linkType":"ContentType","id":"blogpost"}}},"fields":{"title":{"en-US":"hello!"},"category":{"en-US":"hello!"}}}) + .reply(200, {"sys":{"space":{"sys":{"type":"Link","linkType":"Space","id":"bohepdihyxin"}},"id":"bkv2OXj3fUoW8CMcQE4SI","type":"Entry","createdAt":"2018-07-23T14:51:34.809Z","updatedAt":"2018-07-23T14:51:37.029Z","environment":{"sys":{"id":"env-integration","type":"Link","linkType":"Environment"}},"createdBy":{"sys":{"type":"Link","linkType":"User","id":"33kZDXNajFNmbngiu5MvUa"}},"updatedBy":{"sys":{"type":"Link","linkType":"User","id":"33kZDXNajFNmbngiu5MvUa"}},"version":2,"contentType":{"sys":{"type":"Link","linkType":"ContentType","id":"blogpost"}}},"fields":{"title":{"en-US":"hello!"},"category":{"en-US":"hello!"}}}, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:37 GMT', + 'ETag', + '"ff7324c87b6ba577a2fdf5e8b76a471b"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35294', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '7', + 'X-Contentful-Request-Id', + 'fe2fb3b74653fc487b9bbc7ad1ddf3e2', + 'Content-Length', + '979', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=npILbWFJQ5yK/P+oHHMSeXjrVVsAAAAAQUIPAAAAAAAgvnqFBp0Uj/V4IryjFqzM; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=MyLDejkLESHbpJCD6lKYhQAAAAC7bY4wn5cjwG47EJW7lxvw; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=5w6kW0HxE2f4jfEfejOiBnjrVVsAAAAAPfJF9PUcYW4jmVu+ItjT6Q==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '5-18171540-18171543 NNNN CT(0 0 0) RT(1532357496484 33) q(0 0 0 -1) r(1 1) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/entries/bkv2OXj3fUoW8CMcQE4SI/published') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "bkv2OXj3fUoW8CMcQE4SI", + "type": "Entry", + "createdAt": "2018-07-23T14:51:34.809Z", + "updatedAt": "2018-07-23T14:51:37.281Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 1, + "version": 3, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 2, + "firstPublishedAt": "2018-07-23T14:51:37.281Z", + "publishedAt": "2018-07-23T14:51:37.281Z", + "contentType": { + "sys": { + "type": "Link", + "linkType": "ContentType", + "id": "blogpost" + } + } + }, + "fields": { + "title": { + "en-US": "hello!" + }, + "category": { + "en-US": "hello!" + } + } +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:37 GMT', + 'ETag', + 'W/"c2a563fefaa61280c5e06d54f8bbce74"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35293', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + '8b971708ea07ff84dfcbf1dc5a01cbc0', + 'Content-Length', + '392', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=GCwe8S2+RserdWI1PMqpOXnrVVsAAAAAQUIPAAAAAADz+gdYvjL/nXGAUdkFnNgk; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=EYmACAaGYjRupM0M6lKYhQAAAABu9gtx06stCr+8bES4jtHW; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=NAXVEzZ/B209jvEfejOiBnnrVVsAAAAAxkEwzRhze0QCkpLk8SU1Fw==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '5-18171551-18171559 NNNN CT(0 0 0) RT(1532357496737 32) q(0 0 0 -1) r(3 3) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/entries') + .query({"content_type":"blogpost"}) + .reply(200, { + "sys": { + "type": "Array" + }, + "total": 2, + "skip": 0, + "limit": 100, + "items": [ + { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "bkv2OXj3fUoW8CMcQE4SI", + "type": "Entry", + "createdAt": "2018-07-23T14:51:34.809Z", + "updatedAt": "2018-07-23T14:51:37.281Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 1, + "version": 3, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 2, + "firstPublishedAt": "2018-07-23T14:51:37.281Z", + "publishedAt": "2018-07-23T14:51:37.281Z", + "contentType": { + "sys": { + "type": "Link", + "linkType": "ContentType", + "id": "blogpost" + } + } + }, + "fields": { + "title": { + "en-US": "hello!" + }, + "category": { + "en-US": "hello!" + } + } + }, + { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "5jvah25nuooOoiAwKiaUeY", + "type": "Entry", + "createdAt": "2018-07-23T14:51:34.257Z", + "updatedAt": "2018-07-23T14:51:36.489Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 1, + "version": 3, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 2, + "firstPublishedAt": "2018-07-23T14:51:36.489Z", + "publishedAt": "2018-07-23T14:51:36.489Z", + "contentType": { + "sys": { + "type": "Link", + "linkType": "ContentType", + "id": "blogpost" + } + } + }, + "fields": { + "title": { + "en-US": "hello!" + }, + "category": { + "en-US": "hello!" + } + } + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:37 GMT', + 'ETag', + 'W/"343a553e064ead103792ff2f61489e16"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35292', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + '16b41e985746c747781de6880dacb82c', + 'Content-Length', + '530', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=SUmYC0lvQe6X7uwxRCxAKXnrVVsAAAAAQUIPAAAAAADumd0MV7B7w354AipC3aIT; expires=Tue, 23 Jul 2019 08:17:20 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=lvzUDZjn2jSE/iWd6lKYhQAAAACtSBXB5I7VyOpwkpCj+ISV; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=/ZDae0CAmlmUjvEfejOiBnnrVVsAAAAAeEYm68+Tg2VgbJ1k81RvDQ==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '9-11226871-11226872 NNNN CT(110 109 0) RT(1532357497094 32) q(0 0 2 -1) r(4 4) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types') + .query({"sys.id":{"in":"blogPost"}}) + .reply(200, { + "sys": { + "type": "Array" + }, + "total": 0, + "skip": 0, + "limit": 100, + "items": [] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:38 GMT', + 'ETag', + '"29f2c21be26360c424f617d8592cf6f9"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35291', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + '7399ded10523788e51caeee66ee00f49', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=AFePrAk4S96FqOY9sn+Zl3nrVVsAAAAAQUIPAAAAAABebfWqoMC2AjtFecy8Qy+s; expires=Tue, 23 Jul 2019 08:17:24 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=36csTEcvuD7DJFj/6lKYhQAAAAD3c4SKMiS+Bgfju1oOPdpL; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=vejuN+hDPiy+jvEfejOiBnnrVVsAAAAA854qBwIk8jtKlS33TAWY4g==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '1-17696153-17696155 NNNN CT(0 0 0) RT(1532357497614 31) q(0 0 0 -1) r(1 1) U5', + 'X-CDN', + 'Incapsula', + + + 'Transfer-Encoding', + 'chunked' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types/blogPost/editor_interface') + .reply(404, { + "sys": { + "type": "Error", + "id": "NotFound" + }, + "message": "The resource could not be found.", + "details": { + "id": "blogPost", + "type": "ContentType", + "space": "bohepdihyxin", + "environment": "env-integration" + }, + "requestId": "07fea6f8192b82965207098518ad4959" +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:38 GMT', + 'ETag', + '"4c271b1bb94954d9f34c9ce13c90a8d7"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35290', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + '07fea6f8192b82965207098518ad4959', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=fxAOu4tQShCizJt/HzNhuXrrVVsAAAAAQUIPAAAAAADu3V3FdeBDRqx7LHBOpNvx; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=ugtyJZCeO1AzEfnf6lKYhQAAAADHAajqAt4Xmmb/182KSNZ7; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=Sek2XZcxCT3rjvEfejOiBnrrVVsAAAAA4vxW5onvOf1WEwvQ4o9iKw==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '5-18171663-18171666 NNNN CT(0 0 0) RT(1532357497850 38) q(0 0 0 -1) r(2 2) U5', + 'X-CDN', + 'Incapsula', + + + 'Transfer-Encoding', + 'chunked' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/locales') + .reply(200, { + "total":1, + "limit":100, + "skip":0, + "sys":{ + "type":"Array" + }, + "items":[ + { + "name":"U.S. English", + "internal_code":"en-US", + "code":"en-US", + "fallbackCode":null, + "default":true, + "contentManagementApi":true, + "contentDeliveryApi":true, + "optional":false, + "sys":{ + "type":"Locale", + "id":"0zK7OynpqVdcSetOBfe5P8", + "version":1, + "space":{ + "sys":{ + "type":"Link", + "linkType":"Space", + "id":"bohepdihyxin" + } + }, + "environment":{ + "sys":{ + "type":"Link", + "linkType":"Environment", + "id":"env-integration" + } + }, + "createdBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "createdAt":"2018-07-23T14:51:00Z", + "updatedBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedAt":"2018-07-23T14:51:00Z" + } + } + ] +} + +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'Cache-Control', + 'max-age=0', + 'CF-Organization-Id', + '33lrAejsx0jnNQeRJgZ3EO', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:38 GMT', + 'ETag', + 'W/"7e337906d0a6faa3de1b0ec7edd5b080"', + 'Referrer-Policy', + 'strict-origin-when-cross-origin', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35289', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '7', + 'X-Contentful-Request-Id', + '7eaa395d5dd3ac6becd8fceb492634dd', + 'X-Download-Options', + 'noopen', + 'X-Frame-Options', + 'ALLOWALL', + 'X-Permitted-Cross-Domain-Policies', + 'none', + 'X-XSS-Protection', + '1; mode=block', + 'Content-Length', + '413', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=Nss8wRWPRfGBCKyGX/CeIXrrVVsAAAAAQUIPAAAAAADpF6z7bp0kGB44cg75AhHr; expires=Tue, 23 Jul 2019 08:17:21 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=IOHVSF1Q/T9rFx+p6lKYhQAAAACaPz+yVOqUvT7GBj8LetSo; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=qMULc0NSTmcwj/EfejOiBnrrVVsAAAAAGa2R85Zs/ToBZ+ofkAYwaQ==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '10-19803098-19803105 NNNN CT(0 0 0) RT(1532357498095 31) q(0 0 0 -1) r(1 1) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/blogPost', {"name":"Blog post","fields":[{"id":"slug","name":"URL Slug","type":"Symbol","required":true}],"description":"super angry"}) + .reply(201, {"sys":{"space":{"sys":{"type":"Link","linkType":"Space","id":"bohepdihyxin"}},"id":"blogPost","type":"ContentType","createdAt":"2018-07-23T14:51:38.979Z","updatedAt":"2018-07-23T14:51:38.979Z","environment":{"sys":{"id":"env-integration","type":"Link","linkType":"Environment"}},"createdBy":{"sys":{"type":"Link","linkType":"User","id":"33kZDXNajFNmbngiu5MvUa"}},"updatedBy":{"sys":{"type":"Link","linkType":"User","id":"33kZDXNajFNmbngiu5MvUa"}},"version":1},"displayField":null,"name":"Blog post","description":"super angry","fields":[{"id":"slug","name":"URL Slug","type":"Symbol","localized":false,"required":true,"validations":[],"disabled":false,"omitted":false}]}, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:39 GMT', + 'ETag', + '"6d66930640e84b362a39e4a39cc3a77d"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35288', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '6', + 'X-Contentful-Request-Id', + 'b8f8746deb325862eaadcebecb9dd36b', + 'Content-Length', + '1027', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=oL+C/MPeRmWFbWASieoB2nrrVVsAAAAAQUIPAAAAAABNNwXV389UYmN/juGxt/RK; expires=Tue, 23 Jul 2019 08:17:21 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=maCmGamrvxQeRHtm6lKYhQAAAAAvBH+7+Gj1Fb0ua01Tmxlf; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=sX5bEZk0NjuIj/EfejOiBnrrVVsAAAAA9ho3+xJCVJw7wtLnBgZikg==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '10-19803121-19803123 NNNN CT(0 0 0) RT(1532357498342 33) q(0 0 0 -1) r(3 3) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/blogPost/published') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "blogPost", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:38.979Z", + "updatedAt": "2018-07-23T14:51:39.350Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "version": 2, + "firstPublishedAt": "2018-07-23T14:51:39.350Z", + "publishedCounter": 1, + "publishedAt": "2018-07-23T14:51:39.350Z", + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 1 + }, + "displayField": null, + "name": "Blog post", + "description": "super angry", + "fields": [ + { + "id": "slug", + "name": "URL Slug", + "type": "Symbol", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:39 GMT', + 'ETag', + 'W/"6db4dd0f90a012795114460e0ab3c42c"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35287', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + '18e1c9ce4528d02c37f691ac09fd15c3', + 'Content-Length', + '448', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=X23gzLDJTDG9+0R3d9WOJnvrVVsAAAAAQUIPAAAAAAD+Z7HfDFPvMgdb7cRh87G1; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=Flh6MsxAM0SWEiF46lKYhQAAAADjkTBj/hVVKKeiLSK0Zvrc; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=M5dONEVddD7Zj/EfejOiBnvrVVsAAAAAPjcFIQF4oM/UeVEpO15Hxw==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '2-25592639-25592642 NNNN CT(0 0 0) RT(1532357498757 33) q(0 0 0 -1) r(4 4) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/blogPost/editor_interface', {"controls":[{"fieldId":"slug","widgetId":"slugEditor"}]}) + .reply(200, {"controls":[{"fieldId":"slug","widgetId":"slugEditor"}],"sys":{"id":"default","type":"EditorInterface","space":{"sys":{"id":"bohepdihyxin","type":"Link","linkType":"Space"}},"version":2,"createdAt":"2018-07-23T14:51:39.441Z","createdBy":{"sys":{"id":"33kZDXNajFNmbngiu5MvUa","type":"Link","linkType":"User"}},"updatedAt":"2018-07-23T14:51:39.790Z","updatedBy":{"sys":{"type":"Link","linkType":"User","id":"33kZDXNajFNmbngiu5MvUa"}},"contentType":{"sys":{"id":"blogPost","type":"Link","linkType":"ContentType"}},"environment":{"sys":{"id":"env-integration","type":"Link","linkType":"Environment"}}}}, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:39 GMT', + 'ETag', + '"f7a1fe7fb04ae1320fd64d338e1e7a8a"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35286', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + 'f42763be3b47fcf2b45d39853680a7ba', + 'Content-Length', + '951', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=G0YjtzidRQ6LMBuoLLsPLnvrVVsAAAAAQUIPAAAAAAD8buLIHA5TbZHBWc/HUYJi; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=7jbJcCtd10oS4qSs6lKYhQAAAAAVFsxfNdD7IZBtr9CWd1I3; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=/oGNQ50uVmgYkPEfejOiBnvrVVsAAAAAej4XsPYKOtsx9ZBPKjuk/w==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '5-18171842-18171845 NNNN CT(0 0 0) RT(1532357499255 32) q(0 0 0 -1) r(2 2) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types/blogPost/editor_interface') + .reply(200, { + "sys": { + "id": "default", + "type": "EditorInterface", + "space": { + "sys": { + "id": "bohepdihyxin", + "type": "Link", + "linkType": "Space" + } + }, + "version": 2, + "createdAt": "2018-07-23T14:51:39.441Z", + "createdBy": { + "sys": { + "id": "33kZDXNajFNmbngiu5MvUa", + "type": "Link", + "linkType": "User" + } + }, + "updatedAt": "2018-07-23T14:51:39.790Z", + "updatedBy": { + "sys": { + "id": "33kZDXNajFNmbngiu5MvUa", + "type": "Link", + "linkType": "User" + } + }, + "contentType": { + "sys": { + "id": "blogPost", + "type": "Link", + "linkType": "ContentType" + } + }, + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + } + }, + "controls": [ + { + "fieldId": "slug", + "widgetId": "slugEditor" + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:40 GMT', + 'ETag', + '"c0e9a0146f99c2e47c8575eaa3c98143"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35285', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + '798227797ac540324c6e32e6925a738b', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=cTkuB3gJQTKQr8LezjaVtHvrVVsAAAAAQUIPAAAAAAAr0wUVUc5muUSV2LfAWXHw; expires=Tue, 23 Jul 2019 08:17:20 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=alOLVvbrhw3c/EH96lKYhQAAAADyJvhtYvDmiiuXBn1PH7SB; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=v5S2TiQ9WDdPkPEfejOiBnvrVVsAAAAASO8TZ8b/PeNxZGnmJ/V1vw==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '9-11227001-11227009 NNNN CT(0 0 0) RT(1532357499580 34) q(0 0 0 -1) r(2 2) U5', + 'X-CDN', + 'Incapsula', + + + 'Transfer-Encoding', + 'chunked' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types') + .query({"sys.id":{"in":"blogPost"}}) + .reply(200, { + "sys": { + "type": "Array" + }, + "total": 1, + "skip": 0, + "limit": 100, + "items": [ + { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "blogPost", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:38.979Z", + "updatedAt": "2018-07-23T14:51:39.350Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 1, + "version": 2, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 1, + "firstPublishedAt": "2018-07-23T14:51:39.350Z", + "publishedAt": "2018-07-23T14:51:39.350Z" + }, + "displayField": null, + "name": "Blog post", + "description": "super angry", + "fields": [ + { + "id": "slug", + "name": "URL Slug", + "type": "Symbol", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + } + ] + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:40 GMT', + 'ETag', + 'W/"1a5b610c8ad36648f2fb74e85b9d59d3"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35284', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + 'b90127a8ce095d87e5d4cff585f15958', + 'Content-Length', + '516', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=cOyp6ycfR9OT/RPTHjo1+3zrVVsAAAAAQUIPAAAAAADW8ErEM0B9zeW5DClaCGI8; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=ZYUkD+9X/VjtWILZ6lKYhQAAAAA6lQHguubCOa5oqM75QNUS; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=iBu1J82ybUGAkPEfejOiBnzrVVsAAAAAJKVn3JnGtG56RKo8FmxUBA==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '2-25592773-25592780 NNNN CT(0 0 0) RT(1532357499882 31) q(0 0 0 -1) r(1 1) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types/blogPost/editor_interface') + .reply(200, { + "sys": { + "id": "default", + "type": "EditorInterface", + "space": { + "sys": { + "id": "bohepdihyxin", + "type": "Link", + "linkType": "Space" + } + }, + "version": 2, + "createdAt": "2018-07-23T14:51:39.441Z", + "createdBy": { + "sys": { + "id": "33kZDXNajFNmbngiu5MvUa", + "type": "Link", + "linkType": "User" + } + }, + "updatedAt": "2018-07-23T14:51:39.790Z", + "updatedBy": { + "sys": { + "id": "33kZDXNajFNmbngiu5MvUa", + "type": "Link", + "linkType": "User" + } + }, + "contentType": { + "sys": { + "id": "blogPost", + "type": "Link", + "linkType": "ContentType" + } + }, + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + } + }, + "controls": [ + { + "fieldId": "slug", + "widgetId": "slugEditor" + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:40 GMT', + 'ETag', + '"c0e9a0146f99c2e47c8575eaa3c98143"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35283', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '7', + 'X-Contentful-Request-Id', + 'a55cb0b90a1f6a93b8a29ba99cd1e60d', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=SJHWAu3ZRySEXbmzdeApfXzrVVsAAAAAQUIPAAAAAAB001DBdMcffONAnje7kkAn; expires=Tue, 23 Jul 2019 08:17:24 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=vkBHcTb0gmq1NeCD6lKYhQAAAADhkr1R4Ldvoc5FnXjoPu1/; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=G1GUetQVPR/ckPEfejOiBnzrVVsAAAAACj7gcQT99VbJ6FtfV/WvKQ==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '1-17696281-17696282 NNNN CT(100 102 0) RT(1532357500125 34) q(0 0 2 -1) r(3 3) U5', + 'X-CDN', + 'Incapsula', + + + 'Transfer-Encoding', + 'chunked' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/locales') + .reply(200, { + "total":1, + "limit":100, + "skip":0, + "sys":{ + "type":"Array" + }, + "items":[ + { + "name":"U.S. English", + "internal_code":"en-US", + "code":"en-US", + "fallbackCode":null, + "default":true, + "contentManagementApi":true, + "contentDeliveryApi":true, + "optional":false, + "sys":{ + "type":"Locale", + "id":"0zK7OynpqVdcSetOBfe5P8", + "version":1, + "space":{ + "sys":{ + "type":"Link", + "linkType":"Space", + "id":"bohepdihyxin" + } + }, + "environment":{ + "sys":{ + "type":"Link", + "linkType":"Environment", + "id":"env-integration" + } + }, + "createdBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "createdAt":"2018-07-23T14:51:00Z", + "updatedBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedAt":"2018-07-23T14:51:00Z" + } + } + ] +} + +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'Cache-Control', + 'max-age=0', + 'CF-Organization-Id', + '33lrAejsx0jnNQeRJgZ3EO', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:41 GMT', + 'ETag', + 'W/"7e337906d0a6faa3de1b0ec7edd5b080"', + 'Referrer-Policy', + 'strict-origin-when-cross-origin', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35282', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + 'a32bbaba0e8ee24be3eb762642e0dd6a', + 'X-Download-Options', + 'noopen', + 'X-Frame-Options', + 'ALLOWALL', + 'X-Permitted-Cross-Domain-Policies', + 'none', + 'X-XSS-Protection', + '1; mode=block', + 'Content-Length', + '413', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=Y4W7QgzYSA2Qqd4Q9oD9U3zrVVsAAAAAQUIPAAAAAAC4CgpfaaKc8YpmqUvTlzEA; expires=Tue, 23 Jul 2019 08:17:20 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=q7b9KKJv1DSGAn8i6lKYhQAAAADoJqNI60FSYcT1pRJwn4ng; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=K3BeRpZ0ZloNkfEfejOiBnzrVVsAAAAAmE5kUB8bJLvF2ki+qKUsvg==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '9-11227105-11227108 NNNN CT(0 0 0) RT(1532357500554 37) q(0 0 0 -1) r(2 2) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/blogPost', {"name":"Blog post","displayField":null,"fields":[{"id":"slug","name":"URL Slug","type":"Symbol","localized":false,"required":true,"validations":[],"disabled":false,"omitted":false}],"description":"super angry"}) + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "blogPost", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:38.979Z", + "updatedAt": "2018-07-23T14:51:41.357Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 1, + "version": 3, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 1, + "firstPublishedAt": "2018-07-23T14:51:39.350Z", + "publishedAt": "2018-07-23T14:51:39.350Z" + }, + "displayField": null, + "name": "Blog post", + "description": "super angry", + "fields": [ + { + "id": "slug", + "name": "URL Slug", + "type": "Symbol", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:41 GMT', + 'ETag', + 'W/"5777af3098c8a13b7a593c9588e74262"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35281', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + '86c4f6b3e79b1eecb24552ff76d74890', + 'Content-Length', + '452', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=NjQ2PZgYR3KV4vLjOZNmVn3rVVsAAAAAQUIPAAAAAAA4E2UJmnyuHVY9DMqjUe/K; expires=Tue, 23 Jul 2019 08:17:24 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=MRNeJ4IElCVHpxc06lKYhQAAAACAzNq+/Bc7QSr40UkTuy7p; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=ljPdfPKziS1hkfEfejOiBn3rVVsAAAAAwrXismU/VPZ2hR8ynOGjDQ==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '1-17696313-17696314 NNNN CT(0 0 0) RT(1532357500809 36) q(0 0 0 -1) r(4 4) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/blogPost/published') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "blogPost", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:38.979Z", + "updatedAt": "2018-07-23T14:51:41.819Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 2, + "version": 4, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 3, + "firstPublishedAt": "2018-07-23T14:51:39.350Z", + "publishedAt": "2018-07-23T14:51:41.819Z" + }, + "displayField": null, + "name": "Blog post", + "description": "super angry", + "fields": [ + { + "id": "slug", + "name": "URL Slug", + "type": "Symbol", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:42 GMT', + 'ETag', + 'W/"9bdd660f49805e58a658be35bf68d75d"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35280', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '7', + 'X-Contentful-Request-Id', + '9ae459ad3ba063ebfa546912c9f93853', + 'Content-Length', + '459', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=zeFF951zRKyVGl4rjM+Ann3rVVsAAAAAQUIPAAAAAAAxk+izNZMaxMuo8+qBbG62; expires=Tue, 23 Jul 2019 08:17:33 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=t99qZ3JuWgFUoJ+L6lKYhQAAAAA5XUhfjtB0zCeMVSezqpdq; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=LzVxTxvw+mK4kfEfejOiBn3rVVsAAAAANVQL9txRV0jBO9iAzDJrUg==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '8-6493088-6493091 NNNN CT(0 0 0) RT(1532357501282 38) q(0 0 0 -1) r(3 3) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/blogPost/editor_interface', {"controls":[{"fieldId":"slug","widgetId":"singleLine"}]}) + .reply(200, {"controls":[{"fieldId":"slug","widgetId":"singleLine"}],"sys":{"id":"default","type":"EditorInterface","space":{"sys":{"id":"bohepdihyxin","type":"Link","linkType":"Space"}},"version":4,"createdAt":"2018-07-23T14:51:39.441Z","createdBy":{"sys":{"id":"33kZDXNajFNmbngiu5MvUa","type":"Link","linkType":"User"}},"updatedAt":"2018-07-23T14:51:42.370Z","updatedBy":{"sys":{"type":"Link","linkType":"User","id":"33kZDXNajFNmbngiu5MvUa"}},"contentType":{"sys":{"id":"blogPost","type":"Link","linkType":"ContentType"}},"environment":{"sys":{"id":"env-integration","type":"Link","linkType":"Environment"}}}}, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:42 GMT', + 'ETag', + '"5f4713867a91463fd8b396f5001b34c8"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35279', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + 'cc4958fcbddebf1100cd1b1300222a06', + 'Content-Length', + '951', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=6tSQSyQoQKmCW7hKT5R6UH7rVVsAAAAAQUIPAAAAAACJ8/cekSdg1amplgwX7qXo; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=jaZWWebOBSRNptRa6lKYhQAAAAAvgL3IoydiibcvUr8MFdav; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=6cfuNt7KhTQFkvEfejOiBn7rVVsAAAAANriW5gSaiZ2EIB2fTDBdlQ==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '0-10400865-10400866 NNNN CT(0 0 0) RT(1532357501804 36) q(0 0 0 -1) r(2 2) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types/blogPost/editor_interface') + .reply(200, { + "sys": { + "id": "default", + "type": "EditorInterface", + "space": { + "sys": { + "id": "bohepdihyxin", + "type": "Link", + "linkType": "Space" + } + }, + "version": 4, + "createdAt": "2018-07-23T14:51:39.441Z", + "createdBy": { + "sys": { + "id": "33kZDXNajFNmbngiu5MvUa", + "type": "Link", + "linkType": "User" + } + }, + "updatedAt": "2018-07-23T14:51:42.370Z", + "updatedBy": { + "sys": { + "id": "33kZDXNajFNmbngiu5MvUa", + "type": "Link", + "linkType": "User" + } + }, + "contentType": { + "sys": { + "id": "blogPost", + "type": "Link", + "linkType": "ContentType" + } + }, + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + } + }, + "controls": [ + { + "fieldId": "slug", + "widgetId": "singleLine" + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:42 GMT', + 'ETag', + '"40eb52c2dcd11db3b15effafb2e23e58"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35278', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + '9fab4aea147c6d81b0f1583c22691387', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=YRaZpAGYTYGJjvOBgDhBu37rVVsAAAAAQUIPAAAAAABPnXLOYYdbFjw8E2xgzXyV; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=9niSVAlwtBs22Feh6lKYhQAAAACn/RFr3Ga9pi2gdoFii02w; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=dW/pfcNbFDIzkvEfejOiBn7rVVsAAAAA7sdkFvmLA1YuIJkjiOAgqg==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '2-25593098-25593100 NNNN CT(0 0 0) RT(1532357502225 29) q(0 0 0 -1) r(1 1) U5', + 'X-CDN', + 'Incapsula', + + + 'Transfer-Encoding', + 'chunked' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types') + .query({"sys.id":{"in":"blogPost"}}) + .reply(200, { + "sys": { + "type": "Array" + }, + "total": 1, + "skip": 0, + "limit": 100, + "items": [ + { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "blogPost", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:38.979Z", + "updatedAt": "2018-07-23T14:51:41.819Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 2, + "version": 4, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 3, + "firstPublishedAt": "2018-07-23T14:51:39.350Z", + "publishedAt": "2018-07-23T14:51:41.819Z" + }, + "displayField": null, + "name": "Blog post", + "description": "super angry", + "fields": [ + { + "id": "slug", + "name": "URL Slug", + "type": "Symbol", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + } + ] + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:43 GMT', + 'ETag', + 'W/"212175a8ddaba6da7e46a7badd435386"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35277', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '7', + 'X-Contentful-Request-Id', + '4fe85166c81b78926605f792f48773be', + 'Content-Length', + '524', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=g9qHjXbiS7GSI4APl64OTH7rVVsAAAAAQUIPAAAAAACx0sQcvkP2+ZfeqwypW2NQ; expires=Tue, 23 Jul 2019 08:17:21 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=1tt0fAuOxHTrCcil6lKYhQAAAADomQYs8k574BhdJNQNb8FP; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=tQyVIR5R2F1fkvEfejOiBn7rVVsAAAAARBzo4fwj37w3EQgIYTfgwg==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '10-19803458-19803463 NNNN CT(0 0 0) RT(1532357502459 35) q(0 0 0 -1) r(2 2) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types/blogPost/editor_interface') + .reply(200, { + "sys": { + "id": "default", + "type": "EditorInterface", + "space": { + "sys": { + "id": "bohepdihyxin", + "type": "Link", + "linkType": "Space" + } + }, + "version": 4, + "createdAt": "2018-07-23T14:51:39.441Z", + "createdBy": { + "sys": { + "id": "33kZDXNajFNmbngiu5MvUa", + "type": "Link", + "linkType": "User" + } + }, + "updatedAt": "2018-07-23T14:51:42.370Z", + "updatedBy": { + "sys": { + "id": "33kZDXNajFNmbngiu5MvUa", + "type": "Link", + "linkType": "User" + } + }, + "contentType": { + "sys": { + "id": "blogPost", + "type": "Link", + "linkType": "ContentType" + } + }, + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + } + }, + "controls": [ + { + "fieldId": "slug", + "widgetId": "singleLine" + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:43 GMT', + 'ETag', + '"40eb52c2dcd11db3b15effafb2e23e58"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35276', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + 'b209f9c177e19e6630ef8e30be08d714', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=C9Auos8kQmmv8B1WjWlP5H/rVVsAAAAAQUIPAAAAAAA3LsuyKHAdMs0W4P9Lyw3i; expires=Tue, 23 Jul 2019 08:17:20 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=L+DEbVh48W7yIq2W6lKYhQAAAAB9kQleC7BN/TDllnpNDNLk; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=HLoLe9E4uwOokvEfejOiBn/rVVsAAAAAruywd6YW/8iv+GlY53DZjA==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '9-11227252-11227255 NNNN CT(104 104 0) RT(1532357502698 33) q(0 0 2 -1) r(3 3) U5', + 'X-CDN', + 'Incapsula', + + + 'Transfer-Encoding', + 'chunked' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/locales') + .reply(200, { + "total":1, + "limit":100, + "skip":0, + "sys":{ + "type":"Array" + }, + "items":[ + { + "name":"U.S. English", + "internal_code":"en-US", + "code":"en-US", + "fallbackCode":null, + "default":true, + "contentManagementApi":true, + "contentDeliveryApi":true, + "optional":false, + "sys":{ + "type":"Locale", + "id":"0zK7OynpqVdcSetOBfe5P8", + "version":1, + "space":{ + "sys":{ + "type":"Link", + "linkType":"Space", + "id":"bohepdihyxin" + } + }, + "environment":{ + "sys":{ + "type":"Link", + "linkType":"Environment", + "id":"env-integration" + } + }, + "createdBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "createdAt":"2018-07-23T14:51:00Z", + "updatedBy":{ + "sys":{ + "type":"Link", + "linkType":"User", + "id":"33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedAt":"2018-07-23T14:51:00Z" + } + } + ] +} + +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'Cache-Control', + 'max-age=0', + 'CF-Organization-Id', + '33lrAejsx0jnNQeRJgZ3EO', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:43 GMT', + 'ETag', + 'W/"7e337906d0a6faa3de1b0ec7edd5b080"', + 'Referrer-Policy', + 'strict-origin-when-cross-origin', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35275', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + '2cce82bcf7cd1f55fbb11c1243afd15d', + 'X-Download-Options', + 'noopen', + 'X-Frame-Options', + 'ALLOWALL', + 'X-Permitted-Cross-Domain-Policies', + 'none', + 'X-XSS-Protection', + '1; mode=block', + 'Content-Length', + '413', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=x7yl2PgVRFuwo6y2tkl8P3/rVVsAAAAAQUIPAAAAAABIHoFMfIGaghLpp749ppUY; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=De4MFLn73BfgfGNg6lKYhQAAAADgetiZBqlrNi1hfx5zi9E9; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=pTNCHj+AQC8ak/EfejOiBn/rVVsAAAAAUYil+/0dtvfsIYDqLA9AGw==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '2-25593219-25593221 NNNN CT(101 100 0) RT(1532357503247 32) q(0 0 2 -1) r(3 3) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/blogPost', {"name":"Blog post","displayField":null,"fields":[{"id":"slug","name":"URL Slug","type":"Symbol","localized":false,"required":true,"validations":[],"disabled":false,"omitted":false}],"description":"super angry"}) + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "blogPost", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:38.979Z", + "updatedAt": "2018-07-23T14:51:44.231Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 2, + "version": 5, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 3, + "firstPublishedAt": "2018-07-23T14:51:39.350Z", + "publishedAt": "2018-07-23T14:51:41.819Z" + }, + "displayField": null, + "name": "Blog post", + "description": "super angry", + "fields": [ + { + "id": "slug", + "name": "URL Slug", + "type": "Symbol", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:44 GMT', + 'ETag', + 'W/"9e1476f7494bb86d1e06750f153a0cd1"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35274', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + '7731a6708712f7d5b1a21c5999ca9c99', + 'Content-Length', + '464', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=kPXNh0gcQuy63mp7NroUuH/rVVsAAAAAQUIPAAAAAABy/ljxWzIbmRMUkQ1SRJpE; expires=Tue, 23 Jul 2019 08:17:21 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=pYn7e5utImQcpZlj6lKYhQAAAABSg3Fes45QidbqhCqYhPff; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=Auq8XZ+yEzpDk/EfejOiBn/rVVsAAAAAg4nsmkLaUZFZ9dDBXcHqbg==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '10-19803533-19803538 NNNN CT(0 0 0) RT(1532357503679 33) q(0 0 0 -1) r(1 1) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/blogPost/published') + .reply(200, { + "sys": { + "space": { + "sys": { + "type": "Link", + "linkType": "Space", + "id": "bohepdihyxin" + } + }, + "id": "blogPost", + "type": "ContentType", + "createdAt": "2018-07-23T14:51:38.979Z", + "updatedAt": "2018-07-23T14:51:44.507Z", + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + }, + "createdBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedCounter": 3, + "version": 6, + "publishedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "publishedVersion": 5, + "firstPublishedAt": "2018-07-23T14:51:39.350Z", + "publishedAt": "2018-07-23T14:51:44.507Z" + }, + "displayField": null, + "name": "Blog post", + "description": "super angry", + "fields": [ + { + "id": "slug", + "name": "URL Slug", + "type": "Symbol", + "localized": false, + "required": true, + "validations": [], + "disabled": false, + "omitted": false + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:44 GMT', + 'ETag', + 'W/"cd49fd0ef76fe5b7b054930e91177d09"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35273', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + '81286a4840ba0ffe44b313afd1843742', + 'Content-Length', + '461', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=TAbJi6LsT4GGK69hxOT3U4DrVVsAAAAAQUIPAAAAAABCC7WO0NqsSbhue+SmUYJM; expires=Tue, 23 Jul 2019 08:17:20 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=EKfzLsC6m1Nwz1dK6lKYhQAAAADZM1zLZyNSC+hkiojtog46; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=MOo0Qdg/YHOFk/EfejOiBoDrVVsAAAAAAYNhUIczgjLF4vFDbVuhKQ==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '9-11227359-11227365 NNNN CT(0 0 0) RT(1532357503957 31) q(0 0 0 -1) r(4 4) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .put('/spaces/bohepdihyxin/environments/env-integration/content_types/blogPost/editor_interface', {"controls":[{"fieldId":"slug","widgetId":"slugEditor","settings":{"helpText":"This is the slug for the entry, it will be used for the URL"}}]}) + .reply(200, { + "controls": [ + { + "fieldId": "slug", + "widgetId": "slugEditor", + "settings": { + "helpText": "This is the slug for the entry, it will be used for the URL" + } + } + ], + "sys": { + "id": "default", + "type": "EditorInterface", + "space": { + "sys": { + "id": "bohepdihyxin", + "type": "Link", + "linkType": "Space" + } + }, + "version": 6, + "createdAt": "2018-07-23T14:51:39.441Z", + "createdBy": { + "sys": { + "id": "33kZDXNajFNmbngiu5MvUa", + "type": "Link", + "linkType": "User" + } + }, + "updatedAt": "2018-07-23T14:51:45.291Z", + "updatedBy": { + "sys": { + "type": "Link", + "linkType": "User", + "id": "33kZDXNajFNmbngiu5MvUa" + } + }, + "contentType": { + "sys": { + "id": "blogPost", + "type": "Link", + "linkType": "ContentType" + } + }, + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + } + } +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:45 GMT', + 'ETag', + 'W/"daebe21e7f57e0f9ab4acf5e3eb02726"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35272', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '9', + 'X-Contentful-Request-Id', + '4677cf027ef734fd45da70b3be9a32ba', + 'Content-Length', + '403', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=YbUeBd6YR/CIK47Ur/v3t4HrVVsAAAAAQUIPAAAAAAC2aqEDXTK6cDd7npC/t+yh; expires=Tue, 23 Jul 2019 08:17:21 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=3QXAYVIedzJ3fzu+6lKYhQAAAAA9sxO6DYvckkq+lx8HQ2jz; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=GNHRACkDPnsAlPEfejOiBoHrVVsAAAAAyNTyZjL66o4o6vkHNxQh0w==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '10-19803625-19803629 NNNN CT(109 110 0) RT(1532357504527 42) q(0 0 2 -1) r(5 5) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .get('/spaces/bohepdihyxin/environments/env-integration/content_types/blogPost/editor_interface') + .reply(200, { + "sys": { + "id": "default", + "type": "EditorInterface", + "space": { + "sys": { + "id": "bohepdihyxin", + "type": "Link", + "linkType": "Space" + } + }, + "version": 6, + "createdAt": "2018-07-23T14:51:39.441Z", + "createdBy": { + "sys": { + "id": "33kZDXNajFNmbngiu5MvUa", + "type": "Link", + "linkType": "User" + } + }, + "updatedAt": "2018-07-23T14:51:45.291Z", + "updatedBy": { + "sys": { + "id": "33kZDXNajFNmbngiu5MvUa", + "type": "Link", + "linkType": "User" + } + }, + "contentType": { + "sys": { + "id": "blogPost", + "type": "Link", + "linkType": "ContentType" + } + }, + "environment": { + "sys": { + "id": "env-integration", + "type": "Link", + "linkType": "Environment" + } + } + }, + "controls": [ + { + "fieldId": "slug", + "settings": { + "helpText": "This is the slug for the entry, it will be used for the URL" + }, + "widgetId": "slugEditor" + } + ] +} +, [ 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'CF-Space-Id', + 'bohepdihyxin', + + + 'Content-Type', + 'application/vnd.contentful.management.v1+json', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:45 GMT', + 'ETag', + 'W/"16a54c596e693f5ab03bfcceccddcbf9"', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35271', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '8', + 'X-Contentful-Request-Id', + 'f94b9e264ab1e30a9b5f7d79e88afa10', + 'Content-Length', + '392', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=M9R4k/zoTUO4vSnB7sXNX4HrVVsAAAAAQUIPAAAAAAB2vlJd+9fJHcSL/ehWwWrc; expires=Tue, 23 Jul 2019 08:17:24 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=/2JZEhGOKVHqULxq6lKYhQAAAACCE11Fx++CRot4EK6G4U10; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=oyQ2SWm6tFhOlPEfejOiBoHrVVsAAAAABnB2ygerEElZel60Fp/mZg==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '1-17696566-17696568 NNNN CT(0 0 0) RT(1532357505093 31) q(0 0 0 -1) r(1 1) U5', + 'X-CDN', + 'Incapsula' ]); + + +nock('https://api.contentful.com:443', {"encodedQueryParams":true}) + .delete('/spaces/bohepdihyxin/environments/env-integration') + .reply(204, "", [ 'Accept-Ranges', + 'bytes', + 'Access-Control-Allow-Headers', + 'Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature', + 'Access-Control-Allow-Methods', + 'DELETE,GET,HEAD,POST,PUT,OPTIONS', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Expose-Headers', + 'Etag', + 'Access-Control-Max-Age', + '1728000', + 'Cache-Control', + 'max-age=0', + 'CF-Organization-Id', + '33lrAejsx0jnNQeRJgZ3EO', + 'CF-Space-Id', + 'bohepdihyxin', + 'Content-Type', + 'application/octet-stream', + 'Contentful-Api', + 'cma', + 'Date', + 'Mon, 23 Jul 2018 14:51:46 GMT', + 'Referrer-Policy', + 'strict-origin-when-cross-origin', + 'Server', + 'Contentful', + 'Strict-Transport-Security', + 'max-age=15768000', + 'X-Content-Type-Options', + 'nosniff', + 'X-Contentful-RateLimit-Hour-Limit', + '36000', + 'X-Contentful-RateLimit-Hour-Remaining', + '35270', + 'X-Contentful-RateLimit-Reset', + '0', + 'X-Contentful-RateLimit-Second-Limit', + '10', + 'X-Contentful-RateLimit-Second-Remaining', + '7', + 'X-Contentful-Request-Id', + '15e1a792887e22dde266cd98c50230a5', + 'X-Download-Options', + 'noopen', + 'X-Frame-Options', + 'ALLOWALL', + 'X-Permitted-Cross-Domain-Policies', + 'none', + 'X-XSS-Protection', + '1; mode=block', + 'Connection', + 'Close', + 'Set-Cookie', + 'visid_incap_673446=qLxun5O6TUq27nXRonMud4HrVVsAAAAAQUIPAAAAAACV2fJqMnQudgp6+QBkFTsL; expires=Tue, 23 Jul 2019 08:17:45 GMT; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'nlbi_673446=nSoYQyN/O1BNTNXo6lKYhQAAAAA9EzI1wRqnngCwGf+zJHci; path=/; Domain=.contentful.com', + 'Set-Cookie', + 'incap_ses_478_673446=y/87RpNnEgOnlPEfejOiBoHrVVsAAAAAQNAZ76NZgnHS5avebAhHdQ==; path=/; Domain=.contentful.com', + 'X-Iinfo', + '2-25593366-25593369 NNNN CT(0 0 0) RT(1532357505336 32) q(0 0 0 -1) r(4 4) U5', + 'X-CDN', + 'Incapsula' ]); diff --git a/test/integration/migration.spec.js b/test/integration/migration.spec.js index f331fc68a..cb91ace99 100644 --- a/test/integration/migration.spec.js +++ b/test/integration/migration.spec.js @@ -18,9 +18,15 @@ const changeEditorInterfaceWithExistingContentTypeAddingHelpText = require('../. const { createMigrationParser } = require('../../built/lib/migration-parser'); const co = Bluebird.coroutine; -const uuid = require('uuid'); -const ENVIRONMENT_ID = uuid.v4(); +const record = require('../record'); + +const recorder = record('contentful-migration-integration'); + +before(recorder.before); +after(recorder.after); + +const ENVIRONMENT_ID = 'env-integration'; const SOURCE_TEST_SPACE = process.env.CONTENTFUL_INTEGRATION_SOURCE_SPACE; diff --git a/test/record.js b/test/record.js new file mode 100644 index 000000000..0ae6e0933 --- /dev/null +++ b/test/record.js @@ -0,0 +1,62 @@ +const nock = require('nock'); +const path = require('path'); +const fs = require('fs'); +const zlib = require('zlib'); + +module.exports = function (name, options) { + // options tell us where to store our fixtures + options = options || {}; + const fixtureFolder = options.fixtureFolder || 'fixtures'; + const fp = path.resolve(__dirname, path.join(fixtureFolder, name + '.js')); + // `hasFixture` indicates whether the test has fixtures we should read, + // or doesn't, so we should record and save them. + // the environment variable `NOCK_RECORD` can be used to force a new recording. + let hasFixture = process.env.NOCK_RECORD === 1; + return { + // starts recording, or ensure the fixtures exist + before: function () { + if (!hasFixture) { + try { + require(fp); + hasFixture = true; + } catch (e) { + nock.recorder.rec({ + dont_print: true + }); + } + } else { + hasFixture = false; + nock.recorder.rec({ + dont_print: true + }); + } + }, + // saves our recording if fixtures didn't already exist + after: function (done) { + if (!hasFixture) { + const fixtures = nock.recorder.play(); + const decodedFixtures = fixtures.map(fixture => { + if (fixture.indexOf('gzip') !== -1) { + const matches = fixture.match(/reply\(\d{3},\s*"([a-f0-9]+)"/); + if (matches) { + const gzipped = matches[1]; + const response = Buffer.from(gzipped, 'hex'); + const decompressed = zlib.gunzipSync(response).toString('utf8'); + fixture = fixture.replace(`"${gzipped}"`, decompressed); + fixture = fixture.replace(`'Content-Encoding',`, ''); + fixture = fixture.replace(`'gzip',`, ''); + } + return fixture; + } else { + return fixture; + } + }); + const text = + "const nock = require('nock');\n" + decodedFixtures.join('\n'); + fs.writeFile(fp, text, done); + } else { + done(); + } + } + }; +};