Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Remove TestMetricView
Browse files Browse the repository at this point in the history
This test is no longer needed on the connector side. It is covered on
the extension side, and it is blocking pending changes in the extension.
  • Loading branch information
jgpruitt committed Oct 27, 2022
1 parent c3ad7d3 commit 507e376
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions pkg/tests/end_to_end_tests/functions_test.go
Expand Up @@ -20,33 +20,6 @@ import (
"github.com/timescale/promscale/pkg/prompb"
)

func TestMetricView(t *testing.T) {
if testing.Short() {
t.Skip("skipping integration test")
}

withDB(t, *testDatabase, func(dbOwner *pgxpool.Pool, t testing.TB) {
db := testhelpers.PgxPoolWithRole(t, *testDatabase, "prom_reader")
defer db.Close()
dbWriter := testhelpers.PgxPoolWithRole(t, *testDatabase, "prom_writer")
defer dbWriter.Close()

_, err := dbWriter.Exec(context.Background(), "SELECT * FROM _prom_catalog.get_or_create_metric_table_name(metric_name => $1)", "test_metric_name")
if err != nil {
t.Fatal(err)
}

var res string
err = dbWriter.QueryRow(context.Background(), "SELECT metric_name FROM _prom_catalog.metric_view()").Scan(&res)
if err != nil {
t.Fatal(err)
}
if res != "test_metric_name" {
t.Fatal("Fail")
}
})
}

func TestSQLJsonLabelArray(t *testing.T) {
if testing.Short() {
t.Skip("skipping integration test")
Expand Down

0 comments on commit 507e376

Please sign in to comment.