Changeset View
Changeset View
Standalone View
Standalone View
cypress/integration/errors.spec.js
Show First 20 Lines • Show All 118 Lines • ▼ Show 20 Lines | it(`should display NotFoundExc for incorrect origin_url | ||||
'without origin information: ' + | 'without origin information: ' + | ||||
'/browse/content/sha1_git:' + | '/browse/content/sha1_git:' + | ||||
origin.content[0].sha1git + '/' | origin.content[0].sha1git + '/' | ||||
}); | }); | ||||
}); | }); | ||||
}); | }); | ||||
context('For invalid data', function() { | context('For invalid data', function() { | ||||
it(`should display 400 for invalid checksum for | it(`should display 400 for invalid checksum for | ||||
directory, snapshot, revision, content`, function() { | directory, snapshot, revision, content`, function() { | ||||
const types = ['directory', 'snapshot', 'revision', 'content']; | const types = ['directory', 'snapshot', 'revision', 'content']; | ||||
for (let type of types) { | for (let type of types) { | ||||
const url = this.Urls[`browse_${type}`](invalidChecksum); | const url = this.Urls[`browse_${type}`](invalidChecksum); | ||||
urlShouldShowError(url, { | urlShouldShowError(url, { | ||||
code: '400', | code: '400', | ||||
msg: 'BadInputExc: Invalid checksum query string ' + | msg: 'BadInputExc: Invalid checksum query string ' + | ||||
invalidChecksum | invalidChecksum | ||||
Show All 13 Lines |