17
17
description : ' Test group to run, e.g. advanced_cluster, empty for all'
18
18
type : string
19
19
required : false
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)'
22
+ type : string
23
+ required : false
20
24
ref :
21
25
description : ' The branch, tag or SHA where tests will run, e.g. v1.14.0, empty for default branch'
22
26
type : string
133
137
TF_LOG : ${{ vars.LOG_LEVEL }}
134
138
ACCTEST_TIMEOUT : ${{ vars.ACCTEST_TIMEOUT }}
135
139
# Only Migration tests are run when testing a specific previous provider version instead of the latest one
136
- ACCTEST_REGEX_RUN : ${{ inputs.provider_version == '' && '^Test(Acc|Mig)' || '^TestMig' }}
140
+ ACCTEST_REGEX_RUN : ${{ inputs.provider_version == '' && '^Test(Acc|Mig)' || '^TestMig' }}
137
141
MONGODB_ATLAS_BASE_URL : ${{ inputs.mongodb_atlas_base_url }}
138
142
MONGODB_ATLAS_ORG_ID : ${{ inputs.mongodb_atlas_org_id }}
139
143
MONGODB_ATLAS_PUBLIC_KEY : ${{ secrets.mongodb_atlas_public_key }}
@@ -166,7 +170,7 @@ jobs:
166
170
runs-on : ubuntu-latest
167
171
permissions : {}
168
172
env :
169
- mustTrigger : ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.test_group == '') }}
173
+ mustTrigger : ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.test_group == '' && inputs.test_name == '' ) }}
170
174
outputs :
171
175
advanced_cluster : ${{ steps.filter.outputs.advanced_cluster == 'true' || env.mustTrigger == 'true' }}
172
176
assume_role : ${{ steps.filter.outputs.assume_role == 'true' || env.mustTrigger == 'true' }}
@@ -192,7 +196,7 @@ jobs:
192
196
- uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
193
197
- uses : dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
194
198
id : filter
195
- if : ${{ inputs.test_group == '' && env.mustTrigger == 'false' }}
199
+ if : ${{ inputs.test_group == '' && inputs.test_name == '' && env.mustTrigger == 'false' }}
196
200
with :
197
201
filters : |
198
202
advanced_cluster:
@@ -293,6 +297,7 @@ jobs:
293
297
env :
294
298
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
295
299
ACCTEST_PACKAGES : ./internal/service/advancedcluster
300
+ ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
296
301
run : make testacc
297
302
298
303
assume_role :
@@ -333,6 +338,7 @@ jobs:
333
338
AWS_SESSION_TOKEN : ${{ steps.sts-assume-role.outputs.AWS_SESSION_TOKEN }}
334
339
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
335
340
ACCTEST_PACKAGES : ./internal/provider
341
+ ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
336
342
run : make testacc
337
343
338
344
backup :
@@ -359,6 +365,7 @@ jobs:
359
365
AWS_SECRET_ACCESS_KEY : ${{ secrets.aws_secret_access_key }}
360
366
AWS_ACCESS_KEY_ID : ${{ secrets.aws_access_key_id }}
361
367
AWS_S3_BUCKET : ${{ secrets.aws_s3_bucket_backup }}
368
+ ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
362
369
ACCTEST_PACKAGES : |
363
370
./internal/service/cloudbackupschedule
364
371
./internal/service/cloudbackupsnapshot
@@ -387,6 +394,7 @@ jobs:
387
394
- name : Acceptance Tests
388
395
env :
389
396
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
397
+ ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
390
398
ACCTEST_PACKAGES : |
391
399
./internal/service/cluster
392
400
./internal/service/globalclusterconfig
@@ -411,6 +419,7 @@ jobs:
411
419
- name : Acceptance Tests
412
420
env :
413
421
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
422
+ ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
414
423
ACCTEST_PACKAGES : ./internal/service/clusteroutagesimulation
415
424
run : make testacc
416
425
@@ -442,6 +451,7 @@ jobs:
442
451
AWS_SECRET_ACCESS_KEY : ${{ secrets.aws_secret_access_key }}
443
452
AWS_S3_BUCKET : ${{ secrets.aws_s3_bucket_federation }}
444
453
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
454
+ ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
445
455
ACCTEST_PACKAGES : |
446
456
./internal/service/alertconfiguration
447
457
./internal/service/atlasuser
@@ -478,6 +488,7 @@ jobs:
478
488
- name : Acceptance Tests
479
489
env :
480
490
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
491
+ ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
481
492
ACCTEST_PACKAGES : ./internal/service/datalakepipeline
482
493
run : make testacc
483
494
@@ -500,6 +511,7 @@ jobs:
500
511
- name : Acceptance Tests
501
512
env :
502
513
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
514
+ ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
503
515
ACCTEST_PACKAGES : ./internal/service/encryptionatrest
504
516
run : make testacc
505
517
@@ -522,6 +534,7 @@ jobs:
522
534
- name : Acceptance Tests
523
535
env :
524
536
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
537
+ ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
525
538
ACCTEST_PACKAGES : ./internal/service/eventtrigger
526
539
run : make testacc
527
540
@@ -555,6 +568,7 @@ jobs:
555
568
AWS_ACCESS_KEY_ID : ${{ secrets.aws_access_key_id }}
556
569
AWS_SECRET_ACCESS_KEY : ${{ secrets.aws_secret_access_key }}
557
570
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
571
+ ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
558
572
ACCTEST_PACKAGES : |
559
573
./internal/service/federateddatabaseinstance
560
574
./internal/service/federatedquerylimit
@@ -584,6 +598,7 @@ jobs:
584
598
MONGODB_ATLAS_PROJECT_OWNER_ID : ${{ inputs.mongodb_atlas_project_owner_id }}
585
599
CA_CERT : ${{ secrets.ca_cert }}
586
600
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
601
+ ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
587
602
ACCTEST_PACKAGES : |
588
603
./internal/service/auditing
589
604
./internal/service/backupcompliancepolicy
@@ -614,6 +629,7 @@ jobs:
614
629
MONGODB_ATLAS_LDAP_PORT : ${{ secrets.mongodb_atlas_ldap_port }}
615
630
MONGODB_ATLAS_LDAP_CA_CERTIFICATE : ${{ secrets.mongodb_atlas_ldap_ca_certificate }}
616
631
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
632
+ ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
617
633
ACCTEST_PACKAGES : |
618
634
./internal/service/ldapconfiguration
619
635
./internal/service/ldapverify
@@ -653,6 +669,7 @@ jobs:
653
669
AZURE_VNET_NAME : ${{ secrets.azure_vnet_name }}
654
670
AZURE_VNET_NAME_UPDATED : ${{ secrets.azure_vnet_name_updated }}
655
671
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
672
+ ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
656
673
ACCTEST_PACKAGES : |
657
674
./internal/service/networkcontainer
658
675
./internal/service/networkpeering
@@ -692,6 +709,7 @@ jobs:
692
709
AWS_VPC_CIDR_BLOCK : ${{ vars.AWS_VPC_CIDR_BLOCK }}
693
710
AWS_VPC_ID : ${{ vars.AWS_VPC_ID }}
694
711
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
712
+ ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
695
713
ACCTEST_PACKAGES : |
696
714
./internal/service/accesslistapikey
697
715
./internal/service/project
@@ -721,6 +739,7 @@ jobs:
721
739
AWS_SECRET_ACCESS_KEY : ${{ secrets.aws_secret_access_key }}
722
740
AWS_ACCESS_KEY_ID : ${{ secrets.aws_access_key_id }}
723
741
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
742
+ ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
724
743
ACCTEST_PACKAGES : ./internal/service/pushbasedlogexport
725
744
run : make testacc
726
745
@@ -743,6 +762,7 @@ jobs:
743
762
- name : Acceptance Tests
744
763
env :
745
764
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
765
+ ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
746
766
ACCTEST_PACKAGES : ./internal/service/searchdeployment
747
767
run : make testacc
748
768
@@ -765,6 +785,7 @@ jobs:
765
785
- name : Acceptance Tests
766
786
env :
767
787
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
788
+ ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
768
789
ACCTEST_PACKAGES : ./internal/service/searchindex
769
790
run : make testacc
770
791
@@ -789,6 +810,7 @@ jobs:
789
810
AWS_ACCESS_KEY_ID : ${{ secrets.aws_access_key_id }}
790
811
AWS_SECRET_ACCESS_KEY : ${{ secrets.aws_secret_access_key }}
791
812
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
813
+ ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
792
814
ACCTEST_PACKAGES : |
793
815
./internal/service/privatelinkendpointserverless
794
816
./internal/service/privatelinkendpointserviceserverless
@@ -814,6 +836,7 @@ jobs:
814
836
- name : Acceptance Tests
815
837
env :
816
838
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
839
+ ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
817
840
ACCTEST_PACKAGES : |
818
841
./internal/service/streamconnection
819
842
./internal/service/streaminstance
@@ -838,6 +861,7 @@ jobs:
838
861
- name : Acceptance Tests
839
862
env :
840
863
MONGODB_ATLAS_LAST_VERSION : ${{ needs.get-provider-version.outputs.provider_version }}
864
+ ACCTEST_REGEX_RUN : ${{ inputs.test_name }}
841
865
ACCTEST_PACKAGES : |
842
866
./internal/service/controlplaneipaddresses
843
867
run : make testacc
0 commit comments