Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit eb17f3d

Browse files
committedJul 7, 2021
cds: enable passing additional testacc args
1 parent f74dfd1 commit eb17f3d

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed
 

‎.cds/terraform-provider-ovh-testacc.pip.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
version: v1.0
22
name: terraform-provider-ovh-testacc
3+
parameters:
4+
testargs:
5+
type: string
6+
description: additional testargs
7+
38
jobs:
49
- job: checks
510
steps:
@@ -21,7 +26,7 @@ jobs:
2126
- name: Run acceptance tests
2227
script: |
2328
#!/usr/bin/env bash
24-
make testacc TESTARGS="-parallel=1"
29+
make testacc TESTARGS="-parallel=1 ${CDS_PIP_TESTARGS}"
2530
2631
- name: Run post sweepers
2732
script: |

‎.cds/terraform-provider-ovh.pip.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
version: v1.0
3+
name: terraform-provider-ovh
4+
description: |
5+
Empty pipeline to use as root node for the workflow allowing the use of parameters from the UI
6+
parameters:
7+
testargs:
8+
type: string
9+
default: ""
10+
description: additional testacc arguments

‎.cds/terraform-provider-ovh.yml

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ workflow:
44

55
terraform-provider-ovh:
66
application: terraform-provider-ovh
7+
pipeline: terraform-provider-ovh
8+
parameters:
9+
testargs: ""
710

811
terraform-provider-ovh-check:
912
pipeline: terraform-provider-ovh-check
@@ -24,6 +27,8 @@ workflow:
2427
one_at_a_time: true
2528
application: terraform-provider-ovh
2629
environment: acctests
30+
parameters:
31+
testargs: "{{ .workflow.terraform-provider-ovh.pip.testargs }}"
2732
depends_on:
2833
- terraform-provider-ovh-check
2934

0 commit comments

Comments
 (0)
Please sign in to comment.