Skip to content

Commit 5a12e31

Browse files
authored
Merge pull request #673 from ovh/dev/rbeuque/cds
chore: cds: allow disabling clouddatabase tests
2 parents 81b60aa + bf85539 commit 5a12e31

5 files changed

+128
-37
lines changed

.cds/terraform-provider-ovh-post-sweepers.pip.yml

-27
This file was deleted.

.cds/terraform-provider-ovh-pre-sweepers.pip.yml renamed to .cds/terraform-provider-ovh-run-sweepers.pip.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
version: v1.0
2-
name: terraform-provider-ovh-pre-sweepers
2+
name: terraform-provider-ovh-run-sweepers
33
parameters:
44
testargs:
55
type: string
@@ -19,7 +19,7 @@ jobs:
1919
curl -sfLo - "${tfurl}" | gunzip -d - > /usr/local/bin/terraform
2020
chmod +x /usr/local/bin/terraform
2121
22-
- name: Run pre sweepers
22+
- name: Run sweepers
2323
script: |
2424
TF_ACC=1 go test ./ovh/ -v -sweep=1
2525

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

+12
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,22 @@ parameters:
44
testargs:
55
type: string
66
description: additional testargs
7+
skipthispipeline:
8+
type: boolean
9+
description: Skip this pipeline
710

811
jobs:
912
- job: checks
1013
steps:
14+
- name: Skip this pipeline without failing
15+
script: |
16+
#!/usr/bin/env bash
17+
set -eEuo pipefail
18+
if [[ "${CDS_PIP_SKIPTHISPIPELINE}" == "true" ]];
19+
then
20+
worker exit 0
21+
fi
22+
1123
- name: Get the sources of the project
1224
checkout: '{{.cds.workspace}}'
1325
- name: Install terraform

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

+48-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,51 @@ name: terraform-provider-ovh
44
description: |
55
Empty pipeline to use as root node for the workflow allowing the use of parameters from the UI
66
parameters:
7-
testargs:
8-
type: string
9-
default: ""
10-
description: additional testacc arguments
7+
skipthistest.cloudprojectdatabase:
8+
type: boolean
9+
description: Skip Cloud Project Database tests
10+
skipthistest.cloudproject:
11+
type: boolean
12+
description: Skip Cloud Project tests
13+
skipthistest.cloudprojectkubernetes:
14+
type: boolean
15+
description: Skip Cloud Project Kubernetes tests
16+
skipthistest.ldp:
17+
type: boolean
18+
description: Skip LDP tests
19+
skipthistest.ceph:
20+
type: boolean
21+
description: Skip Ceph tests
22+
skipthistest.nasha:
23+
type: boolean
24+
description: Skip NAS HA tests
25+
skipthistest.baremetal:
26+
type: boolean
27+
description: Skip Baremetal tests
28+
skipthistest.dns:
29+
type: boolean
30+
description: Skip DNS Zone tests
31+
skipthistest.hostingdatabase:
32+
type: boolean
33+
description: Skip Hosting Database tests
34+
skipthistest.iplb:
35+
type: boolean
36+
description: Skip IPLB tests
37+
skipthistest.ip:
38+
type: boolean
39+
description: Skip IP tests
40+
skipthistest.order:
41+
type: boolean
42+
description: Skip Order tests
43+
skipthistest.iam:
44+
type: boolean
45+
description: Skip IAM tests
46+
skipthistest.account:
47+
type: boolean
48+
description: Skip Account Management tests
49+
skipthistest.vps:
50+
type: boolean
51+
description: Skip VPS tests
52+
skipthistest.vrack:
53+
type: boolean
54+
description: Skip vRack tests

0 commit comments

Comments
 (0)