github.com/weaviate/weaviate@v1.24.6/test/acceptance/telemetry/setup_test.go (about)

     1  //                           _       _
     2  // __      _____  __ ___   ___  __ _| |_ ___
     3  // \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \
     4  //  \ V  V /  __/ (_| |\ V /| | (_| | ||  __/
     5  //   \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___|
     6  //
     7  //  Copyright © 2016 - 2024 Weaviate B.V. All rights reserved.
     8  //
     9  //  CONTACT: hello@weaviate.io
    10  //
    11  
    12  package test
    13  
    14  // TODO gh-1232: remove
    15  // import (
    16  // 	"testing"
    17  
    18  // 	"github.com/weaviate/weaviate/client/schema"
    19  // 	"github.com/weaviate/weaviate/entities/models"
    20  // 	"github.com/weaviate/weaviate/test/helper"
    21  // )
    22  
    23  // func Test_Actions(t *testing.T) {
    24  // 	t.Run("setup", func(t *testing.T) {
    25  // 		createActionClass(t, &models.Class{
    26  // 			Class: "MonitoringTestAction",
    27  // 			Properties: []*models.Property{
    28  // 				&models.Property{
    29  // 					Name:     "testString",
    30  // DataType:     schema.DataTypeText.PropString(),
    31  // Tokenization: models.PropertyTokenizationWhitespace,
    32  // 				},
    33  // 				&models.Property{
    34  // 					Name:     "testWholeNumber",
    35  // 					DataType: []string{"int"},
    36  // 				},
    37  // 				&models.Property{
    38  // 					Name:     "testNumber",
    39  // 					DataType: []string{"number"},
    40  // 				},
    41  // 				&models.Property{
    42  // 					Name:     "testDateTime",
    43  // 					DataType: []string{"date"},
    44  // 				},
    45  // 				&models.Property{
    46  // 					Name:     "testTrueFalse",
    47  // 					DataType: []string{"boolean"},
    48  // 				},
    49  // 			},
    50  // 		})
    51  // 	})
    52  
    53  // 	// tests
    54  // 	t.Run("create action logging", createActionLogging)
    55  
    56  // 	// tear down
    57  // 	deleteActionClass(t, "MonitoringTestAction")
    58  // }
    59  
    60  // func createActionClass(t *testing.T, class *models.Class) {
    61  // 	params := schema.NewSchemaActionsCreateParams().WithActionClass(class)
    62  // 	resp, err := helper.Client(t).Schema.SchemaActionsCreate(params, nil)
    63  // 	helper.AssertRequestOk(t, resp, err, nil)
    64  // }
    65  
    66  // func deleteActionClass(t *testing.T, class string) {
    67  // 	delParams := schema.NewSchemaActionsDeleteParams().WithClassName(class)
    68  // 	delRes, err := helper.Client(t).Schema.SchemaActionsDelete(delParams, nil)
    69  // 	helper.AssertRequestOk(t, delRes, err, nil)
    70  // }