---
# voltha 2.x tests
# [NOTE]
#   o md5sum(master) can be used to locate branch/release variants of a job.

- project:
    name: voltha-e2e-2.14

    project-name: '{name}'
    manualBranch: ''
    olts: 1
    onus: 1
    pons: 1
    withAlarms: true
    make-target-failtest: bbsim-failurescenarios
    make-target-errortest: bbsim-errorscenarios
    make-target-alarmtest: bbsim-alarms-kind
    make-target-multipleolt: bbsim-multiolt-kind
    make-target-1t4gemtest: 1t4gem-openonu-go-adapter-test
    make-target-1t8gemtest: 1t8gem-openonu-go-adapter-test
    make-target-reconciledttest: reconcile-openonu-go-adapter-test-dt
    make-target-reconciletttest: reconcile-openonu-go-adapter-test-tt

# source: voltha-e2e.yaml
    jobs:
      - 'voltha-periodic-test':
          name: 'periodic-voltha-pm-data-test-bbsim-2.14'
          pipeline-script: 'voltha/bbsim-tests.groovy'
          pipeline-branch: 'voltha-2.14'
          code-branch: 'voltha-2.14'
          extraHelmFlags: '--set kafka.externalAccess.enabled=true,kafka.externalAccess.service.type=NodePort,kafka.externalAccess.service.nodePorts[0]=30201,kafka.externalAccess.service.domain=127.0.0.1'
          time-trigger: "H H/23 * * *"
          logLevel: 'DEBUG'
          testTargets: |
            - target: voltha-pm-data-single-kind-dt
              workflow: dt
              flags: ""
              teardown: true
              logging: true
            - target: voltha-pm-data-single-kind-tt
              workflow: tt
              flags: ""
              teardown: true
              logging: true
          timeout: 140

      - 'voltha-periodic-test':
          name: 'periodic-voltha-multiple-olts-pm-data-test-bbsim-2.14'
          pipeline-script: 'voltha/bbsim-tests.groovy'
          pipeline-branch: 'voltha-2.14'
          code-branch: 'voltha-2.14'
          extraHelmFlags: '--set onu=2,pon=2 --set kafka.externalAccess.enabled=true,kafka.externalAccess.service.type=NodePort,kafka.externalAccess.service.nodePorts[0]=30201,kafka.externalAccess.service.domain=127.0.0.1'
          olts: 2
          timeout: 180
          logLevel: 'DEBUG'
          testTargets: |
            - target: voltha-pm-data-multiolt-kind-dt
              workflow: dt
              flags: ""
              teardown: true
              logging: true
            - target: voltha-pm-data-multiolt-kind-tt
              workflow: tt
              flags: ""
              teardown: true
              logging: true
          time-trigger: "H H/23 * * *"

      # -----------------------------------------------------------------------
      # md5sum(master): c606493da6ee7cbb18ca8aee97ea2957
      # -----------------------------------------------------------------------
      - 'voltha-periodic-test':
          name: 'periodic-voltha-test-bbsim-2.14'
          code-branch: 'voltha-2.14'
          logLevel: 'DEBUG'                      # force job to regenerate
          pipeline-script: 'voltha/bbsim-tests.groovy'
          pipeline-branch: 'voltha-2.14'
          time-trigger: "H H/23 * * *"
          testTargets: |
            - target: functional-single-kind
              workflow: att
              flags: ""
              teardown: true
              logging: true
            - target: bbsim-alarms-kind
              workflow: att
              flags: ""
              teardown: false
              logging: true
            - target: bbsim-failurescenarios
              workflow: att
              flags: ""
              teardown: false
              logging: true
            - target: bbsim-errorscenarios
              workflow: att
              flags: ""
              teardown: false
              logging: true
            - target: onos-ha-test
              workflow: att
              flags: ""
              teardown: false
              logging: true

      - 'voltha-periodic-test':
          name: 'periodic-voltha-dt-test-bbsim-2.14'
          # build-node: 'ubuntu18.04-basebuild-4c-8g'
          build-node: 'ubuntu18.04-basebuild-8c-15g'
          pipeline-script: 'voltha/bbsim-tests.groovy'
          pipeline-branch: 'voltha-2.14'
          code-branch: 'voltha-2.14'
          time-trigger : '@daily'
          extraHelmFlags: '--set global.image_tag=master --set onos-classic.image.tag=master '
          testTargets: |
            - target: functional-single-kind-dt
              workflow: dt
              flags: ""
              teardown: true
              logging: true
            - target: bbsim-failurescenarios-dt
              workflow: dt
              flags: ""
              teardown: false
              logging: true

      - 'voltha-periodic-test':
          name: 'periodic-voltha-dt-fttb-test-bbsim-2.14'
          # build-node: 'ubuntu18.04-basebuild-4c-8g'
          build-node: 'ubuntu18.04-basebuild-8c-15g'
          code-branch: 'voltha-2.14'
          time-trigger: "H H/23 * * *"
          extraHelmFlags: '--set global.image_tag=master --set onos-classic.image.tag=master --set voltha-adapter-openonu.adapter_open_onu.uni_port_mask=0x00FF --set onu=2'
          testTargets: |
            - target: sanity-kind-dt-fttb
              workflow: dt-fttb
              flags: ""
              teardown: true
              logging: true

# [EOF]
