Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-5747

Position in mapping rule is ignored

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • 2.9 CR1
    • 3scale Operator
    • None
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

    Description

      I've used

      ---                                           
      apiVersion: capabilities.3scale.net/v1beta1   
      kind: Backend                                 
      metadata:                                     
        name: backend1                              
        namespace: mkudlej                          
      spec:                                         
        name: "Backend 1"                           
        privateBaseURL: "https://httpbin.org/get"   
        systemName: backend1                        
        providerAccountRef:                         
          name: tenant-3scale                       
        description: "Description 1"                
        mappingRules:                               
          - httpMethod: PATCH                       
            pattern: "/patch$"                      
            metricMethodRef: metric1                
            increment: 10                           
            position: 2                             
          - httpMethod: GET                         
            pattern: "/get$"                        
            metricMethodRef: method1                
            increment: 1                            
            position: 1                             
        metrics:                                    
          metric1:                                  
            friendlyName: "Mjetric1"                
            unit: hrusky                            
            description: "Djesckription"            
        methods:                                    
          method1:                                  
            friendlyName: "Friendly name"           
            description: "Description 1"            
      

      And position of mapping rule in yaml was ignored, see:

      PATCH	/patch$	10	Mjetric1	false	1
      GET	/get$	1	Friendly name	false	2
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mkudlej@redhat.com Martin Kudlej
              Hugo Chrast Hugo Chrast
              Miguel Soriano Miguel Soriano
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: