Open APIs

 View Only
Expand all | Collapse all

TMF640 CTK config.json headers ignored

  • 1.  TMF640 CTK config.json headers ignored

    TM Forum Member
    Posted Feb 14, 2023 10:17

    I am currently working in the implementation of TMF640 OpenAPI but I am facing issues when running the CTK script.

    I am configuring the CTK with the following config.json:

    {
        "url": "http://localhost:8480/tmf-api/ServiceActivationAndConfiguration/v4/",
        "headers": {
            "Accept": "application/json",
            "Content-Type": "application/json",
            "X-Service-Ids": "0-1-5-1,0-1-5-3"
        },
        "payloads": {
            "Service": {
                "POST": {
                    "payload": {
                        "@type": "Service",
                        "state": "active",
                        "category": "",
                        "description": "",
                        "feature": [],
                        "serviceType": "MtxOpSubscriptionCreate",
                        "serviceSpecification":{
                            "id":"1"
                        },
                        "serviceCharacteristic": [
                            {
                                "id": "1",
                                "name": "MtxRequestSubscriptionCreate",
                                "valueType": "object",
                                "value":
                                {
                                    "Status": 1,
                                }
                            }
                        ]
                      }
                }
            }
        }
    }

    As you can see I am passing a header X-Service-Ids with the list of ids I want to query, for some reason the CTK is ignoring that header.

    The first request that CTK triggers is precisely a GET/service retrieving the list of services, my API needs that header to be included for that request, but the header is not passed.

    There are two things that look wrong:

    1.- If CTK is executing the ctk/CTK-Service_Activation-4.0.0.postman_collection.json postman collection I don't understand why the first call performed is a GET/service instead o a POST/service which is the first request on that collection.

    2.- Why are the headers that I am setting in config.json not being passed to the GET request?

    I am able to do run CTK without any issues with TMF632 but CTK in TMF640 seems to be ignoring the headers in the config.json.



    ------------------------------
    Eduardo Sanchez
    MATRIXX Software
    ------------------------------


  • 2.  RE: TMF640 CTK config.json headers ignored

    TM Forum Member
    Posted Feb 14, 2023 10:30

    Hi Eduardo,

    We are also in contact with Nuno and investigating the CTK, I will come back to you as soon as we have an update.

    Best Regards,



    ------------------------------
    Henrique Rodrigues
    TM Forum
    ------------------------------



  • 3.  RE: TMF640 CTK config.json headers ignored

    TM Forum Member
    Posted Feb 22, 2023 08:36

    Hi Henrique,

    Did you get any update regarding this issue? We are trying to achieve conformance but this is currently blocking us from being able to perform the CTK tests.

    Thank you!



    ------------------------------
    Eduardo Sanchez
    MATRIXX Software
    ------------------------------



  • 4.  RE: TMF640 CTK config.json headers ignored

    TM Forum Member
    Posted Feb 24, 2023 10:42

    Hi @Eduardo Sanchez 

    I just released a new fix for TMF640 the headers are working on my environment now.

    Let me know if you still encouter any issues



    ------------------------------
    Victor Mari
    TM Forum
    ------------------------------



  • 5.  RE: TMF640 CTK config.json headers ignored

    TM Forum Member
    Posted Feb 24, 2023 11:35

    Great! 

    Where can I get access to the release? is it in the following link https://projects.tmforum.org/wiki/display/API/Open+API+Table?

    Thanks!



    ------------------------------
    Eduardo Sanchez
    MATRIXX Software
    ------------------------------



  • 6.  RE: TMF640 CTK config.json headers ignored

    TM Forum Member
    Posted Feb 24, 2023 11:47

    Yes that is the link for the production api table



    ------------------------------
    Victor Rodriguez
    TM Forum
    ------------------------------



  • 7.  RE: TMF640 CTK config.json headers ignored

    TM Forum Member
    Posted Feb 28, 2023 11:30

    Hi Victor,

    I was able to run the conformance tool with the new released version of CTK.

    Thanks for the quick response!



    ------------------------------
    Eduardo Sanchez
    MATRIXX Software
    ------------------------------



  • 8.  RE: TMF640 CTK config.json headers ignored

    TM Forum Member
    Posted Mar 01, 2023 11:33

    Hi @Victor Rodriguez

    I have noticed another problem with the 640 CTK, the third GET request of the N2 group targets the following URL:

    {{Service_Activation}}service?serviceDate="{{SERVICEDATESE01}}"

    That makes the serviceDate value include the double quotes at the beginning and end of the query parameter value. Based on Request For Comment (RFC) 1738 on Uniform Resource Locators the quote mark is considered as unsafe because and I quote "it is used to delimit URLs in some systems".

    I can add code in my microservice to ignore the quotes in that query parameter but it seems incorrect to have to add that logic in the microservice, in my opinion it should instead be changed in the test.

    Could that change be added please?

    Thank you!



    ------------------------------
    Eduardo Sanchez
    MATRIXX Software
    ------------------------------



  • 9.  RE: TMF640 CTK config.json headers ignored

    TM Forum Member
    Posted Mar 01, 2023 12:13

    Hi @Eduardo Sanchez 

    The quotes on the tests are incorrect, we will remove them.

    Thanks for the update.



    ------------------------------
    Victor Rodriguez
    TM Forum
    ------------------------------



  • 10.  RE: TMF640 CTK config.json headers ignored

    TM Forum Member
    Posted Mar 01, 2023 12:44

    Hi @Eduardo Sanchez 

    The table has been updated with the new changes for the ctk.



    ------------------------------
    Victor Rodriguez
    TM Forum
    ------------------------------



  • 11.  RE: TMF640 CTK config.json headers ignored

    TM Forum Member
    Posted Mar 02, 2023 04:16

    It's working now.

    Thank you for your quick response @Victor Rodriguez.



    ------------------------------
    Eduardo Sanchez
    MATRIXX Software
    ------------------------------