Uploaded image for project: 'Agent-based Installer for OpenShift'
  1. Agent-based Installer for OpenShift
  2. AGENT-1304

Reduce go-lang code and dependency from Dev-scripts for OVE cluster automation

XMLWordPrintable

      The first version of OVE cluster installation automation https://github.com/openshift-metal3/dev-scripts/pull/1796 uses go-rod library and there by needs golang dependencies to be vendored in. It will be a good improvement to refactor and reduce golang dependencies by using a declarative way to issuing commands such as https://github.com/openshift-metal3/dev-scripts/blob/master/agent/e2e/agent-tui/utils.sh#L15  i.e. a much more human readable command. Build a golang based go-rod binary and then pass the command to this library to invoke the commands.
      The idea is to:
      1. Build a small Golang-based binary wrapping go-rod.
      2. Expose a simple, human-readable DSL (domain-specific language) that describes browser actions.
      3. The binary parses the DSL commands and executes them via go-rod.
       
      Example: 

      step "Select virtualization bundle" "#bundle-virtualization" "02-operators.png"

      This would:
      1. Describe the step ("Select virtualization bundle")
      2. Interact with the DOM element ("#bundle-virtualization")
      3. Capture a screenshot ("02-operators.png")

              ppinjark@redhat.com pawan pinjarkar
              ppinjark@redhat.com pawan pinjarkar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: