Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Refactor: Rewrite and simplify the data model for booking #525

Refactor: Rewrite and simplify the data model for booking

Refactor: Rewrite and simplify the data model for booking #525

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / JUnit + Newman Tests succeeded Nov 3, 2023 in 0s

JUnit + Newman Tests ✅

Tests passed successfully

Report Passed Failed Skipped Time
edocumentation-application/target/surefire-reports/TEST-org.dcsa.edocumentation.controller.BookingRequestControllerTest.xml 3✅ 4s
edocumentation-domain/target/surefire-reports/TEST-org.dcsa.edocumentation.domain.booking.BookingStateMachineTest.xml 2✅ 90ms
edocumentation-domain/target/surefire-reports/TEST-org.dcsa.edocumentation.domain.ebl.EblStateMachineTest.xml 4✅ 104ms
edocumentation-infra/target/surefire-reports/TEST-org.dcsa.edocumentation.infra.validation.StringEnumValidatorTest.xml 2✅ 639ms
edocumentation-service/target/surefire-reports/TEST-org.dcsa.edocumentation.mapping.DisplayedAddressMapperTest.xml 4✅ 9ms
edocumentation-service/target/surefire-reports/TEST-org.dcsa.edocumentation.service.ActiveReeferSettingsServiceTest.xml 1✅ 0ms
edocumentation-service/target/surefire-reports/TEST-org.dcsa.edocumentation.service.BookingRequestServiceTest.xml 5✅ 328ms
edocumentation-service/target/surefire-reports/TEST-org.dcsa.edocumentation.service.DocumentPartyServiceTest.xml 6✅ 158ms
edocumentation-service/target/surefire-reports/TEST-org.dcsa.edocumentation.service.EquipmentServiceTest.xml 6✅ 66ms
edocumentation-service/target/surefire-reports/TEST-org.dcsa.edocumentation.service.ReferenceServiceTest.xml 6✅ 33ms
edocumentation-service/target/surefire-reports/TEST-org.dcsa.edocumentation.service.ServiceServiceTest.xml 3✅ 690ms
edocumentation-service/target/surefire-reports/TEST-org.dcsa.edocumentation.service.TransportDocumentServiceTest.xml 1✅ 383ms
edocumentation-service/target/surefire-reports/TEST-org.dcsa.edocumentation.service.UtilizedTransportEquipmentTest.xml 6✅ 149ms
edocumentation-service/target/surefire-reports/TEST-org.dcsa.edocumentation.service.VesselServiceTest.xml 3✅ 69ms
edocumentation-service/target/surefire-reports/TEST-org.dcsa.edocumentation.service.VoyageServiceTest.xml 4✅ 156ms
edocumentation-transfer-obj/target/surefire-reports/TEST-org.dcsa.edocumentation.transferobjects.validation.UtilizedTransportEquipmentValidatorTest.xml 6✅ 724ms
newman/TEST-newman-report.xml 240✅ 5s

✅ edocumentation-application/target/surefire-reports/TEST-org.dcsa.edocumentation.controller.BookingRequestControllerTest.xml

3 tests were completed in 4s with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
org.dcsa.edocumentation.controller.BookingRequestControllerTest 3✅ 4s

✅ org.dcsa.edocumentation.controller.BookingRequestControllerTest

✅ testBookingController_getBookingSingleResult
✅ testBookingController_getBookingNotFound
✅ testBookingController_getBookingInvalidCarrierBookingRequestReference

✅ edocumentation-domain/target/surefire-reports/TEST-org.dcsa.edocumentation.domain.booking.BookingStateMachineTest.xml

2 tests were completed in 90ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
org.dcsa.edocumentation.domain.booking.BookingStateMachineTest 2✅ 90ms

✅ org.dcsa.edocumentation.domain.booking.BookingStateMachineTest

✅ testBasic
✅ loadInvalidStateTransitions

✅ edocumentation-domain/target/surefire-reports/TEST-org.dcsa.edocumentation.domain.ebl.EblStateMachineTest.xml

4 tests were completed in 104ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
org.dcsa.edocumentation.domain.ebl.EblStateMachineTest 4✅ 104ms

✅ org.dcsa.edocumentation.domain.ebl.EblStateMachineTest

✅ testBasicDefaultFlow
✅ testBasicAmendmentFlow
✅ loadInvalidStateTransitions
✅ testBasicAmendmentFlowRestricted

✅ edocumentation-infra/target/surefire-reports/TEST-org.dcsa.edocumentation.infra.validation.StringEnumValidatorTest.xml

2 tests were completed in 639ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
org.dcsa.edocumentation.infra.validation.StringEnumValidatorTest 2✅ 639ms

✅ org.dcsa.edocumentation.infra.validation.StringEnumValidatorTest

✅ givenTestRecord_whenBookingStatusStringInvalid_thenViolation
✅ givenTestRecord_whenBookingStatusStringNullOrValid_thenNoViolation

✅ edocumentation-service/target/surefire-reports/TEST-org.dcsa.edocumentation.mapping.DisplayedAddressMapperTest.xml

4 tests were completed in 9ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
org.dcsa.edocumentation.mapping.DisplayedAddressMapperTest 4✅ 9ms

✅ org.dcsa.edocumentation.mapping.DisplayedAddressMapperTest

✅ displayedAddressMapper_testToDAOOneLine
✅ displayedAddressMapper_testToDAOAllLines
✅ displayedAddressMapper_testToDAOTooManyLines
✅ displayAddressMapper_testToDTOManyLines

✅ edocumentation-service/target/surefire-reports/TEST-org.dcsa.edocumentation.service.ActiveReeferSettingsServiceTest.xml

1 tests were completed in 0ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
org.dcsa.edocumentation.service.ActiveReeferSettingsServiceTest 1✅ 0ms

✅ org.dcsa.edocumentation.service.ActiveReeferSettingsServiceTest

✅ activeReeferSettingsServiceTest_bkgFreezer

✅ edocumentation-service/target/surefire-reports/TEST-org.dcsa.edocumentation.service.BookingRequestServiceTest.xml

5 tests were completed in 328ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
org.dcsa.edocumentation.service.BookingRequestServiceTest 5✅ 328ms

✅ org.dcsa.edocumentation.service.BookingRequestServiceTest

org.dcsa.edocumentation.service.BookingRequestServiceTest$CreateBookingRequest
  ✅ testCreateFullBooking
org.dcsa.edocumentation.service.BookingRequestServiceTest$GetBookingRequest
  ✅ bookingServiceTest_testGetFullBooking
  ✅ bookingServiceTest_testNullCarrierBookingRequestReference
  ✅ bookingServiceTest_testGetMinimalBooking
  ✅ bookingServiceTest_testNoBookingFound

✅ edocumentation-service/target/surefire-reports/TEST-org.dcsa.edocumentation.service.DocumentPartyServiceTest.xml

6 tests were completed in 158ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
org.dcsa.edocumentation.service.DocumentPartyServiceTest 6✅ 158ms

✅ org.dcsa.edocumentation.service.DocumentPartyServiceTest

✅ documentPartyServiceTest_testCreateNullWithBooking
✅ documentPartyServiceTest_testCreateEmptyWithShippingInstruction
✅ documentPartyServiceTest_testCreateEmptyWithBooking
✅ documentPartyServiceTest_testCreateNullWithShippingInstruction
✅ documentPartyServiceTest_createFullDocumentPartyWithShippingInstruction
✅ documentPartyServiceTest_createFullDocumentPartyWithBooking

✅ edocumentation-service/target/surefire-reports/TEST-org.dcsa.edocumentation.service.EquipmentServiceTest.xml

6 tests were completed in 66ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
org.dcsa.edocumentation.service.EquipmentServiceTest 6✅ 66ms

✅ org.dcsa.edocumentation.service.EquipmentServiceTest

✅ testCreate_OverlappingReferences
✅ testCreate_NotFound
✅ testCreate_AllFound
✅ testEmpty
✅ testNull
✅ testCreate_CreateOne

✅ edocumentation-service/target/surefire-reports/TEST-org.dcsa.edocumentation.service.ReferenceServiceTest.xml

6 tests were completed in 33ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
org.dcsa.edocumentation.service.ReferenceServiceTest 6✅ 33ms

✅ org.dcsa.edocumentation.service.ReferenceServiceTest

✅ referenceServiceTest_testCreateWithNullBooking
✅ referenceServiceTest_testCreateWithBooking
✅ referenceServiceTest_testCreateWithEmptyBooking
✅ referenceServiceTest_testCreateWithShippingInstruction
✅ referenceServiceTest_testCreateWithEmptyShippingInstruction
✅ referenceServiceTest_testCreateWithNullShippingInstruction

✅ edocumentation-service/target/surefire-reports/TEST-org.dcsa.edocumentation.service.ServiceServiceTest.xml

3 tests were completed in 690ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
org.dcsa.edocumentation.service.ServiceServiceTest 3✅ 690ms

✅ org.dcsa.edocumentation.service.ServiceServiceTest

✅ resolveService_Known
✅ resolveService_Unknown
✅ resolveService_null

✅ edocumentation-service/target/surefire-reports/TEST-org.dcsa.edocumentation.service.TransportDocumentServiceTest.xml

1 tests were completed in 383ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
org.dcsa.edocumentation.service.TransportDocumentServiceTest 1✅ 383ms

✅ org.dcsa.edocumentation.service.TransportDocumentServiceTest

✅ transportDocumentServiceTest_testGetTransportDocument

✅ edocumentation-service/target/surefire-reports/TEST-org.dcsa.edocumentation.service.UtilizedTransportEquipmentTest.xml

6 tests were completed in 149ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
org.dcsa.edocumentation.service.UtilizedTransportEquipmentTest 6✅ 149ms

✅ org.dcsa.edocumentation.service.UtilizedTransportEquipmentTest

✅ utilizedTransportEquipmentTest_twoShipperOwnedEquipments
✅ utilizedTransportEquipmentTest_twoCarrierOwnedEquipment
✅ utilizedTransportEquipmentTest_oneCarrierOwnedEquipmentWithSeal
✅ utilizedTransportEquipmentTest_oneCarrierOwnedEquipment
✅ utilizedTransportEquipmentTest_oneShipperOwnedEquipment
✅ utilizedTransportEquipmentTest_bothCarrierOwnedAndShipperEquipment

✅ edocumentation-service/target/surefire-reports/TEST-org.dcsa.edocumentation.service.VesselServiceTest.xml

3 tests were completed in 69ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
org.dcsa.edocumentation.service.VesselServiceTest 3✅ 69ms

✅ org.dcsa.edocumentation.service.VesselServiceTest

✅ resolveVessel_unknown
✅ resolveVessel_known
✅ resolveVessel_null

✅ edocumentation-service/target/surefire-reports/TEST-org.dcsa.edocumentation.service.VoyageServiceTest.xml

4 tests were completed in 156ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
org.dcsa.edocumentation.service.VoyageServiceTest 4✅ 156ms

✅ org.dcsa.edocumentation.service.VoyageServiceTest

✅ resolveVoyage_Unknown
✅ resolveVoyage_null
✅ resolveVoyage_Known
✅ resolveVoyage_nullWithServiceArgs

✅ edocumentation-transfer-obj/target/surefire-reports/TEST-org.dcsa.edocumentation.transferobjects.validation.UtilizedTransportEquipmentValidatorTest.xml

6 tests were completed in 724ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
org.dcsa.edocumentation.transferobjects.validation.UtilizedTransportEquipmentValidatorTest 6✅ 724ms

✅ org.dcsa.edocumentation.transferobjects.validation.UtilizedTransportEquipmentValidatorTest

✅ UtilizedTransportEquipmentValidatorTest_testInvalidMissingTareWeight
✅ UtilizedTransportEquipmentValidatorTest_testInvalidMissingWeightUnit
✅ UtilizedTransportEquipmentValidatorTest_testInvalidMissingWeightUnitAndTareWeight
✅ UtilizedTransportEquipmentValidatorTest_testValidIsShipperOwned
✅ UtilizedTransportEquipmentValidatorTest_testValidIsNotShipperOwned
✅ UtilizedTransportEquipmentValidatorTest_testValidIsNotShipperOwnedWithTareWeightAndWeightUnit

✅ newman/TEST-newman-report.xml

240 tests were completed in 5s with 240 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Cancel booking request / Negative test cases / Cancel Booking Request invalid documentStatus 3✅ 12ms
Cancel booking request / Negative test cases / Cancel booking request not found 3✅ 14ms
Cancel booking request / Negative test cases / Test: Cancel twice should fail / Cancel booking request first time 3✅ 22ms
Cancel booking request / Negative test cases / Test: Cancel twice should fail / Cancel booking request not found Copy 3✅ 16ms
Cancel booking request / Negative test cases / Test: Cancel twice should fail / Create a booking request to be canceled 2✅ 26ms
Cancel booking request / Positive test cases / Test: Decline confirmed booking request (shipper) / Create a booking request 3✅ 141ms
Cancel booking request / Positive test cases / Test: Decline confirmed booking request (shipper) / Decline the new booking request 3✅ 24ms
Cancel booking request / Positive test cases / Test: Decline confirmed booking request (shipper) / POST Shipment to confirm booking 3✅ 186ms
Cancel booking request / Positive test cases / Test: Decline confirmed booking request (shipper) / Trigger validation 2✅ 143ms
Cancel booking request / Positive test cases / Test: Reject newly created booking request (shipper) / Create a booking request to be rejected 3✅ 398ms
Cancel booking request / Positive test cases / Test: Reject newly created booking request (shipper) / Reject the new booking request 4✅ 63ms
Cancel booking request / Test: Cancel newly created booking request / Cancel the new booking request 4✅ 38ms
Cancel booking request / Test: Cancel newly created booking request / Create a booking request to be canceled 3✅ 46ms
E2E Tests / Positive Tests / Basic [Booking Request to TD] / Approve TransportDocument 2✅ 28ms
E2E Tests / Positive Tests / Basic [Booking Request to TD] / Booking by carrierBookingRequestReference 2✅ 40ms
E2E Tests / Positive Tests / Basic [Booking Request to TD] / Create a booking request 2✅ 40ms
E2E Tests / Positive Tests / Basic [Booking Request to TD] / Create Shipping instruction 2✅ 88ms
E2E Tests / Positive Tests / Basic [Booking Request to TD] / Issue draft TD 3✅ 166ms
E2E Tests / Positive Tests / Basic [Booking Request to TD] / Issue TransportDocument 2✅ 28ms
E2E Tests / Positive Tests / Basic [Booking Request to TD] / Issued TransportDocument by transportdocument reference 2✅ 49ms
E2E Tests / Positive Tests / Basic [Booking Request to TD] / POST Confirmed Booking 3✅ 47ms
E2E Tests / Positive Tests / Basic [Booking Request to TD] / Shipment by carrierBookingReference 1✅ 36ms
E2E Tests / Positive Tests / Basic [Booking Request to TD] / TransportDocument by transportdocument reference 2✅ 46ms
E2E Tests / Positive Tests / Basic [Booking Request to TD] / Trigger validation 2✅ 40ms
E2E Tests / Positive Tests / Basic [Booking Request to TD] / Validate Shipping instruction 2✅ 64ms
E2E Tests / Positive Tests / Basic [Booking Request to TD] / Verify saved shipping instruction 2✅ 33ms
GET Booking request / Negative test cases / Booking by carrierBookingRequestRereference 6✅ 54ms
GET Booking request / Negative test cases / Booking not found 6✅ 24ms
GET Booking request / Positive test cases / Booking by carrierBookingRequestReference 5✅ 460ms
Get Confirmed Booking / Negative test cases / Confirmed Booking by carrierBookingReference 6✅ 6ms
Get Confirmed Booking / Negative test cases / Confirmed Booking not found 6✅ 10ms
Get Confirmed Booking / Positive test cases / Confirmed Booking by carrierBookingReference 5✅ 79ms
GET ShippingInstruction / Negative test cases / ShippingInstruction by shippingInstructionReference 6✅ 24ms
GET ShippingInstruction / Negative test cases / ShippingInstruction not found 6✅ 63ms
Get TransportDocument / Negative test cases / TransportDocument by transportdocument reference Not found 6✅ 10ms
Get TransportDocument / Positive test cases / TransportDocument by transportdocument reference 4✅ 73ms
Post booking request / Negative test cases / Test: Post booking request with dates in the past / Create a booking request 2✅ 44ms
Post booking request / Negative test cases / Test: Post booking request with dates in the past / Trigger validation 1✅ 54ms
Post booking request / Negative test cases / Test: Post booking request with dates in the past / Verify saved carrierBookingRequestReference 3✅ 53ms
Post booking request / Negative test cases / Test: Post booking request with duplicate address / Create a booking request 2✅ 39ms
Post booking request / Negative test cases / Test: Post booking request with duplicate address / Trigger validation 2✅ 37ms
Post booking request / Negative test cases / Test: Post booking request with duplicate address / Verify saved carrierBookingRequestReference 3✅ 47ms
Post booking request / Negative test cases / Test: Post booking request with duplicate UNLocationCodes / Create a booking request 2✅ 53ms
Post booking request / Negative test cases / Test: Post booking request with duplicate UNLocationCodes / Trigger validation 2✅ 44ms
Post booking request / Negative test cases / Test: Post booking request with duplicate UNLocationCodes / Verify saved carrierBookingRequestReference 3✅ 36ms
Post booking request / Negative test cases / Test: Post booking request with invalid OuterPackaging imoPackageCode / Create a booking request 3✅ 12ms
Post booking request / Negative test cases / Test: Post booking request with invalid OuterPackaging numberOfPackages / Create a booking request 3✅ 12ms
Post booking request / Negative test cases / Test: Post booking request with invalid OuterPackaging packageCode / Create a booking request 3✅ 24ms
Post booking request / Negative test cases / Test: Post booking request with invalid party contact details / Create a booking request 3✅ 19ms
Post booking request / Negative test cases / Test: Post booking request with invalid party function code / Create a booking request 2✅ 60ms
Post booking request / Negative test cases / Test: Post booking request with invalid party function code / Trigger validation 2✅ 28ms
Post booking request / Negative test cases / Test: Post booking request with invalid party function code / Verify saved carrierBookingRequestReference 3✅ 35ms
Post booking request / Negative test cases / Test: Post booking request with missing POD and PDE. / Create a booking request 2✅ 50ms
Post booking request / Negative test cases / Test: Post booking request with missing POD and PDE. / Trigger validation 2✅ 36ms
Post booking request / Negative test cases / Test: Post booking request with missing POD and PDE. / Verify saved carrierBookingRequestReference 3✅ 40ms
Post booking request / Positive test cases / Test: Post a booking and validate / Create a booking request 2✅ 115ms
Post booking request / Positive test cases / Test: Post a booking and validate / Trigger validation 1✅ 58ms
Post booking request / Positive test cases / Test: Post a booking and validate / Verify saved carrierBookingRequestReference 3✅ 66ms
POST Confirmed Booking / Negative test cases / Test: Post Confirmed Booking where all Shipment locations do not appear oin Transport Locations / Create a booking request 2✅ 42ms
POST Confirmed Booking / Negative test cases / Test: Post Confirmed Booking where all Shipment locations do not appear oin Transport Locations / POST Confirmed Booking 2✅ 40ms
POST Confirmed Booking / Negative test cases / Test: Post Confirmed Booking where POD is NOT the last location and PDE is not provided / Create a booking request 2✅ 37ms
POST Confirmed Booking / Negative test cases / Test: Post Confirmed Booking where POD is NOT the last location and PDE is not provided / POST Confirmed Booking 2✅ 33ms
POST Confirmed Booking / Negative test cases / Test: Post Confirmed Booking with NOT connected transport Plans / Create a booking request 2✅ 31ms
POST Confirmed Booking / Negative test cases / Test: Post Confirmed Booking with NOT connected transport Plans / POST Confirmed Booking 2✅ 42ms
Post Shipping instruction / Negative test cases / Create Shipping instruction invalid commoditySubreference 3✅ 11ms
Post Shipping instruction / Negative test cases / Create Shipping instruction invalid no consignmentItems 4✅ 14ms
Post Shipping instruction / Negative test cases / Create Shipping instruction invalid utilizedTransportEquipment 4✅ 33ms
Post Shipping instruction / Negative test cases / Test: Unknown carrier booking reference / Create Shipping instruction with unknown CBR 2✅ 54ms
Post Shipping instruction / Negative test cases / Test: Unknown carrier booking reference / Validate Shipping instruction 3✅ 106ms
Post Shipping instruction / Negative test cases / Test: Unknown carrier booking reference / Verify saved shipping instruction 2✅ 65ms
Post Shipping instruction / Positive test cases / Create Shipping instruction 3✅ 139ms
Post Shipping instruction / Positive test cases / Verify saved shipping instruction 3✅ 89ms
Put booking request / Negative test cases / Attempt PUT non-existing booking request 4✅ 15ms
Put booking request / Negative test cases / Test: Invalid PUT of existing booking request / Attempt to abuse PUT to set bookingRequestCreatedDateTime 4✅ 8ms
Put booking request / Negative test cases / Test: Invalid PUT of existing booking request / Attempt to abuse PUT to set bookingRequestUpdateDateTime 4✅ 18ms
Put booking request / Negative test cases / Test: Invalid PUT of existing booking request / Attempt to abuse PUT to set bookingStatus 4✅ 8ms
Put booking request / Negative test cases / Test: Invalid PUT of existing booking request / Create a booking request to be updated 2✅ 25ms
Put booking request / Negative test cases / Test: Invalid PUT of existing booking request / Invalid carrierBookingRequestReference in PUT 4✅ 10ms
Put booking request / Positive test cases / Test: Put a newly created booking request / Create a booking request to be updated 2✅ 19ms
Put booking request / Positive test cases / Test: Put a newly created booking request / Use PUT to update the booking 3✅ 75ms
Put booking request / Positive test cases / Test: Put a newly created booking request / Verify updated carrierBookingRequestReference 3✅ 23ms

✅ Cancel booking request / Negative test cases / Cancel Booking Request invalid documentStatus

DcsaEDocumentation
  ✅ Status code is 400
  ✅ Error reason is documentStatus
  ✅ Error message is as expected

✅ Cancel booking request / Negative test cases / Cancel booking request not found

DcsaEDocumentation
  ✅ Status code is 404
  ✅ Error reason is notFound
  ✅ Error message is as expected

✅ Cancel booking request / Negative test cases / Test: Cancel twice should fail / Cancel booking request first time

DcsaEDocumentation
  ✅ Status code is 200
  ✅ bookingStatus must be CANCELLED
  ✅ carrierBookingRequestReference must be as expected

✅ Cancel booking request / Negative test cases / Test: Cancel twice should fail / Cancel booking request not found Copy

DcsaEDocumentation
  ✅ Status code is 409
  ✅ Error reason is conflict
  ✅ Error message is as expected

✅ Cancel booking request / Negative test cases / Test: Cancel twice should fail / Create a booking request to be canceled

DcsaEDocumentation
  ✅ Status code is 201
  ✅ bookingStatus is RECEIVED

✅ Cancel booking request / Positive test cases / Test: Decline confirmed booking request (shipper) / Create a booking request

DcsaEDocumentation
  ✅ Schema is valid
  ✅ Status code is 201
  ✅ bookingStatus is RECEIVED

✅ Cancel booking request / Positive test cases / Test: Decline confirmed booking request (shipper) / Decline the new booking request

DcsaEDocumentation
  ✅ Schema is valid
  ✅ Status code is 200
  ✅ bookingStatus must be DECLINED

✅ Cancel booking request / Positive test cases / Test: Decline confirmed booking request (shipper) / POST Shipment to confirm booking

DcsaEDocumentation
  ✅ HTTP code is correct
  ✅ Booking status is correct
  ✅ Has CBR

✅ Cancel booking request / Positive test cases / Test: Decline confirmed booking request (shipper) / Trigger validation

DcsaEDocumentation
  ✅ Status code is 200
  ✅ Booking status is correct

✅ Cancel booking request / Positive test cases / Test: Reject newly created booking request (shipper) / Create a booking request to be rejected

DcsaEDocumentation
  ✅ Schema is valid
  ✅ Status code is 201
  ✅ bookingStatus is RECEIVED

✅ Cancel booking request / Positive test cases / Test: Reject newly created booking request (shipper) / Reject the new booking request

DcsaEDocumentation
  ✅ Schema is valid
  ✅ Status code is 200
  ✅ bookingStatus must be REJECTED
  ✅ carrierBookingRequestReference must be as expected

✅ Cancel booking request / Test: Cancel newly created booking request / Cancel the new booking request

DcsaEDocumentation
  ✅ Schema is valid
  ✅ Status code is 200
  ✅ bookingStatus must be CANCELLED
  ✅ carrierBookingRequestReference must be as expected

✅ Cancel booking request / Test: Cancel newly created booking request / Create a booking request to be canceled

DcsaEDocumentation
  ✅ Schema is valid
  ✅ Status code is 201
  ✅ bookingStatus is RECEIVED

✅ E2E Tests / Positive Tests / Basic [Booking Request to TD] / Approve TransportDocument

DcsaEDocumentation
  ✅ Document status is correct
  ✅ Status code is 200

✅ E2E Tests / Positive Tests / Basic [Booking Request to TD] / Booking by carrierBookingRequestReference

DcsaEDocumentation
  ✅ Schema is valid
  ✅ Status code is 200

✅ E2E Tests / Positive Tests / Basic [Booking Request to TD] / Create a booking request

DcsaEDocumentation
  ✅ Status code is 201
  ✅ bookingStatus is RECEIVED

✅ E2E Tests / Positive Tests / Basic [Booking Request to TD] / Create Shipping instruction

DcsaEDocumentation
  ✅ Status code is 201
  ✅ documentStatus is RECEIVED

✅ E2E Tests / Positive Tests / Basic [Booking Request to TD] / Issue draft TD

DcsaEDocumentation
  ✅ HTTP code is correct
  ✅ Document status is correct
  ✅ Has CBR

✅ E2E Tests / Positive Tests / Basic [Booking Request to TD] / Issue TransportDocument

DcsaEDocumentation
  ✅ Document status is correct
  ✅ Status code is 200

✅ E2E Tests / Positive Tests / Basic [Booking Request to TD] / Issued TransportDocument by transportdocument reference

DcsaEDocumentation
  ✅ Schema is valid
  ✅ Status code is 200

✅ E2E Tests / Positive Tests / Basic [Booking Request to TD] / POST Confirmed Booking

DcsaEDocumentation
  ✅ HTTP code is correct
  ✅ Booking status is correct
  ✅ Has CBR

✅ E2E Tests / Positive Tests / Basic [Booking Request to TD] / Shipment by carrierBookingReference

DcsaEDocumentation
  ✅ Response contains mandatory parent fields

✅ E2E Tests / Positive Tests / Basic [Booking Request to TD] / TransportDocument by transportdocument reference

DcsaEDocumentation
  ✅ Schema is valid
  ✅ Status code is 200

✅ E2E Tests / Positive Tests / Basic [Booking Request to TD] / Trigger validation

DcsaEDocumentation
  ✅ Status code is 200
  ✅ Booking status is correct

✅ E2E Tests / Positive Tests / Basic [Booking Request to TD] / Validate Shipping instruction

DcsaEDocumentation
  ✅ Status code is correct
  ✅ documentStatus is RECEIVED

✅ E2E Tests / Positive Tests / Basic [Booking Request to TD] / Verify saved shipping instruction

DcsaEDocumentation
  ✅ Status code is 200
  ✅ Response contains updated values

✅ GET Booking request / Negative test cases / Booking by carrierBookingRequestRereference

DcsaEDocumentation
  ✅ API-Version is present
  ✅ API-Version header is set correctly
  ✅ Schema is valid
  ✅ Status code is 400
  ✅ Error reason is invalidInput
  ✅ carrierBookingRequestReference must contain a valid value

✅ GET Booking request / Negative test cases / Booking not found

DcsaEDocumentation
  ✅ API-Version is present
  ✅ API-Version header is set correctly
  ✅ Schema is valid
  ✅ Status code is 404
  ✅ Error reason is notFound
  ✅ DocumentStatus must contain a valid value

✅ GET Booking request / Positive test cases / Booking by carrierBookingRequestReference

DcsaEDocumentation
  ✅ API-Version is present
  ✅ API-Version header is set correctly
  ✅ Schema is valid
  ✅ Status code is 200
  ✅ Response contains carrier provided fields

✅ Get Confirmed Booking / Negative test cases / Confirmed Booking by carrierBookingReference

DcsaEDocumentation
  ✅ API-Version is present
  ✅ API-Version header is set correctly
  ✅ Schema is valid
  ✅ Status code is 400
  ✅ Error reason is invalidInput
  ✅ carrierBookingReference size must be between 0 and 35

✅ Get Confirmed Booking / Negative test cases / Confirmed Booking not found

DcsaEDocumentation
  ✅ API-Version is present
  ✅ API-Version header is set correctly
  ✅ Schema is valid
  ✅ Status code is 404
  ✅ Error reason is notFound
  ✅ No Shipment found

✅ Get Confirmed Booking / Positive test cases / Confirmed Booking by carrierBookingReference

DcsaEDocumentation
  ✅ API-Version is present
  ✅ API-Version header is set correctly
  ✅ Schema is valid
  ✅ Status code is 200
  ✅ Response contains mandatory parent fields

✅ GET ShippingInstruction / Negative test cases / ShippingInstruction by shippingInstructionReference

DcsaEDocumentation
  ✅ API-Version is present
  ✅ API-Version header is set correctly
  ✅ Schema is valid
  ✅ Status code is 400
  ✅ Error reason is invalidInput
  ✅ DocumentStatus must contain a valid value

✅ GET ShippingInstruction / Negative test cases / ShippingInstruction not found

DcsaEDocumentation
  ✅ API-Version is present
  ✅ API-Version header is set correctly
  ✅ Schema is valid
  ✅ Status code is 404
  ✅ Error reason is notFound
  ✅ DocumentStatus must contain a valid value

✅ Get TransportDocument / Negative test cases / TransportDocument by transportdocument reference Not found

DcsaEDocumentation
  ✅ API-Version is present
  ✅ API-Version header is set correctly
  ✅ Schema is valid
  ✅ Status code is 404
  ✅ Error reason is notFound
  ✅ DocumentStatus must contain a valid value

✅ Get TransportDocument / Positive test cases / TransportDocument by transportdocument reference

DcsaEDocumentation
  ✅ API-Version is present
  ✅ API-Version header is set correctly
  ✅ Schema is valid
  ✅ Status code is 200

✅ Post booking request / Negative test cases / Test: Post booking request with dates in the past / Create a booking request

DcsaEDocumentation
  ✅ Status code is 201
  ✅ bookingStatus is RECEIVED

✅ Post booking request / Negative test cases / Test: Post booking request with dates in the past / Trigger validation

DcsaEDocumentation
  ✅ Status code is 200

✅ Post booking request / Negative test cases / Test: Post booking request with dates in the past / Verify saved carrierBookingRequestReference

DcsaEDocumentation
  ✅ Schema is valid
  ✅ Status code is 200
  ✅ Response contains updated values

✅ Post booking request / Negative test cases / Test: Post booking request with duplicate address / Create a booking request

DcsaEDocumentation
  ✅ Status code is 201
  ✅ bookingStatus is RECEIVED

✅ Post booking request / Negative test cases / Test: Post booking request with duplicate address / Trigger validation

DcsaEDocumentation
  ✅ Status code is 200
  ✅ Reason: Duplicate addresses in shipment locations

✅ Post booking request / Negative test cases / Test: Post booking request with duplicate address / Verify saved carrierBookingRequestReference

DcsaEDocumentation
  ✅ Schema is valid
  ✅ Status code is 200
  ✅ Response contains updated values

✅ Post booking request / Negative test cases / Test: Post booking request with duplicate UNLocationCodes / Create a booking request

DcsaEDocumentation
  ✅ Status code is 201
  ✅ bookingStatus is RECEIVED

✅ Post booking request / Negative test cases / Test: Post booking request with duplicate UNLocationCodes / Trigger validation

DcsaEDocumentation
  ✅ Status code is 200
  ✅ Reason: Duplicate UNLocationCodes in shipment locations

✅ Post booking request / Negative test cases / Test: Post booking request with duplicate UNLocationCodes / Verify saved carrierBookingRequestReference

DcsaEDocumentation
  ✅ Schema is valid
  ✅ Status code is 200
  ✅ Response contains updated values

✅ Post booking request / Negative test cases / Test: Post booking request with invalid OuterPackaging imoPackageCode / Create a booking request

DcsaEDocumentation
  ✅ Status code is 400
  ✅ Error reason is invalid packageCode
  ✅ must match regex pattern

✅ Post booking request / Negative test cases / Test: Post booking request with invalid OuterPackaging numberOfPackages / Create a booking request

DcsaEDocumentation
  ✅ Status code is 400
  ✅ Error reason is invalid packageCode
  ✅ must be greater than 0

✅ Post booking request / Negative test cases / Test: Post booking request with invalid OuterPackaging packageCode / Create a booking request

DcsaEDocumentation
  ✅ Status code is 400
  ✅ Error reason is invalid packageCode
  ✅ must match regex pattern

✅ Post booking request / Negative test cases / Test: Post booking request with invalid party contact details / Create a booking request

DcsaEDocumentation
  ✅ Status code is 400
  ✅ Error reason is invalid PartyContactDetails
  ✅ PartyContactDetails must contain either phone or email

✅ Post booking request / Negative test cases / Test: Post booking request with invalid party function code / Create a booking request

DcsaEDocumentation
  ✅ Status code is 201
  ✅ bookingStatus is RECEIVED

✅ Post booking request / Negative test cases / Test: Post booking request with invalid party function code / Trigger validation

DcsaEDocumentation
  ✅ Status code is 200
  ✅ requestedChanges should contain partyFunction as problem

✅ Post booking request / Negative test cases / Test: Post booking request with invalid party function code / Verify saved carrierBookingRequestReference

DcsaEDocumentation
  ✅ Schema is valid
  ✅ Status code is 200
  ✅ Response contains updated values

✅ Post booking request / Negative test cases / Test: Post booking request with missing POD and PDE. / Create a booking request

DcsaEDocumentation
  ✅ Status code is 201
  ✅ bookingStatus is RECEIVED

✅ Post booking request / Negative test cases / Test: Post booking request with missing POD and PDE. / Trigger validation

DcsaEDocumentation
  ✅ Status code is 200
  ✅ Reason: POD or PED not found in shipment locations

✅ Post booking request / Negative test cases / Test: Post booking request with missing POD and PDE. / Verify saved carrierBookingRequestReference

DcsaEDocumentation
  ✅ Schema is valid
  ✅ Status code is 200
  ✅ Response contains updated values

✅ Post booking request / Positive test cases / Test: Post a booking and validate / Create a booking request

DcsaEDocumentation
  ✅ Status code is 201
  ✅ bookingStatus is RECEIVED

✅ Post booking request / Positive test cases / Test: Post a booking and validate / Trigger validation

DcsaEDocumentation
  ✅ Status code is 200

✅ Post booking request / Positive test cases / Test: Post a booking and validate / Verify saved carrierBookingRequestReference

DcsaEDocumentation
  ✅ Schema is valid
  ✅ Status code is 200
  ✅ Response contains updated values

✅ POST Confirmed Booking / Negative test cases / Test: Post Confirmed Booking where all Shipment locations do not appear oin Transport Locations / Create a booking request

DcsaEDocumentation
  ✅ Status code is 201
  ✅ bookingStatus is RECEIVED

✅ POST Confirmed Booking / Negative test cases / Test: Post Confirmed Booking where all Shipment locations do not appear oin Transport Locations / POST Confirmed Booking

DcsaEDocumentation
  ✅ Status code is 400
  ✅ Reason: All Shipment locations with codes: PRE, POL, POD, PDE. Must appear in Transport locations

✅ POST Confirmed Booking / Negative test cases / Test: Post Confirmed Booking where POD is NOT the last location and PDE is not provided / Create a booking request

DcsaEDocumentation
  ✅ Status code is 201
  ✅ bookingStatus is RECEIVED

✅ POST Confirmed Booking / Negative test cases / Test: Post Confirmed Booking where POD is NOT the last location and PDE is not provided / POST Confirmed Booking

DcsaEDocumentation
  ✅ Status code is 400
  ✅ Reason: POD must be the last location if PDE is not provided

✅ POST Confirmed Booking / Negative test cases / Test: Post Confirmed Booking with NOT connected transport Plans / Create a booking request

DcsaEDocumentation
  ✅ Status code is 201
  ✅ bookingStatus is RECEIVED

✅ POST Confirmed Booking / Negative test cases / Test: Post Confirmed Booking with NOT connected transport Plans / POST Confirmed Booking

DcsaEDocumentation
  ✅ Status code is 400
  ✅ Reason: TransportPlan is not connected

✅ Post Shipping instruction / Negative test cases / Create Shipping instruction invalid commoditySubreference

DcsaEDocumentation
  ✅ Status code is 400
  ✅ Error reason is invalidInput
  ✅ DocumentStatus must contain a valid value

✅ Post Shipping instruction / Negative test cases / Create Shipping instruction invalid no consignmentItems

DcsaEDocumentation
  ✅ Schema is valid
  ✅ Status code is 400
  ✅ Error reason is invalidInput
  ✅ DocumentStatus must contain a valid value

✅ Post Shipping instruction / Negative test cases / Create Shipping instruction invalid utilizedTransportEquipment

DcsaEDocumentation
  ✅ Schema is valid
  ✅ Status code is 400
  ✅ Error reason is invalidInput
  ✅ DocumentStatus must contain a valid value

✅ Post Shipping instruction / Negative test cases / Test: Unknown carrier booking reference / Create Shipping instruction with unknown CBR

DcsaEDocumentation
  ✅ Status code is 201
  ✅ documentStatus is RECEIVED

✅ Post Shipping instruction / Negative test cases / Test: Unknown carrier booking reference / Validate Shipping instruction

DcsaEDocumentation
  ✅ Status code is correct
  ✅ documentStatus is correct
  ✅ error-message is correct

✅ Post Shipping instruction / Negative test cases / Test: Unknown carrier booking reference / Verify saved shipping instruction

DcsaEDocumentation
  ✅ Status code is 200
  ✅ Response contains updated values

✅ Post Shipping instruction / Positive test cases / Create Shipping instruction

DcsaEDocumentation
  ✅ Schema is valid
  ✅ Status code is 201
  ✅ documentStatus is RECEIVED

✅ Post Shipping instruction / Positive test cases / Verify saved shipping instruction

DcsaEDocumentation
  ✅ Schema is valid
  ✅ Status code is 200
  ✅ Response contains updated values

✅ Put booking request / Negative test cases / Attempt PUT non-existing booking request

DcsaEDocumentation
  ✅ Status code is 404
  ✅ Schema is valid
  ✅ Error reason is notFound
  ✅ Error message mentions carrierBookingRequestReference as an issue

✅ Put booking request / Negative test cases / Test: Invalid PUT of existing booking request / Attempt to abuse PUT to set bookingRequestCreatedDateTime

DcsaEDocumentation
  ✅ Status code is 400
  ✅ Schema is valid
  ✅ Error reason is invalidInput
  ✅ Error message mentions bookingRequestCreatedDateTime as an issue

✅ Put booking request / Negative test cases / Test: Invalid PUT of existing booking request / Attempt to abuse PUT to set bookingRequestUpdateDateTime

DcsaEDocumentation
  ✅ Status code is 400
  ✅ Schema is valid
  ✅ Error reason is invalidInput
  ✅ Error message mentions bookingRequestUpdateDateTime as an issue

✅ Put booking request / Negative test cases / Test: Invalid PUT of existing booking request / Attempt to abuse PUT to set bookingStatus

DcsaEDocumentation
  ✅ Status code is 400
  ✅ Schema is valid
  ✅ Error reason is invalidInput
  ✅ Error message mentions bookingStatus as an issue

✅ Put booking request / Negative test cases / Test: Invalid PUT of existing booking request / Create a booking request to be updated

DcsaEDocumentation
  ✅ Status code is 201
  ✅ bookingStatus is RECEIVED

✅ Put booking request / Negative test cases / Test: Invalid PUT of existing booking request / Invalid carrierBookingRequestReference in PUT

DcsaEDocumentation
  ✅ Status code is 400
  ✅ Schema is valid
  ✅ Error reason is invalidInput
  ✅ Error message mentions carrierBookingRequestReference as an issue

✅ Put booking request / Positive test cases / Test: Put a newly created booking request / Create a booking request to be updated

DcsaEDocumentation
  ✅ Status code is 201
  ✅ bookingStatus is RECEIVED

✅ Put booking request / Positive test cases / Test: Put a newly created booking request / Use PUT to update the booking

DcsaEDocumentation
  ✅ Status code is 200
  ✅ bookingStatus must be PENDING UPDATES CONFIRMATION
  ✅ carrierBookingRequestReference must be as expected

✅ Put booking request / Positive test cases / Test: Put a newly created booking request / Verify updated carrierBookingRequestReference

DcsaEDocumentation
  ✅ Schema is valid
  ✅ Status code is 200
  ✅ Response contains updated values