Skip to content

Commit

Permalink
rename resource test target
Browse files Browse the repository at this point in the history
  • Loading branch information
RaynorChavez committed Jul 17, 2024
1 parent 7dfb9fc commit f5fe2a3
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions internal/provider/indices_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,24 @@ func TestAccResourceIndex(t *testing.T) {
fmt.Println("Starting Create and Read testing")
return nil
},
resource.TestCheckResourceAttr("marqo_index.test", "index_name", unstructured_index_name),
resource.TestCheckResourceAttr("marqo_index.test", "settings.type", "unstructured"),
resource.TestCheckResourceAttr("marqo_index.test", "settings.vector_numeric_type", "float"),
resource.TestCheckResourceAttr("marqo_index.test", "settings.treat_urls_and_pointers_as_images", "true"),
resource.TestCheckResourceAttr("marqo_index.test", "settings.model", "hf/e5-small-v2"),
resource.TestCheckResourceAttr("marqo_index.test", "settings.normalize_embeddings", "true"),
resource.TestCheckResourceAttr("marqo_index.test", "settings.inference_type", "marqo.CPU.small"),
resource.TestCheckResourceAttr("marqo_index.test", "settings.number_of_inferences", "1"),
resource.TestCheckResourceAttr("marqo_index.test", "settings.number_of_replicas", "0"),
resource.TestCheckResourceAttr("marqo_index.test", "settings.number_of_shards", "1"),
resource.TestCheckResourceAttr("marqo_index.test", "settings.storage_class", "marqo.basic"),
resource.TestCheckResourceAttr("marqo_index.test", "settings.text_preprocessing.split_length", "2"),
resource.TestCheckResourceAttr("marqo_index.test", "settings.text_preprocessing.split_method", "sentence"),
resource.TestCheckResourceAttr("marqo_index.test", "settings.text_preprocessing.split_overlap", "0"),
resource.TestCheckResourceAttr("marqo_index.test", "settings.ann_parameters.space_type", "prenormalized-angular"),
resource.TestCheckResourceAttr("marqo_index.test", "settings.ann_parameters.parameters.ef_construction", "512"),
resource.TestCheckResourceAttr("marqo_index.test", "settings.ann_parameters.parameters.m", "16"),
resource.TestCheckResourceAttr("marqo_index.test", "settings.filter_string_max_length", "20"),
resource.TestCheckResourceAttr("marqo-terraform_index.test", "index_name", unstructured_index_name),
resource.TestCheckResourceAttr("marqo-terraform_index.test", "settings.type", "unstructured"),
resource.TestCheckResourceAttr("marqo-terraform_index.test", "settings.vector_numeric_type", "float"),
resource.TestCheckResourceAttr("marqo-terraform_index.test", "settings.treat_urls_and_pointers_as_images", "true"),
resource.TestCheckResourceAttr("marqo-terraform_index.test", "settings.model", "hf/e5-small-v2"),
resource.TestCheckResourceAttr("marqo-terraform_index.test", "settings.normalize_embeddings", "true"),
resource.TestCheckResourceAttr("marqo-terraform_index.test", "settings.inference_type", "marqo.CPU.small"),
resource.TestCheckResourceAttr("marqo-terraform_index.test", "settings.number_of_inferences", "1"),
resource.TestCheckResourceAttr("marqo-terraform_index.test", "settings.number_of_replicas", "0"),
resource.TestCheckResourceAttr("marqo-terraform_index.test", "settings.number_of_shards", "1"),
resource.TestCheckResourceAttr("marqo-terraform_index.test", "settings.storage_class", "marqo.basic"),
resource.TestCheckResourceAttr("marqo-terraform_index.test", "settings.text_preprocessing.split_length", "2"),
resource.TestCheckResourceAttr("marqo-terraform_index.test", "settings.text_preprocessing.split_method", "sentence"),
resource.TestCheckResourceAttr("marqo-terraform_index.test", "settings.text_preprocessing.split_overlap", "0"),
resource.TestCheckResourceAttr("marqo-terraform_index.test", "settings.ann_parameters.space_type", "prenormalized-angular"),
resource.TestCheckResourceAttr("marqo-terraform_index.test", "settings.ann_parameters.parameters.ef_construction", "512"),
resource.TestCheckResourceAttr("marqo-terraform_index.test", "settings.ann_parameters.parameters.m", "16"),
resource.TestCheckResourceAttr("marqo-terraform_index.test", "settings.filter_string_max_length", "20"),
testAccCheckIndexIsReady(unstructured_index_name),
func(s *terraform.State) error {
fmt.Println("Create and Read testing completed")
Expand All @@ -57,7 +57,7 @@ func TestAccResourceIndex(t *testing.T) {
// ImportState testing
/*
{
ResourceName: "marqo_index.test",
ResourceName: "marqo-terraform_index.test",
ImportState: true,
ImportStateVerify: true,
},
Expand All @@ -70,9 +70,9 @@ func TestAccResourceIndex(t *testing.T) {
fmt.Println("Starting Update and Read testing")
return nil
},
resource.TestCheckResourceAttr("marqo_index.test", "index_name", unstructured_index_name),
resource.TestCheckResourceAttr("marqo_index.test", "settings.inference_type", "marqo.CPU.large"),
resource.TestCheckResourceAttr("marqo_index.test", "settings.number_of_inferences", "2"),
resource.TestCheckResourceAttr("marqo-terraform_index.test", "index_name", unstructured_index_name),
resource.TestCheckResourceAttr("marqo-terraform_index.test", "settings.inference_type", "marqo.CPU.large"),
resource.TestCheckResourceAttr("marqo-terraform_index.test", "settings.number_of_inferences", "2"),
testAccCheckIndexIsReady(unstructured_index_name),
func(s *terraform.State) error {
fmt.Println("Update and Read testing completed")
Expand Down

0 comments on commit f5fe2a3

Please sign in to comment.