Skip to content

Commit

Permalink
removes test as its in sqlparser
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed Sep 15, 2023
1 parent b95f969 commit ee31878
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
24 changes: 0 additions & 24 deletions nexus/server/tests/server_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,30 +223,6 @@ fn query_unknown_peer_doesnt_crash_server() {
assert!(res.is_ok());
}

#[test]
fn mirror_if_not_exists() {
let server = PeerDBServer::new();
let mut client = server.connect_dying();

create_peers::create_bq::create(&mut client);
create_peers::create_pg::create(&mut client);
// create a mirror
let create_query = "CREATE MIRROR test1 FROM pg_test TO bq_test WITH TABLE MAPPING(public.a:a);";
let res = client.simple_query(create_query);
assert!(res.is_ok());

// test if not exists clause
let create_query_again_with_clause = "CREATE MIRROR IF NOT EXISTS test1
FROM pg_test TO bq_test WITH TABLE MAPPING(public.a:a);";
let res = client.simple_query(create_query_again_with_clause);
assert!(res.is_ok());

let create_query_again_but_without_clause = "CREATE MIRROR test1
FROM pg_test TO bq_test WITH TABLE MAPPING(public.a:a);";
let res = client.simple_query(create_query_again_but_without_clause);
assert!(res.is_err());
}

#[test]
#[ignore = "requires some work for extended query prepares on bigquery."]
fn extended_query_protocol_no_params_bq() {
Expand Down

0 comments on commit ee31878

Please sign in to comment.