This is an automated email from the ASF dual-hosted git repository.

dangogh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git

commit 8324aabe9e7a91b947740a69383c9322bc6dee0e
Author: Dewayne Richardson <dewr...@apache.org>
AuthorDate: Wed Feb 14 11:20:35 2018 -0700

    fixed test cases for the Inserter to Creator interface name change
---
 traffic_ops/traffic_ops_golang/api/change_log_test.go      | 4 ++--
 traffic_ops/traffic_ops_golang/api/shared_handlers_test.go | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/traffic_ops/traffic_ops_golang/api/change_log_test.go 
b/traffic_ops/traffic_ops_golang/api/change_log_test.go
index 62e69c7..bfbcab2 100644
--- a/traffic_ops/traffic_ops_golang/api/change_log_test.go
+++ b/traffic_ops/traffic_ops_golang/api/change_log_test.go
@@ -44,7 +44,7 @@ func (i *testIdentifier) GetAuditName() string {
        return "testerInstance"
 }
 
-func TestInsertChangeLog(t *testing.T) {
+func TestCreateChangeLog(t *testing.T) {
        mockDB, mock, err := sqlmock.New()
        if err != nil {
                t.Fatalf("an error '%s' was not expected when opening a stub 
database connection", err)
@@ -60,7 +60,7 @@ func TestInsertChangeLog(t *testing.T) {
 
        mock.ExpectExec("INSERT").WithArgs(ApiChange, expectedMessage, 
1).WillReturnResult(sqlmock.NewResult(1, 1))
        user := auth.CurrentUser{ID: 1}
-       err = InsertChangeLog(ApiChange, Created, &i, user, db)
+       err = CreateChangeLog(ApiChange, Created, &i, user, db)
        if err != nil {
                t.Fatal(err)
        }
diff --git a/traffic_ops/traffic_ops_golang/api/shared_handlers_test.go 
b/traffic_ops/traffic_ops_golang/api/shared_handlers_test.go
index 7f6873c..51b3aa6 100644
--- a/traffic_ops/traffic_ops_golang/api/shared_handlers_test.go
+++ b/traffic_ops/traffic_ops_golang/api/shared_handlers_test.go
@@ -62,8 +62,8 @@ func (v *tester) Validate(db *sqlx.DB) []error {
        return []error{}
 }
 
-//Inserter interface functions
-func (i *tester) Insert(db *sqlx.DB, user auth.CurrentUser) (error, 
tc.ApiErrorType) {
+//Creator interface functions
+func (i *tester) Create(db *sqlx.DB, user auth.CurrentUser) (error, 
tc.ApiErrorType) {
        return i.error, i.errorType
 }
 

-- 
To stop receiving notification emails like this one, please contact
dang...@apache.org.

Reply via email to