Uploaded image for project: 'Openshift sandboxed containers'
  1. Openshift sandboxed containers
  2. KATA-3268

Test case 43514-kata pod displaying correct overhead needs more info

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Medium Medium
    • None
    • None
    • automated tests
    • None
    • False
    • None
    • False
    • 0
    • 0

      Description

      Azure OCP 4.16.0-0.nightly-2024-08-08-161834

       OSC 1.6.0 GA peerpods

      Test  43514-kata pod displaying correct overhead

      launches a pod successfully

      kataPodObj __ = pod's json

      gets peer-pods- webhook deployment (ppVMResourceDefaults) as json string from

       

      -o=jsonpath={.spec.template.spec.containers[?(@.name=='"+ppWebhookDeploymentName+"')].env[?(@.name=='"+ppVMExtendedResourceEnv+"')].value}
       
       
      

       

      actualResourceLimit is kataPodObj's json spec.containers via
       

      gjson.Get(kataPodObj, "spec.containers").ForEach(func(key, container gjson.Result) bool {

      This is transformed each time it loops
       

      ppVMResourceDefaults = strings.Replace(ppVMResourceDefaults, ".", "\\.", -1)

      actualResourceLimit should == "resource.limits.".+ppVMResourceDefaults 
      fails because actualResourceLimit == ""

       

      err.logThe test log

      The error should have (the transformed) ppVMResourceDefaults, kataPodObj and container.String()  so we can see if the things were extracted properly from the json.  

       

              rhn-support-vvoronko Victor Voronkov
              tbuskey-rh Tom Buskey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: