@@ -41,13 +41,13 @@ async fn run_test(uri_env_var: &str, resolver_config: Option<ResolverConfig>) {
41
41
42
42
#[ cfg_attr( feature = "tokio-runtime" , tokio:: test) ]
43
43
#[ cfg_attr( feature = "async-std-runtime" , async_std:: test) ]
44
- async fn atlas_repl_set ( ) {
44
+ async fn atlas_free_tier_repl_set ( ) {
45
45
run_test ( "MONGO_ATLAS_FREE_TIER_REPL_URI" , None ) . await ;
46
46
}
47
47
48
48
#[ cfg_attr( feature = "tokio-runtime" , tokio:: test) ]
49
49
#[ cfg_attr( feature = "async-std-runtime" , async_std:: test) ]
50
- async fn atlas_repl_set_srv ( ) {
50
+ async fn atlas_free_tier_repl_set_srv ( ) {
51
51
run_test ( "MONGO_ATLAS_FREE_TIER_REPL_URI_SRV" , None ) . await ;
52
52
run_test (
53
53
"MONGO_ATLAS_FREE_TIER_REPL_URI_SRV" ,
@@ -65,9 +65,78 @@ async fn atlas_serverless() {
65
65
#[ cfg_attr( feature = "tokio-runtime" , tokio:: test) ]
66
66
#[ cfg_attr( feature = "async-std-runtime" , async_std:: test) ]
67
67
async fn atlas_serverless_srv ( ) {
68
+ run_test ( "MONGO_ATLAS_SERVERLESS_URI_SRV" , None ) . await ;
68
69
run_test (
69
70
"MONGO_ATLAS_SERVERLESS_URI_SRV" ,
70
71
Some ( ResolverConfig :: cloudflare ( ) ) ,
71
72
)
72
73
. await ;
73
74
}
75
+
76
+ #[ cfg_attr( feature = "tokio-runtime" , tokio:: test) ]
77
+ #[ cfg_attr( feature = "async-std-runtime" , async_std:: test) ]
78
+ async fn atlas_repl_set ( ) {
79
+ run_test ( "MONGO_ATLAS_REPL_URI" , None ) . await ;
80
+ }
81
+
82
+ #[ cfg_attr( feature = "tokio-runtime" , tokio:: test) ]
83
+ #[ cfg_attr( feature = "async-std-runtime" , async_std:: test) ]
84
+ async fn atlas_repl_set_srv ( ) {
85
+ run_test ( "MONGO_ATLAS_REPL_URI_SRV" , None ) . await ;
86
+ run_test (
87
+ "MONGO_ATLAS_REPL_URI_SRV" ,
88
+ Some ( ResolverConfig :: cloudflare ( ) ) ,
89
+ )
90
+ . await ;
91
+ }
92
+
93
+ #[ cfg_attr( feature = "tokio-runtime" , tokio:: test) ]
94
+ #[ cfg_attr( feature = "async-std-runtime" , async_std:: test) ]
95
+ async fn atlas_sharded ( ) {
96
+ run_test ( "MONGO_ATLAS_SHARDED_URI" , None ) . await ;
97
+ }
98
+
99
+ #[ cfg_attr( feature = "tokio-runtime" , tokio:: test) ]
100
+ #[ cfg_attr( feature = "async-std-runtime" , async_std:: test) ]
101
+ async fn atlas_sharded_srv ( ) {
102
+ run_test ( "MONGO_ATLAS_SHARDED_URI_SRV" , None ) . await ;
103
+ run_test (
104
+ "MONGO_ATLAS_SHARDED_URI_SRV" ,
105
+ Some ( ResolverConfig :: cloudflare ( ) ) ,
106
+ )
107
+ . await ;
108
+ }
109
+
110
+ #[ cfg_attr( feature = "tokio-runtime" , tokio:: test) ]
111
+ #[ cfg_attr( feature = "async-std-runtime" , async_std:: test) ]
112
+ async fn atlas_tls_11 ( ) {
113
+ run_test ( "MONGO_ATLAS_TLS11_URI" , None ) . await ;
114
+ }
115
+
116
+ #[ cfg_attr( feature = "tokio-runtime" , tokio:: test) ]
117
+ #[ cfg_attr( feature = "async-std-runtime" , async_std:: test) ]
118
+ async fn atlas_tls11_srv ( ) {
119
+ run_test ( "MONGO_ATLAS_TLS11_URI_SRV" , None ) . await ;
120
+ run_test (
121
+ "MONGO_ATLAS_TLS11_URI_SRV" ,
122
+ Some ( ResolverConfig :: cloudflare ( ) ) ,
123
+ )
124
+ . await ;
125
+ }
126
+
127
+ #[ cfg_attr( feature = "tokio-runtime" , tokio:: test) ]
128
+ #[ cfg_attr( feature = "async-std-runtime" , async_std:: test) ]
129
+ async fn atlas_tls_12 ( ) {
130
+ run_test ( "MONGO_ATLAS_TLS12_URI" , None ) . await ;
131
+ }
132
+
133
+ #[ cfg_attr( feature = "tokio-runtime" , tokio:: test) ]
134
+ #[ cfg_attr( feature = "async-std-runtime" , async_std:: test) ]
135
+ async fn atlas_tls12_srv ( ) {
136
+ run_test ( "MONGO_ATLAS_TLS12_URI_SRV" , None ) . await ;
137
+ run_test (
138
+ "MONGO_ATLAS_TLS12_URI_SRV" ,
139
+ Some ( ResolverConfig :: cloudflare ( ) ) ,
140
+ )
141
+ . await ;
142
+ }
0 commit comments