Skip to content

Commit

Permalink
Query span tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kjg authored Oct 24, 2024
1 parent 70ab041 commit 0b34e33
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sdk/data/azcosmos/emulator_cosmos_container_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
func TestContainerCRUD(t *testing.T) {
emulatorTests := newEmulatorTests(t)
client := emulatorTests.getClient(t, newSpanValidator(t, &spanMatcher{
ExpectedSpans: []string{"create_container aContainer", "read_container aContainer", "replace_container aContainer", "read_container_throughput aContainer", "replace_container_throughput aContainer", "delete_container aContainer"},
ExpectedSpans: []string{"create_container aContainer", "read_container aContainer", "query_containers containerCRUD", "replace_container aContainer", "read_container_throughput aContainer", "replace_container_throughput aContainer", "delete_container aContainer"},
}))

database := emulatorTests.createDatabase(t, context.TODO(), client, "containerCRUD")
Expand Down
2 changes: 1 addition & 1 deletion sdk/data/azcosmos/emulator_cosmos_database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
func TestDatabaseCRUD(t *testing.T) {
emulatorTests := newEmulatorTests(t)
client := emulatorTests.getClient(t, newSpanValidator(t, &spanMatcher{
ExpectedSpans: []string{"create_database baseDbTest", "read_database baseDbTest", "delete_database baseDbTest", "read_database_throughput baseDbTest"},
ExpectedSpans: []string{"create_database baseDbTest", "read_database baseDbTest", "query_databases localhost", "delete_database baseDbTest", "read_database_throughput baseDbTest"},
}))

database := DatabaseProperties{ID: "baseDbTest"}
Expand Down
8 changes: 4 additions & 4 deletions sdk/data/azcosmos/emulator_cosmos_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
func TestSinglePartitionQueryWithIndexMetrics(t *testing.T) {
emulatorTests := newEmulatorTests(t)
client := emulatorTests.getClient(t, newSpanValidator(t, &spanMatcher{
ExpectedSpans: []string{},
ExpectedSpans: []string{"query_items aContainer"},
}))

database := emulatorTests.createDatabase(t, context.TODO(), client, "queryTests")
Expand Down Expand Up @@ -88,7 +88,7 @@ func TestSinglePartitionQueryWithIndexMetrics(t *testing.T) {
func TestSinglePartitionQuery(t *testing.T) {
emulatorTests := newEmulatorTests(t)
client := emulatorTests.getClient(t, newSpanValidator(t, &spanMatcher{
ExpectedSpans: []string{},
ExpectedSpans: []string{"query_items aContainer"},
}))

database := emulatorTests.createDatabase(t, context.TODO(), client, "queryTests")
Expand Down Expand Up @@ -176,7 +176,7 @@ func TestSinglePartitionQuery(t *testing.T) {
func TestSinglePartitionQueryWithParameters(t *testing.T) {
emulatorTests := newEmulatorTests(t)
client := emulatorTests.getClient(t, newSpanValidator(t, &spanMatcher{
ExpectedSpans: []string{},
ExpectedSpans: []string{"query_items aContainer"},
}))

database := emulatorTests.createDatabase(t, context.TODO(), client, "queryTests")
Expand Down Expand Up @@ -228,7 +228,7 @@ func TestSinglePartitionQueryWithParameters(t *testing.T) {
func TestSinglePartitionQueryWithProjection(t *testing.T) {
emulatorTests := newEmulatorTests(t)
client := emulatorTests.getClient(t, newSpanValidator(t, &spanMatcher{
ExpectedSpans: []string{},
ExpectedSpans: []string{"query_items aContainer"},
}))

database := emulatorTests.createDatabase(t, context.TODO(), client, "queryTests")
Expand Down

0 comments on commit 0b34e33

Please sign in to comment.