const headers = {
  'CVE-API-ORG': 'mitre',
  'content-type': 'application/json',
  'CVE-API-USER': 'test_secretariat_0@mitre.org',
  'CVE-API-KEY': 'TCF25YM-39C4H6D-KA32EGF-V5XSHN3'
}

const nonSecretariatUserHeaders = {
  'CVE-API-ORG': 'win_5',
  'CVE-API-Key': 'TCF25YM-39C4H6D-KA32EGF-V5XSHN3',
  'CVE-API-USER': 'jasminesmith@win_5.com'
}

const nonSecretariatUserHeadersWithAdp2 = {
  'CVE-API-ORG': 'range_4',
  'CVE-API-Key': 'TCF25YM-39C4H6D-KA32EGF-V5XSHN3',
  'CVE-API-USER': 'scottmitchell@range_4.com'
}

const badNonSecretariatUserHeaders = {
  'CVE-API-ORG': 'activity_6',
  'CVE-API-Key': 'TCF25YM-39C4H6D-KA32EGF-V5XSHN3',
  'CVE-API-USER': 'benjaminsimmons@activity_6.com'
}

const testCve = {
  cnaContainer: {
    affected: [
      {
        vendor: 'n/a',
        product: 'n/a',
        versions: [
          {
            version: 'n/a',
            status: 'unknown'
          }
        ]
      }
    ],
    descriptions: [
      {
        lang: 'en',
        value: 'Cross-site scripting (XSS) vulnerability in Revive Adserver before 4.0.1 allows remote authenticated users to inject arbitrary web script or HTML via the user\'s email address.'
      }
    ],
    problemTypes: [
      {
        descriptions: [
          {
            description: 'n/a',
            lang: 'eng',
            type: 'text'
          }
        ]
      }
    ],
    providerMetadata: {
      orgId: '9cbfeea8-dea2-4923-b772-1ab41730e742'
    },
    references: [
      {
        name: '[oss-security] 20170202 Re: CVE request: multiples vulnerabilities in Revive Adserver',
        refsource: 'MLIST',
        url: 'http://www.openwall.com/lists/oss-security/2017/02/02/3'
      },
      {
        name: 'https://www.revive-adserver.com/security/revive-sa-2017-001/',
        refsource: 'CONFIRM',
        url: 'https://www.revive-adserver.com/security/revive-sa-2017-001/'
      },
      {
        name: '95875',
        refsource: 'BID',
        url: 'http://www.securityfocus.com/bid/95875'
      }
    ]
  }
}

const testCveEdited = {
  cnaContainer: {
    affected: [
      {
        vendor: 'n/a',
        product: 'n/a',
        versions: [
          {
            version: 'n/a',
            status: 'unknown'
          }
        ]
      }
    ],
    descriptions: [
      {
        lang: 'en',
        value: 'Cross-site scripting 2 (XSS) vulnerability in Revive Adserver before 4.0.1 allows remote authenticated users to inject arbitrary web script or HTML via the user\'s email address.'
      }
    ],
    problemTypes: [
      {
        descriptions: [
          {
            description: 'n/a',
            lang: 'eng',
            type: 'text'
          }
        ]
      }
    ],
    providerMetadata: {
      orgId: '9cbfeea8-dea2-4923-b772-1ab41730e742'
    },
    references: [
      {
        name: '[oss-security] 20170202 Re: CVE request: multiples vulnerabilities in Revive Adserver',
        refsource: 'MLIST',
        url: 'http://www.openwall.com/lists/oss-security/2017/02/02/3'
      },
      {
        name: 'https://www.revive-adserver.com/security/revive-sa-2017-001/',
        refsource: 'CONFIRM',
        url: 'https://www.revive-adserver.com/security/revive-sa-2017-001/'
      },
      {
        name: '95875',
        refsource: 'BID',
        url: 'http://www.securityfocus.com/bid/95875'
      }
    ]
  }

}

const testAdp = {

  adpContainer: {
    affected: [
      {
        vendor: 'n/a',
        product: 'n/a',
        versions: [
          {
            version: 'n/a',
            status: 'unknown'
          }
        ]
      }
    ],
    descriptions: [
      {
        lang: 'en',
        value: "Cross-site scripting (XSS) vulnerability in Revive Adserver before 4.0.1 allows remote authenticated users to inject arbitrary web script or HTML via the user's email address."
      }
    ],
    problemTypes: [
      {
        descriptions: [
          {
            description: 'n/a',
            lang: 'eng',
            type: 'text'
          }
        ]
      }
    ],
    providerMetadata: {
      orgId: '9cbfeea8-dea2-4923-b772-1ab41730e742'
    },
    references: [
      {
        name: '[oss-security] 20170202 Re: CVE request: multiples vulnerabilities in Revive Adserver',
        refsource: 'MLIST',
        url: 'http://www.openwall.com/lists/oss-security/2017/02/02/3'
      },
      {
        name: 'https://www.revive-adserver.com/security/revive-sa-2017-001/',
        refsource: 'CONFIRM',
        url: 'https://www.revive-adserver.com/security/revive-sa-2017-001/'
      },
      {
        name: '95875',
        refsource: 'BID',
        url: 'http://www.securityfocus.com/bid/95875'
      }
    ]
  }
}

const testAdp2 = {

  adpContainer: {
    affected: [
      {
        vendor: 'n/a',
        product: 'n/a',
        versions: [
          {
            version: 'n/a',
            status: 'unknown'
          }
        ]
      }
    ],
    descriptions: [
      {
        lang: 'en',
        value: "Cross-site scripting2 (XSS) vulnerability in Revive Adserver before 4.0.1 allows remote authenticated users to inject arbitrary web script or HTML via the user's email address."
      }
    ],
    problemTypes: [
      {
        descriptions: [
          {
            description: 'n/a',
            lang: 'eng',
            type: 'text'
          }
        ]
      }
    ],
    providerMetadata: {
    },
    references: [
      {
        name: '[oss-security] 20170202 Re: CVE request: multiples vulnerabilities in Revive Adserver',
        refsource: 'MLIST',
        url: 'http://www.openwall.com/lists/oss-security/2017/02/02/3'
      },
      {
        name: 'https://www.revive-adserver.com/security/revive-sa-2017-001/',
        refsource: 'CONFIRM',
        url: 'https://www.revive-adserver.com/security/revive-sa-2017-001/'
      },
      {
        name: '95875',
        refsource: 'BID',
        url: 'http://www.securityfocus.com/bid/95875'
      }
    ]
  }
}

module.exports = {
  headers, nonSecretariatUserHeaders, badNonSecretariatUserHeaders, nonSecretariatUserHeadersWithAdp2, testCve, testCveEdited, testAdp, testAdp2
}
