removed role_dps
This commit is contained in:
@@ -222,11 +222,11 @@ func TestAuthorizeWithCache_Success(t *testing.T) {
|
|||||||
userRows := sqlmock.NewRows([]string{"user_id", "first_name", "middle_initial", "last_name", "suffix", "email_address",
|
userRows := sqlmock.NewRows([]string{"user_id", "first_name", "middle_initial", "last_name", "suffix", "email_address",
|
||||||
"account_type", "emp_id", "reg", "prov", "aProv", "mun", "bgy", "is_logged_in",
|
"account_type", "emp_id", "reg", "prov", "aProv", "mun", "bgy", "is_logged_in",
|
||||||
"first_logged_in", "address", "contact_number", "device_id", "role_id",
|
"first_logged_in", "address", "contact_number", "device_id", "role_id",
|
||||||
"role_dps", "is_deleted", "secret_key", "is_activated", "created_at", "updated_at"}).
|
"is_deleted", "secret_key", "is_activated", "created_at", "updated_at"}).
|
||||||
AddRow("user123", "John", "", "Doe", "", "john@example.com",
|
AddRow("user123", "John", "", "Doe", "", "john@example.com",
|
||||||
"regular", "EMP123", "01", "001", "001", "01", "001", "Y",
|
"regular", "EMP123", "01", "001", "001", "01", "001", "Y",
|
||||||
"Y", "123 Street", "09123456789", "device1", 1,
|
"Y", "123 Street", "09123456789", "device1", 1,
|
||||||
0, "N", "secret", "Y", time.Now(), time.Now())
|
"N", "secret", "Y", time.Now(), time.Now())
|
||||||
|
|
||||||
mock.ExpectQuery("SELECT user_id, first_name, middle_initial, last_name, suffix, email_address").
|
mock.ExpectQuery("SELECT user_id, first_name, middle_initial, last_name, suffix, email_address").
|
||||||
WithArgs("user123").
|
WithArgs("user123").
|
||||||
@@ -279,11 +279,11 @@ func TestAuthorizeWithCache_PermissionNotFound(t *testing.T) {
|
|||||||
userRows := sqlmock.NewRows([]string{"user_id", "first_name", "middle_initial", "last_name", "suffix", "email_address",
|
userRows := sqlmock.NewRows([]string{"user_id", "first_name", "middle_initial", "last_name", "suffix", "email_address",
|
||||||
"account_type", "emp_id", "reg", "prov", "aProv", "mun", "bgy", "is_logged_in",
|
"account_type", "emp_id", "reg", "prov", "aProv", "mun", "bgy", "is_logged_in",
|
||||||
"first_logged_in", "address", "contact_number", "device_id", "role_id",
|
"first_logged_in", "address", "contact_number", "device_id", "role_id",
|
||||||
"role_dps", "is_deleted", "secret_key", "is_activated", "created_at", "updated_at"}).
|
"is_deleted", "secret_key", "is_activated", "created_at", "updated_at"}).
|
||||||
AddRow("user123", "John", "", "Doe", "", "john@example.com",
|
AddRow("user123", "John", "", "Doe", "", "john@example.com",
|
||||||
"regular", "EMP123", "01", "001", "001", "01", "001", "Y",
|
"regular", "EMP123", "01", "001", "001", "01", "001", "Y",
|
||||||
"Y", "123 Street", "09123456789", "device1", 1,
|
"Y", "123 Street", "09123456789", "device1", 1,
|
||||||
0, "N", "secret", "Y", time.Now(), time.Now())
|
"N", "secret", "Y", time.Now(), time.Now())
|
||||||
|
|
||||||
mock.ExpectQuery("SELECT user_id, first_name, middle_initial, last_name, suffix, email_address").
|
mock.ExpectQuery("SELECT user_id, first_name, middle_initial, last_name, suffix, email_address").
|
||||||
WithArgs("user123").
|
WithArgs("user123").
|
||||||
|
|||||||
Reference in New Issue
Block a user