Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-5349

Fix flaky propagator templates test

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Cannot Reproduce
    • Icon: Undefined Undefined
    • None
    • ACM 2.8.0
    • GRC
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • GRC Sprint 2023-10
    • No

       

        [FAILED] Timed out after 30.000s.
      
            Expected
      
            	map[string]interface {}{"disabled":false, "policy-templates":[]interface {}{map[string]interface {}{"objectDefinition":map[string]interface {}{"apiVersion":"policy.open-cluster-management.io/v1", "kind":"ConfigurationPolicy", "metadata":map[string]interface {}{"name":"case9-test-configpolicy"}, "spec":map[string]interface {}{"namespaceSelector":map[string]interface {}{"exclude":[]interface {}{"kube-*"}, "include":[]interface {}{"default"}}, "object-templates":[]interface {}{map[string]interface {}{"complianceType":"musthave", "objectDefinition":map[string]interface {}{"apiVersion":"v1", "data":map[string]interface {}{"Clusterid":"{{ fromClusterClaim id.openshift.io }}", "Clustername":"managed1", "Vlanid":123, "autoindent-test":"Do.\nOr do not.\nThere is no try.\n", "indent-test":"Do.\nOr do not.\nThere is no try.\n", "label-vendor-test":"auto-detect\n"}, "kind":"ConfigMap", "metadata":map[string]interface {}{"name":"case9-test-configmap", "namespace":"test"}}}}, "remediationAction":"inform"}}}}, "remediationAction":"inform"}
          
            to equal
      
            	map[string]interface {}{"disabled":false, "policy-templates":[]interface {}{map[string]interface {}{"objectDefinition":map[string]interface {}{"apiVersion":"policy.open-cluster-management.io/v1", "kind":"ConfigurationPolicy", "metadata":map[string]interface {}{"name":"case9-test-configpolicy"}, "spec":map[string]interface {}{"namespaceSelector":map[string]interface {}{"exclude":[]interface {}{"kube-*"}, "include":[]interface {}{"default"}}, "object-templates":[]interface {}{map[string]interface {}{"complianceType":"musthave", "objectDefinition":map[string]interface {}{"apiVersion":"v1", "data":map[string]interface {}{"Clusterid":"{{ fromClusterClaim id.openshift.io }}", "Clustername":"managed1", "Vlanid":123, "autoindent-test":"Do.\nOr do not.\nThere is no try.\n", "indent-test":"Do.\nOr do not.\nThere is no try.\n", "label-vendor-test":"Fake\n"}, "kind":"ConfigMap", "metadata":map[string]interface {}{"name":"case9-test-configmap", "namespace":"test"}}}}, "remediationAction":"inform"}}}}, "remediationAction":"inform"}
      
            In [It] at: /home/runner/work/governance-policy-propagator/governance-policy-propagator/governance-policy-propagator/test/e2e/case9_templates_test.go:97 @ 05/05/23 20:22:33.185 

              Unassigned Unassigned
              rh-ee-dhaiduce Dale Haiducek
              Derek Ho Derek Ho
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: