Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/contract/basic-verification.test.docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ describe('basic verification docker endpoint test suite', function () {
describe('when the certificate is a verifiable presentation', function () {
describe('and it is valid', function () {
it('should return the expected payload', async function () {
const output = await fetch('http://localhost:9000/credentials/verify', {
const output = await fetch('http://localhost:9000/presentations/verify', {
body: JSON.stringify({
verifiableCredential: verifiablePresentationFixture as any
verifiablePresentation: verifiablePresentationFixture as any
} as APIPayload),
method: 'POST',
headers: { 'Content-Type': 'application/json' }
Expand Down Expand Up @@ -109,9 +109,9 @@ describe('basic verification docker endpoint test suite', function () {
describe('when the certificate is a verifiable presentation', function () {
describe('and it is not valid', function () {
it('should return the expected payload', async function () {
const output = await fetch('http://localhost:9000/credentials/verify', {
const output = await fetch('http://localhost:9000/presentations/verify', {
body: JSON.stringify({
verifiableCredential: failingVerifiablePresentationFixture as any
verifiablePresentation: failingVerifiablePresentationFixture as any
} as APIPayload),
method: 'POST',
headers: { 'Content-Type': 'application/json' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ describe('verbose verification docker endpoint test suite', function () {
describe('given the verifiable presentation is valid', function () {
beforeAll(async function () {
const fixture = JSON.parse(JSON.stringify(verifiablePresentationFixture));
output = await fetch('http://localhost:9000/credentials/verify/verbose', {
output = await fetch('http://localhost:9000/presentations/verify/verbose', {
body: JSON.stringify({
verifiableCredential: fixture
verifiablePresentation: fixture
} as APIPayload),
method: 'POST',
headers: { 'Content-Type': 'application/json' }
Expand Down Expand Up @@ -96,9 +96,9 @@ describe('verbose verification docker endpoint test suite', function () {
describe('given the certificate is invalid', function () {
beforeAll(async function () {
const fixture = JSON.parse(JSON.stringify(failingVerifiablePresentationFixture));
output = await fetch('http://localhost:9000/credentials/verify/verbose', {
output = await fetch('http://localhost:9000/presentations/verify/verbose', {
body: JSON.stringify({
verifiableCredential: fixture
verifiablePresentation: fixture
} as APIPayload),
method: 'POST',
headers: { 'Content-Type': 'application/json' }
Expand Down