/
NUTRINTG Test cases

NUTRINTG Test cases

  1. CDP-Profile-Creation-WrongTierCode
    Pre-requisite: Profile for CDP is correctly configured as stated in NUTRINTG Configuration
    Request: POST to cdp-profile-service (/profile) with correct profile request but with not valid TierCode
    Result:

    • Request to CDP is rejected in cdp-profile-adapter

    • Request was not send to IMS

    • Trace Service returns events from cdp-profile-service, middleware-message-router, cdp-profile-adapter

  2. CDP-Profile-Creation-IMSNotConfigured
    Pre-requisite: Profile for CDP is correctly configured as stated in NUTRINTG Configuration without middlewareInstantMessageService
    Request: POST to cdp-profile-service (/profile) with correct profile request
    Result:

    • Request to CDP is accepted by Epsilon, and the profile can be found

    • Request was rejected in IMS due to missing configuration, the proper message is logged

    • Trace Service returns events from cdp-profile-service, middleware-message-router, cdp-profile-adapter, middleware-message-router (again), IMS

  3. CDP-Profile-Creation-Correct
    Pre-requisite: Profile for CDP is correctly configured as stated in NUTRINTG Configuration
    Request: POST to cdp-profile-service (/profile) with correct profile request
    Result:

    • Request to CDP is accepted by Epsilon, and the profile can be found

    • Request was processed by IMS

    • Request has been pushed to Customer Journey with ContactKey as IndividualId and non-empty IndividualId

    • Trace Service returns events from cdp-profile-service, middleware-message-router, cdp-profile-adapter, middleware-message-router (again), IMS


  4. Shopify-CDP-Profile-Creation-Correct
    Pre-requisite: Profile for CDP is correctly configured as stated in NUTRINTG Configuration
    Request: POST from Shopify shop webhook
    Result:

    • Request to CDP is accepted by Epsilon, and the profile can be found

    • Request was processed by IMS

    • Request has been pushed to Customer Journey with ContactKey as IndividualId and non-empty IndividualId


  5. CDS-Profile-Creation-WrongBucketConfiguration
    Pre-requisite: Profile for CDS is correctly configured as stated in NUTRINTG Configuration , but with wrong bucketId in cds-adapter configuration
    Request: POST to cdp-profile-service (/profile) with correct profile request but with not valid TierCode
    Result:

    • Request to CDS is rejected

    • Request was not sent to IMS

    • Trace Service returns events from cdp-profile-service, middleware-message-router, cds-adapter

  6. CDS-Profile-Creation-WrongIMSConfigurationAndMissingAccountSourceInSearchService
    Pre-requisite: Profile for CDS is correctly configured as stated in NUTRINTG Configuration , but with isCDPTarget=true for IMS configuration and search service does not have such Account Source configured
    Request: to cdp-profile-service (/profile) with correct profile
    Results:

    • Request to CDS is accepted

    • Request was sent to IMS, but the process has failed due to search service does not have this Account Source

    • Trace Service returns events from cdp-profile-service, middleware-message-router, cds-adapter, middleware-message-router (again), IMS

  7. CDS-Profile-Creation-WrongIMSConfigurationAndProfileNotFoundInCDP
    Pre-requisite: Profile for CDS is correctly configured as stated in NUTRINTG Configuration , but with isCDPTarget=true for IMS configuration and search service for given Account Source is configured to search in CDP system
    Request: to cdp-profile-service (/profile) with correct profile
    Results:

    • Request to CDS is accepted

    • Request was sent to IMS, but the process has failed due to profile cannot be found in CDP

    • Trace Service returns events from cdp-profile-service, middleware-message-router, cds-adapter, middleware-message-router (again), IMS

  8. CDS-Profile-Creation-Correct
    Pre-requisite: Profile for CDS is correctly configured as stated in NUTRINTG Configuration
    Request: POST to cdp-profile-service (/profile) with correct profile request
    Results:

    • Request to CDS is accepted

    • Request was sent to IMS, and processed successfully

    • Trace Service returns events from cdp-profile-service, middleware-message-router, cds-adapter, middleware-message-router (again), IMS and returns Job Status [READY]

    • Request has been pushed to Customer Journey with ContactKey as EmailAddress and empty IndividualId


  9. Shopify-CDS-Profile-Creation-Correct
    Pre-requisite: Profile for CDS is correctly configured as stated in NUTRINTG Configuration
    Request: from Shopify shop webhook
    Result:

    • Request to CDS is accepted, and the profile can be found

    • Request was processed by IMS

    • Request has been pushed to Customer Journey with ContactKey as EmailAddress and empty IndividualId


  10. CDP-Profile-Update-Correct
    Pre-requisite: Profile for CDP is correctly configured as stated in NUTRINTG Configuration
    Request: PUT to cdp-profile-service (/profile) with correct profile request
    Result:

    • Request to CDP is accepted by Epsilon, and the updated profile can be found

    • Request was not processed by IMS, due to all profile updates are supposed to be not processed

  11. Shopify-CDS-Profile-Update-Correct
    Pre-requisite: Profile for CDS is correctly configured as stated in NUTRINTG Configuration
    Request: from Shopify shop webhook
    Result:

    • Request to CDS is accepted, and the updated profile can be found

    • Request was not processed by IMS, due to all profile updates are supposed to be not processed


  12. Shopify-CDP-Order-Creation-Correct
    Pre-requisite: Order for CDP is correctly configured as stated in NUTRINTG Configuration
    Request: from Shopify shop webhook with existing emailAddress in CDP, header X-Shopify-Topic='orders/create', and financial_status set to 'paid'
    Result:

    • Request to CDP is accepted

    • Request was processed by IMS

    • Request has been pushed to Order DE with order lines and Order Journey with ContactKey as IndividualId and non-empty IndividualId

  13. Shopify-CDP-Order-Updated-Correct
    Pre-requisite: Order for CDP is correctly configured as stated in NUTRINTG Configuration
    Request: from Shopify shop webhook with existing emailAddress in CDP, header X-Shopify-Topic='orders/updated' and financial_status set to 'paid'
    Result:

    • Request to CDP is accepted

    • Request was processed by IMS

    • Request has been pushed to Order DE with order lines and Order Journey with ContactKey as IndividualId and non-empty IndividualId

  14. Shopify-CDP-Order-Creation-InitialFinancialStatus
    Pre-requisite: Order for CDP is correctly configured as stated in NUTRINTG Configuration
    Request: from Shopify shop webhook with existing emailAddress in CDP, and financial_status set to 'initial'
    Result:

    • Request to CDP is accepted

    • Request was processed by IMS, but message dropped since only financial_status='paid' are pushed to SFMC Journey

  15. Shopify-CDP-Order-Creation-NotExistingEmailAddress
    Pre-requisite: Order for CDP is correctly configured as stated in NUTRINTG Configuration
    Request: from Shopify shop webhook with non-existing emailAddress in CDP
    Result:

    • Request to CDP is accepted

    • Request was not processed by IMS, due to non-existing emailAddress in CDP. The message is returned to queue and will be processed after some time.

  16. Shopify-CDS-Order-Creation-Correct
    Pre-requisite: Order for CDS is correctly configured as stated in NUTRINTG Configuration
    Request: from Shopify shop webhook
    Result:

    • Request to CDS is accepted, and order can br found

    • Request was processed by IMS

    • Request has been pushed to Order DE with order lines and Order Journey with ContactKey as EmailAddress and empty IndividualId