Chore: Rename integration tests to follow the common convention (#105987)
* automatically rename integration tests to follow the common convention * name tests differently * alter column type to bigint * update another column to bigint * add another alter * fix subquery for mysql
This commit is contained in:
@@ -30,7 +30,7 @@ type getDescriptionTestCase struct {
|
||||
expectedStatus int
|
||||
}
|
||||
|
||||
func TestApi_getDescription(t *testing.T) {
|
||||
func TestIntegrationApi_getDescription(t *testing.T) {
|
||||
tests := []getDescriptionTestCase{
|
||||
{
|
||||
desc: "should return description",
|
||||
@@ -135,7 +135,7 @@ type getPermissionsTestCase struct {
|
||||
expectedStatus int
|
||||
}
|
||||
|
||||
func TestApi_getPermissions(t *testing.T) {
|
||||
func TestIntegrationApi_getPermissions(t *testing.T) {
|
||||
tests := []getPermissionsTestCase{
|
||||
{
|
||||
desc: "expect permissions for resource with id 1",
|
||||
@@ -181,7 +181,7 @@ type setBuiltinPermissionTestCase struct {
|
||||
permissions []accesscontrol.Permission
|
||||
}
|
||||
|
||||
func TestApi_setBuiltinRolePermission(t *testing.T) {
|
||||
func TestIntegrationApi_setBuiltinRolePermission(t *testing.T) {
|
||||
tests := []setBuiltinPermissionTestCase{
|
||||
{
|
||||
desc: "should set Edit permission for Viewer",
|
||||
@@ -260,7 +260,7 @@ type setTeamPermissionTestCase struct {
|
||||
byUID bool
|
||||
}
|
||||
|
||||
func TestApi_setTeamPermission(t *testing.T) {
|
||||
func TestIntegrationApi_setTeamPermission(t *testing.T) {
|
||||
tests := []setTeamPermissionTestCase{
|
||||
{
|
||||
desc: "should set Edit permission for team 1",
|
||||
@@ -367,7 +367,7 @@ type setUserPermissionTestCase struct {
|
||||
permissions []accesscontrol.Permission
|
||||
}
|
||||
|
||||
func TestApi_setUserPermission(t *testing.T) {
|
||||
func TestIntegrationApi_setUserPermission(t *testing.T) {
|
||||
tests := []setUserPermissionTestCase{
|
||||
{
|
||||
desc: "should set Edit permission for user 1",
|
||||
@@ -442,7 +442,7 @@ func TestApi_setUserPermission(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestApi_setUserPermissionForTeams(t *testing.T) {
|
||||
func TestIntegrationApi_setUserPermissionForTeams(t *testing.T) {
|
||||
type setUserPermissionForTeamsTestCase struct {
|
||||
setUserPermissionTestCase
|
||||
teamCmd *team.CreateTeamCommand
|
||||
|
||||
Reference in New Issue
Block a user