github.com/weaviate/weaviate@v1.24.6/test/acceptance/graphql_resolvers/network_get_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  // import (
    15  // 	"testing"
    16  
    17  // 	"github.com/weaviate/weaviate/test/helper"
    18  // 	"github.com/stretchr/testify/assert"
    19  // )
    20  
    21  // // Note: Things.Instruments is not something that is present in our local schema
    22  // // This is on purpose to verify that we have support for a completely different
    23  // // schema on a remote instance.
    24  // func TestNetworkGetSimple(t *testing.T) {
    25  // 	result := AssertGraphQL(t, helper.RootAuth, "{ Network { Get { RemoteWeaviateForAcceptanceTest { Things { Instruments { name } } } } }")
    26  // 	instruments := result.Get("Network", "Get", "RemoteWeaviateForAcceptanceTest", "Things", "Instruments").AsSlice()
    27  
    28  // 	expected := []interface{}{
    29  // 		map[string]interface{}{"name": "Piano"},
    30  // 		map[string]interface{}{"name": "Guitar"},
    31  // 		map[string]interface{}{"name": "Bass Guitar"},
    32  // 		map[string]interface{}{"name": "Talkbox"},
    33  // 	}
    34  
    35  // 	assert.ElementsMatch(t, expected, instruments)
    36  // }