Commit 2d612a54 authored by Bostjan Pintar's avatar Bostjan Pintar
Browse files

Http common

parent c31419dd
Loading
Loading
Loading
Loading
+151 −0
Original line number Diff line number Diff line
/*
Copyright (c) ETSI 2025.

This software is subject to copyrights owned by ETSI. Non-exclusive permission
is hereby granted, free of charge, to copy, reproduce and amend this file
under the following conditions: It is provided "as is", without warranty of any
kind, expressed or implied.

ETSI shall never be liable for any claim, damages, or other liability arising
from its use or inability of use.This permission does not apply to any documentation
associated with this file for which ETSI keeps all rights reserved. The present
copyright notice shall be included in all copies of whole or part of this
file and shall not imply any sub-license right.
*
*  @author   TTF T044
*/
 
 
 Package Rtp_Common {
    Domain {
        pics: 
            - NONE
        ;
        entities:
            - EPC_PCRF_A
            - EPC_PCRF_B
            - EPC_PGW_A
            - EPC_PGW_B
            - EPC_MME_A
            - EPC_MME_B
            - IMS_HSS_A
            - IMS_HSS_B
            - _5GC_PCF_A
        ;
        events:
            - initial_network_attachment
            - packets
            - media
            - filters
            - data
            - uses_correct_bearers
            - service_data_flows
        ;
    } // End of Domain section
    
Data {
        type STRING;
        type JSON;
        type string with s of type STRING;
        type IMSI;
        type TransportInfo;

        type HttpHeaders with
        // content_type is optional, since not present in GET and DELETE
            content_type of type STRING,    
            authorization of type STRING,
            accept of type STRING
        ;

        type HTTP_REQUEST with
            uri of type STRING
        ;
 
        type HttpMsg with
            uri of type  STRING,
            headers of type HttpHeaders,
            status_code of type STRING,
            // body is optional, since not present in GET and DELETE 
            body of type JSON   
        ;

        STRING "application/json;charset=utf-8";
        string CONTENT_JSON containing s set to "application/json;charset=utf-8";
        STRING VALID_TOKEN;
        STRING NOT_VALID_TOKEN;
        STRING "application/json";
        STRING "application/octet-stream";

        HttpHeaders vHeadersInvalidToken containing
           authorization set to NOT_VALID_TOKEN
        ;

        HttpHeaders vHeadersGet containing
            accept set to "application/json",
            authorization set to VALID_TOKEN
        ;

        HttpHeaders vHeadersAcceptKO containing
            accept set to "application/octet-stream",
            authorization set to VALID_TOKEN
        ;

        HttpHeaders vHeaders containing
            accept set to CONTENT_JSON,
            content_type set to CONTENT_JSON,
            authorization set to VALID_TOKEN
        ;

        HttpHeaders vHeadersResponse containing
            content_type set to CONTENT_JSON
        ;

        HttpMsg vGET containing
            headers set to vHeadersGet
        ;

        HttpMsg vPOST containing
            headers set to vHeaders
        ;

        HttpMsg vPUT containing
            headers set to vHeaders
        ;

        HttpMsg vDELETE containing
            headers set to vHeadersGet
        ;

        HttpMsg HTTP_RESPONSE containing
            headers set to vHeadersResponse
        ;

    }

    
    Configuration {
        Interface Type defaultGT accepts HTTP_REQUEST;
        Component Type HttpComp with gate g of type defaultGT;
        
          Test Configuration CF_VoNR_INT_ES
                containing 
                    Tester component IMS_PCSCF_A of type HttpComp
                    Tester component _5GC_PCF_A of type HttpComp
                    
                    SUT component IMS_A of type HttpComp
                    connection between IMS_PCSCF_A.g and _5GC_PCF_A.g
          ;
          
          Test Configuration CF_VoNR_RMI_ES
                containing 
                    Tester component EPC_PCF_A of type HttpComp
                    Tester component EPC_PCF_B of type HttpComp
                    
                    SUT component IMS_A of type HttpComp
                    connection between EPC_PCF_A.g and EPC_PCF_A.g
          ;
          
    } // End of Configuration section
    
} // End of Package Diameter_Common