Skip to content

Commit

Permalink
no longer set greptime-db-format on influxdb error
Browse files Browse the repository at this point in the history
Signed-off-by: tison <wander4096@gmail.com>
  • Loading branch information
tisonkun committed Mar 20, 2024
1 parent 8752aec commit d8e6597
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/servers/tests/http/influxdb_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ use query::plan::LogicalPlan;
use query::query_engine::DescribeResult;
use servers::error::{Error, Result};
use servers::http::header::constants::GREPTIME_DB_HEADER_NAME;
use servers::http::header::GREPTIME_DB_HEADER_FORMAT;
use servers::http::{HttpOptions, HttpServerBuilder};
use servers::influxdb::InfluxdbRequest;
use servers::query_handler::grpc::GrpcQueryHandler;
Expand Down Expand Up @@ -182,10 +181,6 @@ async fn test_influxdb_write() {
.send()
.await;
assert_eq!(result.status(), 401);
assert_eq!(
result.headers().get(&GREPTIME_DB_HEADER_FORMAT).unwrap(),
"influxdb_v1",
);
assert_eq!(
"{\"code\":7002,\"error\":\"Username and password does not match, username: greptime\",\"execution_time_ms\":0}",
result.text().await
Expand All @@ -198,10 +193,6 @@ async fn test_influxdb_write() {
.send()
.await;
assert_eq!(result.status(), 401);
assert_eq!(
result.headers().get(&GREPTIME_DB_HEADER_FORMAT).unwrap(),
"influxdb_v1",
);
assert_eq!(
"{\"code\":7003,\"error\":\"Not found influx http authorization info\",\"execution_time_ms\":0}",
result.text().await
Expand Down

0 comments on commit d8e6597

Please sign in to comment.