Uploaded image for project: 'OpenShift Windows Containers'
  1. OpenShift Windows Containers
  2. WINC-818

Investigate if the Upgradeable condition is being tested in e2e suite

XMLWordPrintable

    • Icon: Spike Spike
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • 3
    • False
    • None
    • False
    • WINC - Sprint 226, WINC - Sprint 227

      Description

      We discovered that a test method validating the operator's Upgradeable condition may not actually be running. We need to ensure it is running properly as it's called at numerous places in the e2e test suite.

      Some initial investigation found that the `OPERATOR_CONDITION_NAME` env var may not be accessed/present as needed (printed some logs while running the e2e suite and os.LookupEnv("OPERATOR_CONDITION_NAME") == "").
      However, the WMCO pod definition has the var and its expected value. This is expected as it is an env var set by OLM.

      kind: Pod
      apiVersion: v1
      metadata:
      name: windows-machine-config-operator-778b65f644-9b9hf
      spec:
      containers:
      env:

      • name: OPERATOR_CONDITION_NAME
        value: windows-machine-config-operator.v5.0.0

      Acceptance Criteria

      Ensure the `validateUpgradeableCondition` method is actually validating the OperatorCondition resource content to verify the Upgradeable condition. 

              rh-ee-mankulka Mansi Kulkarni
              mohashai Mohammad Shaikh
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: