18
18
type : string
19
19
required : false
20
20
test_name :
21
- description : ' Name of the test to run, e.g. TestAccNetworkRSNetworkPeering_basicAzure, empty for all (requires Test group to be specified as well)'
21
+ description : ' Name of the test to run, e.g. TestAccNetworkRSNetworkPeering_basicAzure, empty for all (this is regex & requires Test group to be specified as well)'
22
22
type : string
23
23
required : false
24
24
ref :
136
136
TF_ACC : 1
137
137
TF_LOG : ${{ vars.LOG_LEVEL }}
138
138
ACCTEST_TIMEOUT : ${{ vars.ACCTEST_TIMEOUT }}
139
- # Only Migration tests are run when testing a specific previous provider version instead of the latest one
140
- ACCTEST_REGEX_RUN : ${{ inputs.provider_version == '' && '^Test(Acc|Mig)' || '^TestMig' }}
139
+ # Only Migration tests are run when a specific previous provider version is set
140
+ # If the name (regex) of the test is set, only that test is run
141
+ ACCTEST_REGEX_RUN : ${{ inputs.test_name || inputs.provider_version == '' && '^Test(Acc|Mig)' || '^TestMig' }}
141
142
MONGODB_ATLAS_BASE_URL : ${{ inputs.mongodb_atlas_base_url }}
142
143
MONGODB_ATLAS_ORG_ID : ${{ inputs.mongodb_atlas_org_id }}
143
144
MONGODB_ATLAS_PUBLIC_KEY : ${{ secrets.mongodb_atlas_public_key }}
@@ -170,7 +171,7 @@ jobs:
170
171
runs-on : ubuntu-latest
171
172
permissions : {}
172
173
env :
173
- mustTrigger : ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.test_group == '' && inputs.test_name == '' ) }}
174
+ mustTrigger : ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.test_group == '' ) }}
174
175
outputs :
175
176
advanced_cluster : ${{ steps.filter.outputs.advanced_cluster == 'true' || env.mustTrigger == 'true' }}
176
177
assume_role : ${{ steps.filter.outputs.assume_role == 'true' || env.mustTrigger == 'true' }}
@@ -196,7 +197,7 @@ jobs:
196
197
- uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
197
198
- uses : dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
198
199
id : filter
199
- if : ${{ inputs.test_group == '' && inputs.test_name == '' && env.mustTrigger == 'false' }}
200
+ if : ${{ inputs.test_group == '' && env.mustTrigger == 'false' }}
200
201
with :
201
202
filters : |
202
203
advanced_cluster:
@@ -297,7 +298,6 @@ jobs:
297
298
env :
298
299
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
299
300
ACCTEST_PACKAGES : ./internal/service/advancedcluster
300
- ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
301
301
run : make testacc
302
302
303
303
assume_role :
@@ -338,7 +338,6 @@ jobs:
338
338
AWS_SESSION_TOKEN : ${{ steps.sts-assume-role.outputs.AWS_SESSION_TOKEN }}
339
339
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
340
340
ACCTEST_PACKAGES : ./internal/provider
341
- ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
342
341
run : make testacc
343
342
344
343
backup :
@@ -365,7 +364,6 @@ jobs:
365
364
AWS_SECRET_ACCESS_KEY : ${{ secrets.aws_secret_access_key }}
366
365
AWS_ACCESS_KEY_ID : ${{ secrets.aws_access_key_id }}
367
366
AWS_S3_BUCKET : ${{ secrets.aws_s3_bucket_backup }}
368
- ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
369
367
ACCTEST_PACKAGES : |
370
368
./internal/service/cloudbackupschedule
371
369
./internal/service/cloudbackupsnapshot
@@ -394,7 +392,6 @@ jobs:
394
392
- name : Acceptance Tests
395
393
env :
396
394
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
397
- ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
398
395
ACCTEST_PACKAGES : |
399
396
./internal/service/cluster
400
397
./internal/service/globalclusterconfig
@@ -419,7 +416,6 @@ jobs:
419
416
- name : Acceptance Tests
420
417
env :
421
418
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
422
- ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
423
419
ACCTEST_PACKAGES : ./internal/service/clusteroutagesimulation
424
420
run : make testacc
425
421
@@ -451,7 +447,6 @@ jobs:
451
447
AWS_SECRET_ACCESS_KEY : ${{ secrets.aws_secret_access_key }}
452
448
AWS_S3_BUCKET : ${{ secrets.aws_s3_bucket_federation }}
453
449
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
454
- ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
455
450
ACCTEST_PACKAGES : |
456
451
./internal/service/alertconfiguration
457
452
./internal/service/atlasuser
@@ -488,7 +483,6 @@ jobs:
488
483
- name : Acceptance Tests
489
484
env :
490
485
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
491
- ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
492
486
ACCTEST_PACKAGES : ./internal/service/datalakepipeline
493
487
run : make testacc
494
488
@@ -511,7 +505,6 @@ jobs:
511
505
- name : Acceptance Tests
512
506
env :
513
507
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
514
- ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
515
508
ACCTEST_PACKAGES : ./internal/service/encryptionatrest
516
509
run : make testacc
517
510
@@ -534,7 +527,6 @@ jobs:
534
527
- name : Acceptance Tests
535
528
env :
536
529
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
537
- ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
538
530
ACCTEST_PACKAGES : ./internal/service/eventtrigger
539
531
run : make testacc
540
532
@@ -568,7 +560,6 @@ jobs:
568
560
AWS_ACCESS_KEY_ID : ${{ secrets.aws_access_key_id }}
569
561
AWS_SECRET_ACCESS_KEY : ${{ secrets.aws_secret_access_key }}
570
562
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
571
- ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
572
563
ACCTEST_PACKAGES : |
573
564
./internal/service/federateddatabaseinstance
574
565
./internal/service/federatedquerylimit
@@ -598,7 +589,6 @@ jobs:
598
589
MONGODB_ATLAS_PROJECT_OWNER_ID : ${{ inputs.mongodb_atlas_project_owner_id }}
599
590
CA_CERT : ${{ secrets.ca_cert }}
600
591
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
601
- ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
602
592
ACCTEST_PACKAGES : |
603
593
./internal/service/auditing
604
594
./internal/service/backupcompliancepolicy
@@ -629,7 +619,6 @@ jobs:
629
619
MONGODB_ATLAS_LDAP_PORT : ${{ secrets.mongodb_atlas_ldap_port }}
630
620
MONGODB_ATLAS_LDAP_CA_CERTIFICATE : ${{ secrets.mongodb_atlas_ldap_ca_certificate }}
631
621
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
632
- ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
633
622
ACCTEST_PACKAGES : |
634
623
./internal/service/ldapconfiguration
635
624
./internal/service/ldapverify
@@ -669,7 +658,6 @@ jobs:
669
658
AZURE_VNET_NAME : ${{ secrets.azure_vnet_name }}
670
659
AZURE_VNET_NAME_UPDATED : ${{ secrets.azure_vnet_name_updated }}
671
660
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
672
- ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
673
661
ACCTEST_PACKAGES : |
674
662
./internal/service/networkcontainer
675
663
./internal/service/networkpeering
@@ -709,7 +697,6 @@ jobs:
709
697
AWS_VPC_CIDR_BLOCK : ${{ vars.AWS_VPC_CIDR_BLOCK }}
710
698
AWS_VPC_ID : ${{ vars.AWS_VPC_ID }}
711
699
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
712
- ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
713
700
ACCTEST_PACKAGES : |
714
701
./internal/service/accesslistapikey
715
702
./internal/service/project
@@ -739,7 +726,6 @@ jobs:
739
726
AWS_SECRET_ACCESS_KEY : ${{ secrets.aws_secret_access_key }}
740
727
AWS_ACCESS_KEY_ID : ${{ secrets.aws_access_key_id }}
741
728
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
742
- ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
743
729
ACCTEST_PACKAGES : ./internal/service/pushbasedlogexport
744
730
run : make testacc
745
731
@@ -762,7 +748,6 @@ jobs:
762
748
- name : Acceptance Tests
763
749
env :
764
750
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
765
- ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
766
751
ACCTEST_PACKAGES : ./internal/service/searchdeployment
767
752
run : make testacc
768
753
@@ -785,7 +770,6 @@ jobs:
785
770
- name : Acceptance Tests
786
771
env :
787
772
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
788
- ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
789
773
ACCTEST_PACKAGES : ./internal/service/searchindex
790
774
run : make testacc
791
775
@@ -810,7 +794,6 @@ jobs:
810
794
AWS_ACCESS_KEY_ID : ${{ secrets.aws_access_key_id }}
811
795
AWS_SECRET_ACCESS_KEY : ${{ secrets.aws_secret_access_key }}
812
796
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
813
- ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
814
797
ACCTEST_PACKAGES : |
815
798
./internal/service/privatelinkendpointserverless
816
799
./internal/service/privatelinkendpointserviceserverless
@@ -836,7 +819,6 @@ jobs:
836
819
- name : Acceptance Tests
837
820
env :
838
821
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
839
- ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
840
822
ACCTEST_PACKAGES : |
841
823
./internal/service/streamconnection
842
824
./internal/service/streaminstance
@@ -861,7 +843,6 @@ jobs:
861
843
- name : Acceptance Tests
862
844
env :
863
845
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
864
- ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
865
846
ACCTEST_PACKAGES : |
866
847
./internal/service/controlplaneipaddresses
867
848
run : make testacc
0 commit comments