File tree Expand file tree Collapse file tree 8 files changed +11
-15
lines changed Expand file tree Collapse file tree 8 files changed +11
-15
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ PATH=${PATH}:${DRIVERS_TOOLS}/mongodb/bin
31
31
set +o errexit
32
32
33
33
cargo_test test::csfle
34
- cargo_test test::spec::client_side_encryption
35
34
36
35
FEATURE_FLAGS+=(" aws-auth" )
37
36
cargo_test on_demand_aws::success
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ set -o pipefail
7
7
source .evergreen/env.sh
8
8
source .evergreen/cargo-test.sh
9
9
10
+ CARGO_OPTIONS+=(" --ignore-default-filter" )
11
+
10
12
export SUBJECT=$( openssl x509 -subject -nameopt RFC2253 -noout -inform PEM -in $CERT_PATH )
11
13
12
14
# Strip `subject=` prefix from the subject
Original file line number Diff line number Diff line change @@ -564,11 +564,8 @@ async fn saslprep() {
564
564
565
565
#[ tokio:: test]
566
566
#[ function_name:: named]
567
- async fn x509_auth ( ) {
568
- let username = match std:: env:: var ( "MONGO_X509_USER" ) {
569
- Ok ( user) => user,
570
- Err ( _) => return ,
571
- } ;
567
+ async fn x509_auth_skip_ci ( ) {
568
+ let username = std:: env:: var ( "MONGO_X509_USER" ) . expect ( "MONGO_X509_USER" ) ;
572
569
573
570
let client = Client :: for_test ( ) . await ;
574
571
let drop_user_result = client
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ mod on_demand_aws; // requires AWS credentials to be set or unset
15
15
mod on_demand_gcp; // requires GCP
16
16
#[ path = "csfle/prose.rs" ]
17
17
mod prose; // requires environment variables listed below
18
+ #[ path = "csfle/spec.rs" ]
19
+ mod spec; // requires environment variables listed below
18
20
19
21
use std:: { env, path:: PathBuf } ;
20
22
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
mod auth;
2
2
mod change_streams;
3
- #[ cfg( feature = "in-use-encryption" ) ]
4
- mod client_side_encryption;
5
3
mod collection_management;
6
4
mod command_monitoring;
7
5
mod connection_stepdown;
@@ -23,7 +21,7 @@ mod sessions;
23
21
mod trace;
24
22
mod transactions;
25
23
pub ( crate ) mod unified_runner;
26
- mod v2_runner;
24
+ pub ( crate ) mod v2_runner;
27
25
mod versioned_api;
28
26
mod write_error;
29
27
Original file line number Diff line number Diff line change 1
- use crate :: test:: spec:: unified_runner:: run_unified_tests;
1
+ use crate :: test:: { spec:: unified_runner:: run_unified_tests, SERVERLESS } ;
2
2
3
3
#[ tokio:: test( flavor = "multi_thread" ) ]
4
4
async fn run_unified ( ) {
@@ -41,7 +41,7 @@ async fn run_unified() {
41
41
"Database-level aggregate with $merge omits read preference for pre-5.0 server" ,
42
42
] ;
43
43
// TODO: remove this manual skip when this test is fixed to skip on serverless
44
- if std :: env :: var ( " SERVERLESS" ) . is_ok ( ) {
44
+ if * SERVERLESS {
45
45
skipped_tests. push ( "inserting _id with type null via clientBulkWrite" ) ;
46
46
}
47
47
Original file line number Diff line number Diff line change @@ -144,10 +144,8 @@ impl RunOnRequirement {
144
144
return Err ( "requires auth" . to_string ( ) ) ;
145
145
}
146
146
}
147
- if let Some ( csfle) = & self . csfle {
148
- if * csfle && std:: env:: var ( "CSFLE_LOCAL_KEY" ) . is_err ( ) {
149
- return Err ( "requires csfle env" . to_string ( ) ) ;
150
- }
147
+ if self . csfle == Some ( true ) && !cfg ! ( feature = "in-use-encryption" ) {
148
+ return Err ( "requires csfle but in-use-encryption feature not enabled" . to_string ( ) ) ;
151
149
}
152
150
Ok ( ( ) )
153
151
}
You can’t perform that action at this time.
0 commit comments