mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-03 05:26:58 +00:00
s3/client: Keep server port on config
Currently the code temporarily assumes that the endpoint port is 9000. This is what tests' local minio is started with. This patch keeps the port number on endpoint config and makes test get the port number from minio starting code via environment. Signed-off-by: Pavel Emelyanov <xemul@scylladb.com>
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
|
||||
s3::endpoint_config_ptr make_minio_config() {
|
||||
s3::endpoint_config cfg = {
|
||||
.port = std::stoul(tests::getenv_safe("S3_SERVER_PORT_FOR_TEST")),
|
||||
};
|
||||
return make_lw_shared<s3::endpoint_config>(std::move(cfg));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user