Skip to content

Commit

Permalink
Updated existing Playwright tests and added new Playwright tests usin…
Browse files Browse the repository at this point in the history
…g a mock server. (#1349)

* Playwright - configurations list

* Playwright - configurations detail + prelinks

* Playwright test update

* Playwright test update from PR
  • Loading branch information
PatrikMatiasko authored Jul 23, 2024
1 parent 86f5cfb commit f3fb39b
Show file tree
Hide file tree
Showing 74 changed files with 1,595 additions and 877 deletions.
3 changes: 2 additions & 1 deletion http-gateway/web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion http-gateway/web/packages/mock-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
"author": "",
"license": "ISC",
"devDependencies": {
"express": "^4.18.2"
"express": "^4.19.2"
},
"dependencies": {
"body-parser": "^1.20.2",
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"escape-html": "^1.0.3",
"express-validator": "^7.1.0",
"lodash": "^4.17.21"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{"result":{"id":"3c9f30c1-aeed-5d8a-aebd-280a5f8b802a","owner":"98120ad9-eefa-4b93-aa53-696420b639fd","commonName":"uuid:3aae0672-47f3-4498-78d4-b061e6105ccd","deviceId":"3aae0672-47f3-4498-78d4-b061e6105ccd","publicKey":"e88aaa39-2b02-5dc7-98dd-19f2036f7516","creationDate":"1715360632118670932","credential":{"date":"1715360632118670932","certificatePem":"-----BEGIN CERTIFICATE-----\nMIIBojCCAUmgAwIBAgIRAPZgw4E3JIyW1nsKrvhNEigwCgYIKoZIzj0EAwIwEjEQ\nMA4GA1UEAxMHcGxnZC1jYTAeFw0yNDA1MTAxNjAzNTJaFw0zNDAyMDUxNTQ5MDFa\nMDQxMjAwBgNVBAMTKXV1aWQ6M2FhZTA2NzItNDdmMy00NDk4LTc4ZDQtYjA2MWU2\nMTA1Y2NkMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEiovqnnqCl8VwrtdMXayU\np6pqHra0ETaCz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oYDzIx\nMjMwOTI1MDg0ODE1WjAdMRswGQYDVQQDExJyb290LmNhLnBsZ2QuY2xvdWQwWTAT\nBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQm0x+16Bukvv+HWAery/0o/VQAO8boxs4w\nOiaXTrl0an/bRDzDApsRvp69HwIchZKAce5OCrddSiURNt6Qef0Co0IwQDAOBgNV\nHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUQsrTUa2a/P32\nRO8gzmJ3M4vF6sgwCgYIKoZIzj0EAwIDSAAwRQIgN0pgKSxwdoRIdWTqi7Tp7tyP\noNK4DqxIlYbnEIIopegCIQDlwaT2h6EKZ3TwHqAq55QywL37G2pv5J8M7t1EqPgA\nYA==\n-----END CERTIFICATE-----\n","validUntilDate":"2022767341000000000"}}}

Large diffs are not rendered by default.

537 changes: 268 additions & 269 deletions http-gateway/web/packages/mock-server/src/data/devices/list/list.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
[
{
"result": {
"configurationId": {
"id": "48998f7d-2a70-46a4-8a68-745b69d55489",
"version": "0"
},
"conditionId": {
"id": "00fa41ad-b3bf-4f00-bfe1-c71c439e4cda",
"version": "1"
},
"resources": [
{
"href": "/not/exists",
"correlationId": "79c2a88a-1244-4e8a-a526-420e6cd5d34a.c3217371-1a90-4f99-b9cf-9896ea349f4f",
"status": "DONE",
"resourceUpdated": {
"resourceId": {
"deviceId": "3aae0672-47f3-4498-78d4-b061e6105ccd",
"href": "/not/exists"
},
"status": "CANCELED",
"auditContext": {
"correlationId": "79c2a88a-1244-4e8a-a526-420e6cd5d34a.c3217371-1a90-4f99-b9cf-9896ea349f4f",
"owner": "beb32777-9680-4f42-8761-350eebe76a85",
"userId": "beb32777-9680-4f42-8761-350eebe76a85"
},
"eventMetadata": {
"hubId": "1c10a3b6-287c-11ec-ac2d-13054959c274",
"version": "3",
"timestamp": "1720525494700155275",
"connectionId": "10.1.65.210:56476",
"sequence": "0"
}
},
"validUntil": "0"
},
{
"href": "/oc/con",
"correlationId": "79c2a88a-1244-4e8a-a526-420e6cd5d34a.1b36275d-4966-4c89-b544-85a67ce38ad5",
"status": "DONE",
"resourceUpdated": {
"content": {
"n": "new jkralik device name"
},
"auditContext": {
"userId": "1e3a67e3-ec52-42e2-8bb0-aae61d4af7c8",
"correlationId": "79c2a88a-1244-4e8a-a526-420e6cd5d34a.1b36275d-4966-4c89-b544-85a67ce38ad5",
"owner": "beb32777-9680-4f42-8761-350eebe76a85"
},
"eventMetadata": {
"hubId": "1c10a3b6-287c-11ec-ac2d-13054959c274",
"version": "29",
"timestamp": "1720120774403521580",
"connectionId": "10.110.110.10:1544",
"sequence": "12850"
},
"resourceTypes": [
"oic.wk.con"
],
"resourceId": {
"deviceId": "3aae0672-47f3-4498-78d4-b061e6105ccd",
"href": "/oc/con"
},
"status": "OK"
},
"validUntil": "0"
}
],
"owner": "beb32777-9680-4f42-8761-350eebe76a85",
"timestamp": "1720525494708332684",
"id": "79c2a88a-1244-4e8a-a526-420e6cd5d34a",
"deviceId": "3aae0672-47f3-4498-78d4-b061e6105ccd"
}
}
]
Loading

0 comments on commit f3fb39b

Please sign in to comment.