Skip to content

Commit

Permalink
cds: enable passing additional testacc args
Browse files Browse the repository at this point in the history
  • Loading branch information
ovh-irobot committed Jul 7, 2021
1 parent 79d4aa3 commit 4b36b21
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .cds/terraform-provider-ovh-testacc.pip.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
version: v1.0
name: terraform-provider-ovh-testacc
parameters:
testargs:
type: string
description: additional testargs

jobs:
- job: checks
steps:
Expand All @@ -21,7 +26,7 @@ jobs:
- name: Run acceptance tests
script: |
#!/usr/bin/env bash
make testacc TESTARGS="-parallel=1"
make testacc TESTARGS="-parallel=1 ${CDS_PIP_TESTARGS}"
- name: Run post sweepers
script: |
Expand Down
10 changes: 10 additions & 0 deletions .cds/terraform-provider-ovh.pip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
version: v1.0
name: terraform-provider-ovh
description: |
Empty pipeline to use as root node for the workflow allowing the use of parameters from the UI
parameters:
testargs:
type: string
default: ""
description: additional testacc arguments
5 changes: 5 additions & 0 deletions .cds/terraform-provider-ovh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ workflow:

terraform-provider-ovh:
application: terraform-provider-ovh
pipeline: terraform-provider-ovh
parameters:
testargs: ""

terraform-provider-ovh-check:
pipeline: terraform-provider-ovh-check
Expand All @@ -24,6 +27,8 @@ workflow:
one_at_a_time: true
application: terraform-provider-ovh
environment: acctests
parameters:
testargs: "{{ .workflow.terraform-provider-ovh.pip.testargs }}"
depends_on:
- terraform-provider-ovh-check

Expand Down

0 comments on commit 4b36b21

Please sign in to comment.