Files
mongo/buildscripts/resmokeconfig/suites/integration_tests_replset_ssl_auth.yml
Andrew Bradshaw b7ea757623 SERVER-96986 Move CI from SCons to Bazel (#33596)
GitOrigin-RevId: 1a2d45af69f48ab53f1d7db4c0848bba089f447a
2025-04-10 03:14:56 +00:00

68 lines
2.0 KiB
YAML

# This is a suite for TLS only and auth
test_kind: cpp_integration_test
selector:
root: bazel-bin/install/install-mongo_integration_test_test_list.txt
include_files:
- bazel-bin/**/network_interface_ssl_test
exclude_files:
- bazel-bin/**/grpc_transport_integration_test # Must be run with parameters in the integration_tests_standalone_grpc variant
config_variables:
- &keyFile jstests/libs/authTestsKey
- &keyFileData Thiskeyisonlyforrunningthesuitewithauthenticationdontuseitinanytestsdirectly
- &authOptions
authenticationDatabase: admin
authenticationMechanism: SCRAM-SHA-256
password: *keyFileData
username: __system
- TestData: &TestData
auth: true
authMechanism: SCRAM-SHA-256
keyFile: *keyFile
keyFileData: *keyFileData
executor:
archive:
hooks:
- ValidateCollections
config: {}
hooks:
# The CheckReplDBHash hook waits until all operations have replicated to and have been applied
# on the secondaries, so we run the ValidateCollections hook after it to ensure we're
# validating the entire contents of the collection.
- class: CheckReplOplogs
shell_options:
global_vars:
TestData: *TestData
eval: jsTest.authenticate(db.getMongo())
<<: *authOptions
- class: CheckReplDBHash
shell_options:
global_vars:
TestData: *TestData
eval: jsTest.authenticate(db.getMongo())
<<: *authOptions
- class: ValidateCollections
shell_options:
global_vars:
TestData: *TestData
eval: jsTest.authenticate(db.getMongo())
<<: *authOptions
fixture:
class: ReplicaSetFixture
mongod_options:
set_parameters:
logComponentVerbosity:
command: 2
enableTestCommands: 1
tlsMode: preferTLS
tlsCAFile: jstests/libs/ca.pem
tlsCertificateKeyFile: jstests/libs/server.pem
keyFile: *keyFile
clusterAuthMode: sendX509
auth: ""
num_nodes: 2
auth_options:
<<: *authOptions