* Starting RabbitMQ Messaging Server rabbitmq-server ...done. * Starting MariaDB database server mariadbd ...done. npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported added 310 packages, and audited 312 packages in 5s 99 packages are looking for funding run `npm fund` for details 1 high severity vulnerability To address all issues, run: npm audit fix Run `npm audit` for details. npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm WARN deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported added 365 packages, and audited 372 packages in 8s 92 packages are looking for funding run `npm fund` for details found 0 vulnerabilities > @crosslab/service-schedule-service@0.0.1 test > npm run build && env-cmd -e development c8 --include="app/operations/index.js" --include="app/timetable.js" mocha app/*_test.js app/operations/*_test.js > @crosslab/service-schedule-service@0.0.1 build > npm-run-all build:* > @crosslab/service-schedule-service@0.0.1 build:generate > openapi-codegen -i dist/openapi.json -p @cross-lab-project/codegen-typescript-addon:preset:service -o src/generated loading addon "@cross-lab-project/codegen-typescript-addon" addon path: /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/helper/crosslab-typescript-addon/lib/cjs/index.js Writing /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/schedule-service/src/generated/types.ts Writing /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/schedule-service/src/generated/signatures.ts Writing /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/schedule-service/src/generated/routes.ts Writing /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/schedule-service/src/generated/requestValidation.ts Writing /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/schedule-service/src/generated/index.ts Writing /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/schedule-service/src/generated/basicValidation.cjs > @crosslab/service-schedule-service@0.0.1 build:compile > tsc && cp src/generated/basicValidation.cjs app/generated/basicValidation.cjs > @crosslab/service-schedule-service@0.0.1 build:add-shebang > bash scripts/add-shebang.sh timetable.ts ✔ timetableSortInPlace ✔ timetableNot ✔ timetableAnd operations.ts Error while availability for 0 1 :InvalidUrlError: Provided url does not start with the provided base url ANY ERROR availability 1) postBookingSchedule (no error case) (node:8930) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1) (Use `node --trace-warnings ...` to show where the warning was created) ✔ postBookingSchedule (completely free) ✔ postBookingSchedule (completely free) Error while getting schedule for http://127.0.0.1:10802 :UnsuccessfulRequestError: Server returned response with status 503 Error while getting device http://localhost:10801/devices/00000000-0000-0000-0000-000000000001 :UnsuccessfulRequestError: Server returned response with status 404 Error while getting schedule for http://127.0.0.1:10802 :UnsuccessfulRequestError: Server returned response with status 404 Error while availability for 0 1 :InvalidUrlError: Provided url does not start with the provided base url ANY ERROR availability 2) postBookingSchedule (remote error case) (node:8930) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 9) ✔ postBookingSchedule (bad requests) ✔ getTimetables 7 passing (2s) 2 failing 1) operations.ts postBookingSchedule (no error case): InvalidUrlError: Provided url does not start with the provided base url at validateUrl (file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/common/lib/clients/device/client.js:117:15) at Client.getDevice (file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/common/lib/clients/device/client.js:307:29) at postSchedule (file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/schedule-service/app/operations/index.js:113:54) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Context. (file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/schedule-service/app/operations/operations_test.js:39:17) 2) operations.ts postBookingSchedule (remote error case): InvalidUrlError: Provided url does not start with the provided base url at validateUrl (file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/common/lib/clients/device/client.js:117:15) at Client.getDevice (file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/common/lib/clients/device/client.js:307:29) at postSchedule (file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/schedule-service/app/operations/index.js:113:54) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Context. (file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/schedule-service/app/operations/operations_test.js:494:13) ----------------|---------|----------|---------|---------|------------------------------------------ File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s ----------------|---------|----------|---------|---------|------------------------------------------ All files | 80.63 | 87.77 | 100 | 80.63 | src | 100 | 100 | 100 | 100 | timetable.ts | 100 | 100 | 100 | 100 | src/operations | 74.65 | 80 | 100 | 74.65 | index.ts | 74.65 | 80 | 100 | 74.65 | ...7,189-200,203-214,242-260,273,301-317 ----------------|---------|----------|---------|---------|------------------------------------------ npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm WARN deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported added 381 packages, and audited 389 packages in 4s 92 packages are looking for funding run `npm fund` for details found 0 vulnerabilities > @crosslab/service-booking-backend@0.0.1 test > npm run build && env-cmd -e development c8 --include="app/messageDefinition.js" --include="app/amqpHandle.js" --include="app/internal.js" --include="app/operations/index.js" mocha app/*_test.js app/operations/*_test.js > @crosslab/service-booking-backend@0.0.1 build > npm-run-all build:* > @crosslab/service-booking-backend@0.0.1 build:generate > openapi-codegen -i dist/openapi.json -p @cross-lab-project/codegen-typescript-addon:preset:service -o src/generated loading addon "@cross-lab-project/codegen-typescript-addon" addon path: /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/helper/crosslab-typescript-addon/lib/cjs/index.js Writing /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/booking-backend/src/generated/types.ts Writing /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/booking-backend/src/generated/signatures.ts Writing /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/booking-backend/src/generated/routes.ts Writing /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/booking-backend/src/generated/requestValidation.ts Writing /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/booking-backend/src/generated/index.ts Writing /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/booking-backend/src/generated/basicValidation.cjs > @crosslab/service-booking-backend@0.0.1 build:compile > tsc && cp src/generated/basicValidation.cjs app/generated/basicValidation.cjs > @crosslab/service-booking-backend@0.0.1 build:add-shebang > bash scripts/add-shebang.sh internal.ts ✔ handleCallback() DeviceUpdate (local single device available) (1093ms) ✔ handleCallback() DeviceUpdate (local single device not available) (1780ms) ✔ handleCallback() DeviceUpdate (local two devices available) (2016ms) ✔ handleCallback() DeviceUpdate (local two devices not available) (1719ms) ✔ handleCallback() BookingUpdate (local group, available) (1009ms) ✔ handleCallback() BookingUpdate (local group, not available) (1707ms) ✔ dispatchCallback() (416ms) ✔ reservateDevice() - local single device (1403ms) ✔ reservateDevice() - local two devices (2774ms) ✔ reservateDevice() - local group (1390ms) ✔ reservateDevice() - local single device not available (2711ms) ✔ reservateDevice() - local two devices not available (2672ms) ✔ reservateDevice() - local group not available (3035ms) ✔ reservateDevice() - booking not existing ✔ randomID() (1819ms) ✔ DeleteBooking() local single device (1664ms) ✔ DeleteBooking() local multiple devices (1670ms) ✔ DeleteBooking() local group (1649ms) ✔ DeleteBooking() non-existing (1302ms) ✔ freeDevice() - local single device (1418ms) ✔ freeDevice() - local multiple devices (1004ms) ✔ freeDevice() - local group (1395ms) messageDefinition.ts ✔ DeviceBookingRequest.fromString correct ✔ DeviceBookingRequest.fromString broken operations.ts ✔ putBookingByIDLock no authorization ✔ putBookingByIDLock lock success (260ms) ✔ putBookingByIDLock lock success multiple (261ms) ✔ putBookingByIDLock lock success group (261ms) ✔ putBookingByIDLock already locked (260ms) ✔ putBookingByIDLock wrong status (259ms) ✔ putBookingByIDLock no booking (255ms) ✔ deleteBookingByIDLock no authorization ✔ deleteBookingByIDLock unlock success (257ms) ✔ deleteBookingByIDLock already unlocked (256ms) ✔ deleteBookingByIDLock wrong status (260ms) ✔ deleteBookingByIDLock edge case active-pending (258ms) ✔ deleteBookingByIDLock no booking (253ms) ✔ postBookingCallbackByID no authorization ✔ postBookingCallbackByID success (262ms) ✔ putBookingByIDLock no booking (252ms) 40 passing (2m) -----------------------|---------|----------|---------|---------|----------------------------------- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s -----------------------|---------|----------|---------|---------|----------------------------------- All files | 78.38 | 62.87 | 93.33 | 78.38 | src | 74.73 | 58.13 | 91.66 | 74.73 | internal.ts | 72.1 | 44.89 | 88.88 | 72.1 | ...90-794,802-803,805-806,824-825 messageDefinition.ts | 100 | 100 | 100 | 100 | src/operations | 95.07 | 78.94 | 100 | 95.07 | index.ts | 95.07 | 78.94 | 100 | 95.07 | 49,58,93-95,145,151,159-161 -----------------------|---------|----------|---------|---------|----------------------------------- npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm WARN deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported added 376 packages, and audited 383 packages in 4s 92 packages are looking for funding run `npm fund` for details found 0 vulnerabilities > @crosslab/service-booking-frontend@0.0.1 test > npm run build && env-cmd -e development c8 --include="app/operations/index.js" mocha app/operations/*_test.js > @crosslab/service-booking-frontend@0.0.1 build > npm-run-all build:* > @crosslab/service-booking-frontend@0.0.1 build:generate > openapi-codegen -i dist/openapi.json -p @cross-lab-project/codegen-typescript-addon:preset:service -o src/generated loading addon "@cross-lab-project/codegen-typescript-addon" addon path: /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/helper/crosslab-typescript-addon/lib/cjs/index.js Writing /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/booking-frontend/src/generated/types.ts Writing /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/booking-frontend/src/generated/signatures.ts Writing /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/booking-frontend/src/generated/routes.ts Writing /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/booking-frontend/src/generated/requestValidation.ts Writing /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/booking-frontend/src/generated/index.ts Writing /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/booking-frontend/src/generated/basicValidation.cjs > @crosslab/service-booking-frontend@0.0.1 build:compile > tsc && cp src/generated/basicValidation.cjs app/generated/basicValidation.cjs > @crosslab/service-booking-frontend@0.0.1 build:add-shebang > bash scripts/add-shebang.sh Exception during run: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/common/lib/types/logger.js' imported from /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/booking/src/booking-frontend/app/operations/index.js at finalizeResolution (node:internal/modules/esm/resolve:265:11) at moduleResolve (node:internal/modules/esm/resolve:933:10) at defaultResolve (node:internal/modules/esm/resolve:1157:11) at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:390:12) at ModuleLoader.resolve (node:internal/modules/esm/loader:359:25) at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:234:38) at ModuleWrap. (node:internal/modules/esm/module_job:87:39) at link (node:internal/modules/esm/module_job:86:36) { code: 'ERR_MODULE_NOT_FOUND', url: 'file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/services/common/lib/types/logger.js' } ----------|---------|----------|---------|---------|------------------- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s ----------|---------|----------|---------|---------|------------------- All files | 0 | 0 | 0 | 0 | ----------|---------|----------|---------|---------|------------------- npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm WARN deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported added 302 packages, and audited 304 packages in 6s 89 packages are looking for funding run `npm fund` for details found 0 vulnerabilities > @crosslab/service-device-reservation@0.1.0 test > npm run build && npx c8 --include="app/mainLoop.js" --include="app/messageDefinition.js" mocha --require mocha-suppress-logs --exit app/*_test.js > @crosslab/service-device-reservation@0.1.0 build > npm-run-all build:* > @crosslab/service-device-reservation@0.1.0 build:compile > npx tsc > @crosslab/service-device-reservation@0.1.0 build:add-shebang > bash scripts/add-shebang.sh mainLoop.ts ✔ mainLoop.ts get existing (1003ms) ✔ mainLoop.ts get non existing (1002ms) ✔ mainLoop.ts delete non existing (1002ms) ✔ mainLoop.ts basic reservate -> get -> delete (5006ms) ✔ mainLoop.ts reservate booked slot (4005ms) ✔ mainLoop.ts new missing values (4003ms) ✔ mainLoop.ts get missing values (1001ms) ✔ mainLoop.ts bad dates (2003ms) ✔ mainLoop.ts delete missing values (1002ms) ✔ mainLoop.ts broken random (1000ms) ✔ mainLoop.ts not us (1001ms) messageDefinition.ts ✔ ReservationMessage.fromString correct ✔ ReservationMessage.fromString Type ✔ ReservationMessage.fromString AnswerQueue ✔ ReservationMessage.fromString Device ✔ ReservationMessage.fromString Start/End ✔ ReservationMessage.fromString BookingReference ✔ ReservationMessage.fromString ReservationID ✔ ReservationMessage.fromString general bad data ✔ ReservationAnswer.fromString correct ✔ ReservationAnswer.fromString Type ✔ ReservationAnswer.fromString Device ✔ ReservationAnswer.fromString Start ✔ ReservationAnswer.fromString End ✔ ReservationAnswer.fromString BookingReference ✔ ReservationAnswer.fromString ReservationID ✔ ReservationAnswer.fromString Deleted/Successful/ErrorMessage ✔ ReservationMessage.fromString general bad data 28 passing (51s) ----------------------|---------|----------|---------|---------|------------------------------------ File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s ----------------------|---------|----------|---------|---------|------------------------------------ All files | 92.24 | 95.13 | 87.5 | 92.24 | mainLoop.ts | 86.26 | 84.09 | 50 | 86.26 | ...309-320,333-334,336-353,359-362 messageDefinition.ts | 100 | 100 | 100 | 100 | ----------------------|---------|----------|---------|---------|------------------------------------