TM Forum Community

 View Only
  • 1.  Need clarification on TMF622 Product Order orderDate

    Posted 12 days ago

    We are testing our APIs of productOrder with TMF 622 CTK. Couple of test cases are failing for GET API with AssertionError: expected [ Array(1) ] to deeply equal [ Array(1) ] in which orderDate is different from the expected date by few milliseconds. My question is which date is compared while fetching product order orderDate?


    #General

    ------------------------------
    Anshul Khanna
    Bharti Airtel Ltd
    ------------------------------


  • 2.  RE: Need clarification on TMF622 Product Order orderDate

    Posted 11 days ago

    When CTK runs a POST operation, the service implementation saves the order data in persistent storage, and CTK stores the same response in its local cache. During subsequent GET operations, the service must return the exact same data; otherwise, CTK validation will fail because it compares the cached POST response with the current GET response.

    Try trimming the posted timestamp/date value to seconds precision before saving or returning it.



    ------------------------------
    Subhanshu Shukla
    Asst Vice President
    ------------------------------