Skip to content

Commit

Permalink
Skip the tests of unsupported services (apache#384)
Browse files Browse the repository at this point in the history
Skip the cce, csbs, cts, dms and vbsbackup tests,
these services are not supported in fusioncloud.

Related-Bug: theopenlab/openlab#130
  • Loading branch information
huangtianhua authored and kiwik committed Dec 13, 2018
1 parent 3fa347e commit 5af108f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
exitcode=0
alltestcases=`go test ./huaweicloud/ -v -list 'Acc'`
# skip the vpc peering and vpc peering routes data source tests, because it will raise a panic error and will break other tests running
testcases=`echo "$alltestcases" | sed '$d' | grep -v -e Kms -e Rds -e RDS -e SFS -e SMN -e DNS -e ELB -e Nat -e S3 -e Images -e TestAccVpcPeeringConnectionV2DataSource_basic -e TestAccVpcRouteIdsV2DataSource_basic -e TestAccVpcRouteV2DataSource_basic`
# skip the cce, csbs, cts, dms and vbsbackup tests, these services are not supported in fusioncloud
testcases=`echo "$alltestcases" | sed '$d' | grep -v -e Kms -e Rds -e RDS -e SFS -e SMN -e DNS -e ELB -e Nat -e S3 -e Images -e CCE -e CSBS -e CTS -e Dms -e VBSBackup -e TestAccVpcPeeringConnectionV2DataSource_basic -e TestAccVpcRouteIdsV2DataSource_basic -e TestAccVpcRouteV2DataSource_basic`
# Add OS_DEBUG=1 TF_LOG=debug flags for debuging
echo "$testcases" | xargs -t -n100 sh -c 'OS_DEBUG=1 TF_LOG=debug TF_ACC=1 go test ./huaweicloud/ -v -timeout 300m -run $(echo "$@" | tr " " "|")' argv0 2>&1 | tee -a $TEST_RESULTS_TXT || exitcode=$?
Expand Down

0 comments on commit 5af108f

Please sign in to comment.