Test #75
Annotations
30 errors
|
packages/uma/test/unit/routes/Introspection.test.ts > Introspection > returns the token.:
packages/uma/test/unit/routes/Introspection.test.ts#L42
AssertionError: expected { status: 200, body: { requestClaims: undefined, active: true } } to deeply equal { status: 200, body: { key: 'value', active: true } }
- Expected
+ Received
{
"body": {
"active": true,
- "key": "value",
+ "requestClaims": undefined,
},
"status": 200,
}
❯ packages/uma/test/unit/routes/Introspection.test.ts:42:5
|
|
packages/uma/test/unit/dialog/BaseNegotiator.test.ts > BaseNegotiator > processes the credentials if they are provided.:
packages/uma/test/unit/dialog/BaseNegotiator.test.ts#L156
AssertionError: expected last "spy" call to have been called with [ { permissions: { resource_id: 'id1', resource_scopes: [ 'scope1' ] } } ]
- Expected
+ Received
@@ -5,6 +5,10 @@
"resource_scopes": [
"scope1",
],
},
},
+ {
+ "claim1": "value1",
+ "claim2": "value2",
+ },
]
❯ packages/uma/test/unit/dialog/BaseNegotiator.test.ts:156:36
|
|
packages/uma/test/unit/dialog/BaseNegotiator.test.ts > BaseNegotiator > uses the stored ticket if it is known.:
packages/uma/test/unit/dialog/BaseNegotiator.test.ts#L132
AssertionError: expected last "spy" call to have been called with [ { permissions: { resource_id: 'id1', resource_scopes: [ 'scope1' ] } } ]
- Expected
+ Received
@@ -5,6 +5,7 @@
"resource_scopes": [
"scope1",
],
},
},
+ undefined,
]
❯ packages/uma/test/unit/dialog/BaseNegotiator.test.ts:132:36
|
|
packages/uma/test/unit/dialog/BaseNegotiator.test.ts > BaseNegotiator > returns the token if everything was successful.:
packages/uma/test/unit/dialog/BaseNegotiator.test.ts#L79
AssertionError: expected last "spy" call to have been called with [ { permissions: { resource_id: 'id1', resource_scopes: [ 'scope1' ] } } ]
- Expected
+ Received
@@ -5,6 +5,7 @@
"resource_scopes": [
"scope1",
],
},
},
+ undefined,
]
❯ packages/uma/test/unit/dialog/BaseNegotiator.test.ts:79:36
|
|
packages/css/test/unit/uma/UmaClient.test.ts > UmaClient > verifyOpaqueToken > returns the introspected payload if the token is active and valid.:
packages/css/test/unit/uma/UmaClient.test.ts#L384
AssertionError: promise rejected "Error: The provided UMA RPT is not active." instead of resolving
❯ packages/css/test/unit/uma/UmaClient.test.ts:384:59
Caused by: Caused by: Error: The provided UMA RPT is not active.
❯ UmaClient.verifyOpaqueToken packages/css/src/uma/UmaClient.ts:237:36
❯ packages/css/test/unit/uma/UmaClient.test.ts:384:7
|
|
test/integration/Odrl.test.ts > An ODRL server setup > reading a resource > RS: provides access when receiving a valid token.:
test/integration/Odrl.test.ts#L188
AssertionError: expected 501 to be 200 // Object.is equality
- Expected
+ Received
- 200
+ 501
❯ test/integration/Odrl.test.ts:188:31
|
|
test/integration/Odrl.test.ts > An ODRL server setup > reading a resource > AS: responds with a token when receiving the ticket.:
test/integration/Odrl.test.ts#L177
AssertionError: expected [ { resource_id: 'http://localhost:3002/alice/other/resource.txt', resource_scopes: [ 'urn:example:css:modes:read' ], policies: [ 'http://example.org/usagePolicy3' ] } ] to deep equally contain { resource_id: 'http://localhost:3002/alice/other/resource.txt', resource_scopes: [ 'urn:example:css:modes:read' ] }
- Expected:
{
"resource_id": "http://localhost:3002/alice/other/resource.txt",
"resource_scopes": [
"urn:example:css:modes:read",
],
}
+ Received:
[
{
"policies": [
"http://example.org/usagePolicy3",
],
"resource_id": "http://localhost:3002/alice/other/resource.txt",
"resource_scopes": [
"urn:example:css:modes:read",
],
},
]
❯ test/integration/Odrl.test.ts:177:33
|
|
test/integration/Odrl.test.ts > An ODRL server setup > creating a resource > AS: responds with a token when receiving the ticket.:
test/integration/Odrl.test.ts#L102
AssertionError: expected [ { resource_id: 'http://localhost:3002/alice/', resource_scopes: [ 'urn:example:css:modes:create' ], policies: [ 'http://example.org/usagePolicy2' ] } ] to deep equally contain { resource_id: 'http://localhost:3002/alice/', resource_scopes: [ 'urn:example:css:modes:create' ] }
- Expected:
{
"resource_id": "http://localhost:3002/alice/",
"resource_scopes": [
"urn:example:css:modes:create",
],
}
+ Received:
[
{
"policies": [
"http://example.org/usagePolicy2",
],
"resource_id": "http://localhost:3002/alice/",
"resource_scopes": [
"urn:example:css:modes:create",
],
},
]
❯ test/integration/Odrl.test.ts:102:33
|
|
test/integration/Demo.test.ts > A demo server setup > requires authorized access for patient data.:
test/integration/Demo.test.ts#L300
AssertionError: expected { permissions: [ { resource_id: 'http://localhost:3003/ruben/medical/smartwatch.ttl', resource_scopes: [ 'urn:example:css:modes:read' ], policies: [ 'http://example.org/HCPX-agreement' ] } ], iat: 1761826738, iss: 'http://localhost:4003/uma', aud: 'solid', exp: 1761827038, jti: '67661617-c911-4449-9ba9-d902e5780033' } to match object { permissions: [ { resource_id: 'http://localhost:3003/ruben/medical/smartwatch.ttl', resource_scopes: [ 'urn:example:css:modes:read' ] } ], contract: { '@context': 'http://www.w3.org/ns/odrl.jsonld', '@type': 'Agreement', uid: Any<String>, 'http://purl.org/dc/terms/description': 'Agreement for HCP X to read Alice\'s health data for bariatric care.', 'https://w3id.org/dpv#hasLegalBasis': { '@id': 'https://w3id.org/dpv/legal/eu/gdpr#eu-gdpr:A9-2-a' }, permission: [ { '@type': 'Permission', action: 'https://w3id.org/oac#read', target: 'http://localhost:3003/ruben/medical/smartwatch.ttl', assigner: 'http://localhost:3000/ruben/profile/card#me', assignee: 'http://localhost:3000/alice/profile/card#me', constraint: [ { '@type': 'Constraint', leftOperand: 'purpose', operator: 'eq', rightOperand: { '@id': 'http://example.org/bariatric-care' } } ] } ] }, iat: Any<Number>, iss: 'http://localhost:4003/uma', aud: 'solid', exp: Any<Number>, jti: Any<String> }
- Expected
+ Received
@@ -1,35 +1,7 @@
{
"aud": "solid",
- "contract": {
- "@context": "http://www.w3.org/ns/odrl.jsonld",
- "@type": "Agreement",
- "http://purl.org/dc/terms/description": "Agreement for HCP X to read Alice's health data for bariatric care.",
- "https://w3id.org/dpv#hasLegalBasis": {
- "@id": "https://w3id.org/dpv/legal/eu/gdpr#eu-gdpr:A9-2-a",
- },
- "permission": [
- {
- "@type": "Permission",
- "action": "https://w3id.org/oac#read",
- "assignee": "http://localhost:3000/alice/profile/card#me",
- "assigner": "http://localhost:3000/ruben/profile/card#me",
- "constraint": [
- {
- "@type": "Constraint",
- "leftOperand": "purpose",
- "operator": "eq",
- "rightOperand": {
- "@id": "http://example.org/bariatric-care",
- },
- },
- ],
- "target": "http://localhost:3003/ruben/medical/smartwatch.ttl",
- },
- ],
- "uid": Any<String>,
- },
"exp": Any<Number>,
"iat": Any<Number>,
"iss": "http://localhost:4003/uma",
"jti": Any<String>,
"permissions": [
❯ test/integration/Demo.test.ts:300:25
|
|
test/integration/Base.test.ts > A server setup > using ODRL authorization > AS: responds with a token when receiving the ticket.:
test/integration/Base.test.ts#L116
AssertionError: expected [ { resource_id: 'http://localhost:3001/alice/', resource_scopes: [ 'urn:example:css:modes:create' ], policies: [ 'http://example.org/1707120963224#usagePolicy2' ] } ] to deep equally contain { resource_id: 'http://localhost:3001/alice/', resource_scopes: [ 'urn:example:css:modes:create' ] }
- Expected:
{
"resource_id": "http://localhost:3001/alice/",
"resource_scopes": [
"urn:example:css:modes:create",
],
}
+ Received:
[
{
"policies": [
"http://example.org/1707120963224#usagePolicy2",
],
"resource_id": "http://localhost:3001/alice/",
"resource_scopes": [
"urn:example:css:modes:create",
],
},
]
❯ test/integration/Base.test.ts:116:33
|
|
packages/uma/test/unit/routes/Introspection.test.ts > Introspection > returns the token.:
packages/uma/test/unit/routes/Introspection.test.ts#L42
AssertionError: expected { status: 200, body: { requestClaims: undefined, active: true } } to deeply equal { status: 200, body: { key: 'value', active: true } }
- Expected
+ Received
{
"body": {
"active": true,
- "key": "value",
+ "requestClaims": undefined,
},
"status": 200,
}
❯ packages/uma/test/unit/routes/Introspection.test.ts:42:5
|
|
packages/uma/test/unit/dialog/BaseNegotiator.test.ts > BaseNegotiator > processes the credentials if they are provided.:
packages/uma/test/unit/dialog/BaseNegotiator.test.ts#L156
AssertionError: expected last "spy" call to have been called with [ { permissions: { resource_id: 'id1', resource_scopes: [ 'scope1' ] } } ]
- Expected
+ Received
@@ -5,6 +5,10 @@
"resource_scopes": [
"scope1",
],
},
},
+ {
+ "claim1": "value1",
+ "claim2": "value2",
+ },
]
❯ packages/uma/test/unit/dialog/BaseNegotiator.test.ts:156:36
|
|
packages/uma/test/unit/dialog/BaseNegotiator.test.ts > BaseNegotiator > uses the stored ticket if it is known.:
packages/uma/test/unit/dialog/BaseNegotiator.test.ts#L132
AssertionError: expected last "spy" call to have been called with [ { permissions: { resource_id: 'id1', resource_scopes: [ 'scope1' ] } } ]
- Expected
+ Received
@@ -5,6 +5,7 @@
"resource_scopes": [
"scope1",
],
},
},
+ undefined,
]
❯ packages/uma/test/unit/dialog/BaseNegotiator.test.ts:132:36
|
|
packages/uma/test/unit/dialog/BaseNegotiator.test.ts > BaseNegotiator > returns the token if everything was successful.:
packages/uma/test/unit/dialog/BaseNegotiator.test.ts#L79
AssertionError: expected last "spy" call to have been called with [ { permissions: { resource_id: 'id1', resource_scopes: [ 'scope1' ] } } ]
- Expected
+ Received
@@ -5,6 +5,7 @@
"resource_scopes": [
"scope1",
],
},
},
+ undefined,
]
❯ packages/uma/test/unit/dialog/BaseNegotiator.test.ts:79:36
|
|
packages/css/test/unit/uma/UmaClient.test.ts > UmaClient > verifyOpaqueToken > returns the introspected payload if the token is active and valid.:
packages/css/test/unit/uma/UmaClient.test.ts#L384
AssertionError: promise rejected "Error: The provided UMA RPT is not active." instead of resolving
❯ packages/css/test/unit/uma/UmaClient.test.ts:384:59
Caused by: Caused by: Error: The provided UMA RPT is not active.
❯ UmaClient.verifyOpaqueToken packages/css/src/uma/UmaClient.ts:237:36
❯ packages/css/test/unit/uma/UmaClient.test.ts:384:7
|
|
test/integration/Odrl.test.ts > An ODRL server setup > reading a resource > RS: provides access when receiving a valid token.:
test/integration/Odrl.test.ts#L188
AssertionError: expected 501 to be 200 // Object.is equality
- Expected
+ Received
- 200
+ 501
❯ test/integration/Odrl.test.ts:188:31
|
|
test/integration/Odrl.test.ts > An ODRL server setup > reading a resource > AS: responds with a token when receiving the ticket.:
test/integration/Odrl.test.ts#L177
AssertionError: expected [ { resource_id: 'http://localhost:3002/alice/other/resource.txt', resource_scopes: [ 'urn:example:css:modes:read' ], policies: [ 'http://example.org/usagePolicy3' ] } ] to deep equally contain { resource_id: 'http://localhost:3002/alice/other/resource.txt', resource_scopes: [ 'urn:example:css:modes:read' ] }
- Expected:
{
"resource_id": "http://localhost:3002/alice/other/resource.txt",
"resource_scopes": [
"urn:example:css:modes:read",
],
}
+ Received:
[
{
"policies": [
"http://example.org/usagePolicy3",
],
"resource_id": "http://localhost:3002/alice/other/resource.txt",
"resource_scopes": [
"urn:example:css:modes:read",
],
},
]
❯ test/integration/Odrl.test.ts:177:33
|
|
test/integration/Odrl.test.ts > An ODRL server setup > creating a resource > AS: responds with a token when receiving the ticket.:
test/integration/Odrl.test.ts#L102
AssertionError: expected [ { resource_id: 'http://localhost:3002/alice/', resource_scopes: [ 'urn:example:css:modes:create' ], policies: [ 'http://example.org/usagePolicy2' ] } ] to deep equally contain { resource_id: 'http://localhost:3002/alice/', resource_scopes: [ 'urn:example:css:modes:create' ] }
- Expected:
{
"resource_id": "http://localhost:3002/alice/",
"resource_scopes": [
"urn:example:css:modes:create",
],
}
+ Received:
[
{
"policies": [
"http://example.org/usagePolicy2",
],
"resource_id": "http://localhost:3002/alice/",
"resource_scopes": [
"urn:example:css:modes:create",
],
},
]
❯ test/integration/Odrl.test.ts:102:33
|
|
test/integration/Demo.test.ts > A demo server setup > requires authorized access for patient data.:
test/integration/Demo.test.ts#L300
AssertionError: expected { permissions: [ { resource_id: 'http://localhost:3003/ruben/medical/smartwatch.ttl', resource_scopes: [ 'urn:example:css:modes:read' ], policies: [ 'http://example.org/HCPX-agreement' ] } ], iat: 1761826840, iss: 'http://localhost:4003/uma', aud: 'solid', exp: 1761827140, jti: '2cfa2134-1747-485c-9f99-d9a420d0c6de' } to match object { permissions: [ { resource_id: 'http://localhost:3003/ruben/medical/smartwatch.ttl', resource_scopes: [ 'urn:example:css:modes:read' ] } ], contract: { '@context': 'http://www.w3.org/ns/odrl.jsonld', '@type': 'Agreement', uid: Any<String>, 'http://purl.org/dc/terms/description': 'Agreement for HCP X to read Alice\'s health data for bariatric care.', 'https://w3id.org/dpv#hasLegalBasis': { '@id': 'https://w3id.org/dpv/legal/eu/gdpr#eu-gdpr:A9-2-a' }, permission: [ { '@type': 'Permission', action: 'https://w3id.org/oac#read', target: 'http://localhost:3003/ruben/medical/smartwatch.ttl', assigner: 'http://localhost:3000/ruben/profile/card#me', assignee: 'http://localhost:3000/alice/profile/card#me', constraint: [ { '@type': 'Constraint', leftOperand: 'purpose', operator: 'eq', rightOperand: { '@id': 'http://example.org/bariatric-care' } } ] } ] }, iat: Any<Number>, iss: 'http://localhost:4003/uma', aud: 'solid', exp: Any<Number>, jti: Any<String> }
- Expected
+ Received
@@ -1,35 +1,7 @@
{
"aud": "solid",
- "contract": {
- "@context": "http://www.w3.org/ns/odrl.jsonld",
- "@type": "Agreement",
- "http://purl.org/dc/terms/description": "Agreement for HCP X to read Alice's health data for bariatric care.",
- "https://w3id.org/dpv#hasLegalBasis": {
- "@id": "https://w3id.org/dpv/legal/eu/gdpr#eu-gdpr:A9-2-a",
- },
- "permission": [
- {
- "@type": "Permission",
- "action": "https://w3id.org/oac#read",
- "assignee": "http://localhost:3000/alice/profile/card#me",
- "assigner": "http://localhost:3000/ruben/profile/card#me",
- "constraint": [
- {
- "@type": "Constraint",
- "leftOperand": "purpose",
- "operator": "eq",
- "rightOperand": {
- "@id": "http://example.org/bariatric-care",
- },
- },
- ],
- "target": "http://localhost:3003/ruben/medical/smartwatch.ttl",
- },
- ],
- "uid": Any<String>,
- },
"exp": Any<Number>,
"iat": Any<Number>,
"iss": "http://localhost:4003/uma",
"jti": Any<String>,
"permissions": [
❯ test/integration/Demo.test.ts:300:25
|
|
test/integration/Base.test.ts > A server setup > using ODRL authorization > AS: responds with a token when receiving the ticket.:
test/integration/Base.test.ts#L116
AssertionError: expected [ { resource_id: 'http://localhost:3001/alice/', resource_scopes: [ 'urn:example:css:modes:create' ], policies: [ 'http://example.org/1707120963224#usagePolicy2' ] } ] to deep equally contain { resource_id: 'http://localhost:3001/alice/', resource_scopes: [ 'urn:example:css:modes:create' ] }
- Expected:
{
"resource_id": "http://localhost:3001/alice/",
"resource_scopes": [
"urn:example:css:modes:create",
],
}
+ Received:
[
{
"policies": [
"http://example.org/1707120963224#usagePolicy2",
],
"resource_id": "http://localhost:3001/alice/",
"resource_scopes": [
"urn:example:css:modes:create",
],
},
]
❯ test/integration/Base.test.ts:116:33
|
|
packages/uma/test/unit/routes/Introspection.test.ts > Introspection > returns the token.:
packages/uma/test/unit/routes/Introspection.test.ts#L42
AssertionError: expected { status: 200, body: { requestClaims: undefined, active: true } } to deeply equal { status: 200, body: { key: 'value', active: true } }
- Expected
+ Received
{
"body": {
"active": true,
- "key": "value",
+ "requestClaims": undefined,
},
"status": 200,
}
❯ packages/uma/test/unit/routes/Introspection.test.ts:42:5
|
|
packages/uma/test/unit/dialog/BaseNegotiator.test.ts > BaseNegotiator > processes the credentials if they are provided.:
packages/uma/test/unit/dialog/BaseNegotiator.test.ts#L156
AssertionError: expected last "spy" call to have been called with [ { permissions: { resource_id: 'id1', resource_scopes: [ 'scope1' ] } } ]
- Expected
+ Received
@@ -5,6 +5,10 @@
"resource_scopes": [
"scope1",
],
},
},
+ {
+ "claim1": "value1",
+ "claim2": "value2",
+ },
]
❯ packages/uma/test/unit/dialog/BaseNegotiator.test.ts:156:36
|
|
packages/uma/test/unit/dialog/BaseNegotiator.test.ts > BaseNegotiator > uses the stored ticket if it is known.:
packages/uma/test/unit/dialog/BaseNegotiator.test.ts#L132
AssertionError: expected last "spy" call to have been called with [ { permissions: { resource_id: 'id1', resource_scopes: [ 'scope1' ] } } ]
- Expected
+ Received
@@ -5,6 +5,7 @@
"resource_scopes": [
"scope1",
],
},
},
+ undefined,
]
❯ packages/uma/test/unit/dialog/BaseNegotiator.test.ts:132:36
|
|
packages/uma/test/unit/dialog/BaseNegotiator.test.ts > BaseNegotiator > returns the token if everything was successful.:
packages/uma/test/unit/dialog/BaseNegotiator.test.ts#L79
AssertionError: expected last "spy" call to have been called with [ { permissions: { resource_id: 'id1', resource_scopes: [ 'scope1' ] } } ]
- Expected
+ Received
@@ -5,6 +5,7 @@
"resource_scopes": [
"scope1",
],
},
},
+ undefined,
]
❯ packages/uma/test/unit/dialog/BaseNegotiator.test.ts:79:36
|
|
packages/css/test/unit/uma/UmaClient.test.ts > UmaClient > verifyOpaqueToken > returns the introspected payload if the token is active and valid.:
packages/css/test/unit/uma/UmaClient.test.ts#L384
AssertionError: promise rejected "Error: The provided UMA RPT is not active." instead of resolving
❯ packages/css/test/unit/uma/UmaClient.test.ts:384:59
Caused by: Caused by: Error: The provided UMA RPT is not active.
❯ UmaClient.verifyOpaqueToken packages/css/src/uma/UmaClient.ts:237:36
❯ packages/css/test/unit/uma/UmaClient.test.ts:384:7
|
|
test/integration/Odrl.test.ts > An ODRL server setup > reading a resource > RS: provides access when receiving a valid token.:
test/integration/Odrl.test.ts#L188
AssertionError: expected 501 to be 200 // Object.is equality
- Expected
+ Received
- 200
+ 501
❯ test/integration/Odrl.test.ts:188:31
|
|
test/integration/Odrl.test.ts > An ODRL server setup > reading a resource > AS: responds with a token when receiving the ticket.:
test/integration/Odrl.test.ts#L177
AssertionError: expected [ { resource_id: 'http://localhost:3002/alice/other/resource.txt', resource_scopes: [ 'urn:example:css:modes:read' ], policies: [ 'http://example.org/usagePolicy3' ] } ] to deep equally contain { resource_id: 'http://localhost:3002/alice/other/resource.txt', resource_scopes: [ 'urn:example:css:modes:read' ] }
- Expected:
{
"resource_id": "http://localhost:3002/alice/other/resource.txt",
"resource_scopes": [
"urn:example:css:modes:read",
],
}
+ Received:
[
{
"policies": [
"http://example.org/usagePolicy3",
],
"resource_id": "http://localhost:3002/alice/other/resource.txt",
"resource_scopes": [
"urn:example:css:modes:read",
],
},
]
❯ test/integration/Odrl.test.ts:177:33
|
|
test/integration/Odrl.test.ts > An ODRL server setup > creating a resource > AS: responds with a token when receiving the ticket.:
test/integration/Odrl.test.ts#L102
AssertionError: expected [ { resource_id: 'http://localhost:3002/alice/', resource_scopes: [ 'urn:example:css:modes:create' ], policies: [ 'http://example.org/usagePolicy2' ] } ] to deep equally contain { resource_id: 'http://localhost:3002/alice/', resource_scopes: [ 'urn:example:css:modes:create' ] }
- Expected:
{
"resource_id": "http://localhost:3002/alice/",
"resource_scopes": [
"urn:example:css:modes:create",
],
}
+ Received:
[
{
"policies": [
"http://example.org/usagePolicy2",
],
"resource_id": "http://localhost:3002/alice/",
"resource_scopes": [
"urn:example:css:modes:create",
],
},
]
❯ test/integration/Odrl.test.ts:102:33
|
|
test/integration/Demo.test.ts > A demo server setup > requires authorized access for patient data.:
test/integration/Demo.test.ts#L300
AssertionError: expected { permissions: [ { resource_id: 'http://localhost:3003/ruben/medical/smartwatch.ttl', resource_scopes: [ 'urn:example:css:modes:read' ], policies: [ 'http://example.org/HCPX-agreement' ] } ], iat: 1761826861, iss: 'http://localhost:4003/uma', aud: 'solid', exp: 1761827161, jti: 'd8fd962d-140b-4bca-94bd-aafd9c07091f' } to match object { permissions: [ { resource_id: 'http://localhost:3003/ruben/medical/smartwatch.ttl', resource_scopes: [ 'urn:example:css:modes:read' ] } ], contract: { '@context': 'http://www.w3.org/ns/odrl.jsonld', '@type': 'Agreement', uid: Any<String>, 'http://purl.org/dc/terms/description': 'Agreement for HCP X to read Alice\'s health data for bariatric care.', 'https://w3id.org/dpv#hasLegalBasis': { '@id': 'https://w3id.org/dpv/legal/eu/gdpr#eu-gdpr:A9-2-a' }, permission: [ { '@type': 'Permission', action: 'https://w3id.org/oac#read', target: 'http://localhost:3003/ruben/medical/smartwatch.ttl', assigner: 'http://localhost:3000/ruben/profile/card#me', assignee: 'http://localhost:3000/alice/profile/card#me', constraint: [ { '@type': 'Constraint', leftOperand: 'purpose', operator: 'eq', rightOperand: { '@id': 'http://example.org/bariatric-care' } } ] } ] }, iat: Any<Number>, iss: 'http://localhost:4003/uma', aud: 'solid', exp: Any<Number>, jti: Any<String> }
- Expected
+ Received
@@ -1,35 +1,7 @@
{
"aud": "solid",
- "contract": {
- "@context": "http://www.w3.org/ns/odrl.jsonld",
- "@type": "Agreement",
- "http://purl.org/dc/terms/description": "Agreement for HCP X to read Alice's health data for bariatric care.",
- "https://w3id.org/dpv#hasLegalBasis": {
- "@id": "https://w3id.org/dpv/legal/eu/gdpr#eu-gdpr:A9-2-a",
- },
- "permission": [
- {
- "@type": "Permission",
- "action": "https://w3id.org/oac#read",
- "assignee": "http://localhost:3000/alice/profile/card#me",
- "assigner": "http://localhost:3000/ruben/profile/card#me",
- "constraint": [
- {
- "@type": "Constraint",
- "leftOperand": "purpose",
- "operator": "eq",
- "rightOperand": {
- "@id": "http://example.org/bariatric-care",
- },
- },
- ],
- "target": "http://localhost:3003/ruben/medical/smartwatch.ttl",
- },
- ],
- "uid": Any<String>,
- },
"exp": Any<Number>,
"iat": Any<Number>,
"iss": "http://localhost:4003/uma",
"jti": Any<String>,
"permissions": [
❯ test/integration/Demo.test.ts:300:25
|
|
test/integration/Base.test.ts > A server setup > using ODRL authorization > AS: responds with a token when receiving the ticket.:
test/integration/Base.test.ts#L116
AssertionError: expected [ { resource_id: 'http://localhost:3001/alice/', resource_scopes: [ 'urn:example:css:modes:create' ], policies: [ 'http://example.org/1707120963224#usagePolicy2' ] } ] to deep equally contain { resource_id: 'http://localhost:3001/alice/', resource_scopes: [ 'urn:example:css:modes:create' ] }
- Expected:
{
"resource_id": "http://localhost:3001/alice/",
"resource_scopes": [
"urn:example:css:modes:create",
],
}
+ Received:
[
{
"policies": [
"http://example.org/1707120963224#usagePolicy2",
],
"resource_id": "http://localhost:3001/alice/",
"resource_scopes": [
"urn:example:css:modes:create",
],
},
]
❯ test/integration/Base.test.ts:116:33
|