You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let container = GenericImage::new("quay.io/coreos/etcd","v3.6.4")
707
734
.with_exposed_port(2379.tcp())
@@ -723,6 +750,8 @@ mod tests {
723
750
.expect("Exposed host port should be available");
724
751
725
752
let url = format!("{}:{}", host, port);
753
+
let rt = tokio::runtime::Runtime::new().expect("Tokio runtime should be initialized");
754
+
rt.block_on(etcd_auth_setup(url.clone()));
726
755
(container, url)
727
756
}
728
757
@@ -739,6 +768,16 @@ mod tests {
739
768
)
740
769
.expect("Server should have been created");
741
770
771
+
// Create a user mapping
772
+
Spi::run(
773
+
format!(
774
+
"CREATE USER MAPPING FOR CURRENT_USER SERVER etcd_test_server options (user '{}', password '{}')",
775
+
ETCD_USER,ETCD_PASS
776
+
)
777
+
.as_str(),
778
+
)
779
+
.expect("User mapping should have been created");
780
+
742
781
// Create a foreign table
743
782
Spi::run("CREATE FOREIGN TABLE test (key text, value text) server etcd_test_server options (rowid_column 'key')").expect("Test table should have been created");
0 commit comments