Skip to content

Commit

Permalink
fix: fixture names
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinlanhenke committed Mar 19, 2024
1 parent c04f3cf commit eaef1ef
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions crates/catalog/hms/tests/hms_catalog_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ fn set_table_creation(location: impl ToString, name: impl ToString) -> Result<Ta

#[tokio::test]
async fn test_rename_table() -> Result<()> {
let fixture = set_test_fixture("test_list_namespace").await;
let fixture = set_test_fixture("test_rename_table").await;
let creation = set_table_creation("s3a://warehouse/hive", "my_table")?;
let namespace = Namespace::new(NamespaceIdent::new("default".into()));

Expand All @@ -139,7 +139,7 @@ async fn test_rename_table() -> Result<()> {

#[tokio::test]
async fn test_table_exists() -> Result<()> {
let fixture = set_test_fixture("test_list_namespace").await;
let fixture = set_test_fixture("test_table_exists").await;
let creation = set_table_creation("s3a://warehouse/hive", "my_table")?;
let namespace = Namespace::new(NamespaceIdent::new("default".into()));

Expand All @@ -157,7 +157,7 @@ async fn test_table_exists() -> Result<()> {

#[tokio::test]
async fn test_drop_table() -> Result<()> {
let fixture = set_test_fixture("test_list_namespace").await;
let fixture = set_test_fixture("test_drop_table").await;
let creation = set_table_creation("s3a://warehouse/hive", "my_table")?;
let namespace = Namespace::new(NamespaceIdent::new("default".into()));

Expand All @@ -177,7 +177,7 @@ async fn test_drop_table() -> Result<()> {

#[tokio::test]
async fn test_load_table() -> Result<()> {
let fixture = set_test_fixture("test_list_namespace").await;
let fixture = set_test_fixture("test_load_table").await;
let creation = set_table_creation("s3a://warehouse/hive", "my_table")?;
let namespace = Namespace::new(NamespaceIdent::new("default".into()));

Expand All @@ -203,7 +203,7 @@ async fn test_load_table() -> Result<()> {

#[tokio::test]
async fn test_create_table() -> Result<()> {
let fixture = set_test_fixture("test_list_namespace").await;
let fixture = set_test_fixture("test_create_table").await;
let creation = set_table_creation("s3a://warehouse/hive", "my_table")?;
let namespace = Namespace::new(NamespaceIdent::new("default".into()));

Expand All @@ -226,6 +226,19 @@ async fn test_create_table() -> Result<()> {
Ok(())
}

#[tokio::test]
async fn test_list_tables() -> Result<()> {
let fixture = set_test_fixture("test_list_tables").await;

let ns = Namespace::new(NamespaceIdent::new("default".into()));

let result = fixture.hms_catalog.list_tables(ns.name()).await?;

assert_eq!(result, vec![]);

Ok(())
}

#[tokio::test]
async fn test_list_namespace() -> Result<()> {
let fixture = set_test_fixture("test_list_namespace").await;
Expand Down Expand Up @@ -365,16 +378,3 @@ async fn test_drop_namespace() -> Result<()> {

Ok(())
}

#[tokio::test]
async fn test_list_tables() -> Result<()> {
let fixture = set_test_fixture("test_list_tables").await;

let ns = Namespace::new(NamespaceIdent::new("default".into()));

let result = fixture.hms_catalog.list_tables(ns.name()).await?;

assert_eq!(result, vec![]);

Ok(())
}

0 comments on commit eaef1ef

Please sign in to comment.