From 584f0114293db78cad930bd35dc51a69a5368c81 Mon Sep 17 00:00:00 2001 From: Ben Rosen Date: Wed, 13 Jul 2022 16:52:12 -0600 Subject: [PATCH] update tag test --- pkg/resources/tag_test.go | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/pkg/resources/tag_test.go b/pkg/resources/tag_test.go index cd53f2ec02..18a7565a8b 100644 --- a/pkg/resources/tag_test.go +++ b/pkg/resources/tag_test.go @@ -43,30 +43,6 @@ func TestTagCreate(t *testing.T) { }) } -func TestTagUpdate(t *testing.T) { - r := require.New(t) - - in := map[string]interface{}{ - "name": "good_name", - "database": "test_db", - "schema": "test_schema", - "comment": "great comment", - "allowed_values": []interface{}{"marketing", "finance"}, - } - - d := tag(t, "test_db|test_schema|good_name", in) - r.NotNil(d) - - WithMockDb(t, func(db *sql.DB, mock sqlmock.Sqlmock) { - mock.ExpectExec(`^ALTER TAG "test_db"."test_schema"."good_name" SET COMMENT = 'great comment'$`).WillReturnResult(sqlmock.NewResult(1, 1)) - mock.ExpectExec(`^ALTER TAG "test_db"."test_schema"."good_name" UNSET ALLOWED_VALUES$`).WillReturnResult(sqlmock.NewResult(1, 1)) - mock.ExpectExec(`^ALTER TAG "test_db"."test_schema"."good_name" ADD ALLOWED_VALUES 'marketing', 'finance'$`).WillReturnResult(sqlmock.NewResult(1, 1)) - - expectReadTag(mock) - err := resources.UpdateTag(d, db) - r.NoError(err) - }) -} func TestTagDelete(t *testing.T) { r := require.New(t)