Skip to content

Commit

Permalink
Merge pull request #20 from fnaoto/2022-11-16
Browse files Browse the repository at this point in the history
Fix api endpoint in test.
  • Loading branch information
fnaoto authored Nov 16, 2022
2 parents c875ce5 + fef16b1 commit 2575586
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion app_distribution_page_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
func Test_DeleteAppDistributionPage(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Fatal(err)
}
Expand Down
6 changes: 3 additions & 3 deletions app_member_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
func Test_GetAppMembers(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -45,7 +45,7 @@ func Test_GetAppMembers(t *testing.T) {
func Test_AddAppMembers(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -82,7 +82,7 @@ func Test_AddAppMembers(t *testing.T) {
func Test_RemoveAppMembers(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Fatal(err)
}
Expand Down
4 changes: 2 additions & 2 deletions app_protection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
func Test_EnableAppProtection(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -46,7 +46,7 @@ func Test_EnableAppProtection(t *testing.T) {
func Test_DisableAppProtection(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Fatal(err)
}
Expand Down
6 changes: 3 additions & 3 deletions app_shared_team_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
func Test_ListAppSharedTeams(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -45,7 +45,7 @@ func Test_ListAppSharedTeams(t *testing.T) {
func Test_AddAppSharedTeam(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -78,7 +78,7 @@ func Test_AddAppSharedTeam(t *testing.T) {
func Test_RemoveAppSharedTeam(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Fatal(err)
}
Expand Down
6 changes: 3 additions & 3 deletions app_team_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
func Test_ListAppTeams(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -45,7 +45,7 @@ func Test_ListAppTeams(t *testing.T) {
func Test_AddAppTeam(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -78,7 +78,7 @@ func Test_AddAppTeam(t *testing.T) {
func Test_RemoveAppTeam(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
func Test_UploadApps(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion distribution_page_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
func Test_DeleteDistributionsPage(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Fatal(err)
}
Expand Down
6 changes: 3 additions & 3 deletions enterprise_member_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
func Test_ListEnterpriseMember(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -43,7 +43,7 @@ func Test_ListEnterpriseMember(t *testing.T) {
func Test_AddEnterpriseMember(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -74,7 +74,7 @@ func Test_AddEnterpriseMember(t *testing.T) {
func Test_RemoveEnterpriseMember(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Fatal(err)
}
Expand Down
6 changes: 3 additions & 3 deletions enterprise_organization_member_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
func Test_ListEnterpriseOrganizationMembers(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -44,7 +44,7 @@ func Test_ListEnterpriseOrganizationMembers(t *testing.T) {
func Test_AddEnterpriseOrganizationMember(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -76,7 +76,7 @@ func Test_AddEnterpriseOrganizationMember(t *testing.T) {
func Test_RemoveEnterpriseOrganizationMember(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Fatal(err)
}
Expand Down
6 changes: 3 additions & 3 deletions enterprise_shared_team_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
func Test_ListEnterpriseSharedTeams(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -43,7 +43,7 @@ func Test_ListEnterpriseSharedTeams(t *testing.T) {
func Test_AddEnterpriseSharedTeam(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -75,7 +75,7 @@ func Test_AddEnterpriseSharedTeam(t *testing.T) {
func Test_RemoveEnterpriseSharedTeam(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Fatal(err)
}
Expand Down
10 changes: 5 additions & 5 deletions organization_member_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
func Test_ListOrganizationMembers(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Error(err)
}
Expand Down Expand Up @@ -43,7 +43,7 @@ func Test_ListOrganizationMembers(t *testing.T) {
func Test_AddOrganizationMemberByUserName(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Error(err)
}
Expand Down Expand Up @@ -77,7 +77,7 @@ func Test_AddOrganizationMemberByUserName(t *testing.T) {
func Test_AddOrganizationMemberByEmail(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Error(err)
}
Expand Down Expand Up @@ -111,7 +111,7 @@ func Test_AddOrganizationMemberByEmail(t *testing.T) {
func Test_RemoveOrganizationMemberByUserName(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Error(err)
}
Expand Down Expand Up @@ -145,7 +145,7 @@ func Test_RemoveOrganizationMemberByUserName(t *testing.T) {
func Test_RemoveOrganizationMemberByEmail(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Error(err)
}
Expand Down
6 changes: 3 additions & 3 deletions organization_team_member_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
func Test_ListOrganizationTeamMembers(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Error(err)
}
Expand Down Expand Up @@ -44,7 +44,7 @@ func Test_ListOrganizationTeamMembers(t *testing.T) {
func Test_AddOrganizationTeamMember(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Error(err)
}
Expand Down Expand Up @@ -76,7 +76,7 @@ func Test_AddOrganizationTeamMember(t *testing.T) {
func Test_RemoveOrganizationTeamMember(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Error(err)
}
Expand Down
10 changes: 5 additions & 5 deletions organization_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
func Test_ListOrganizations(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Error(err)
}
Expand Down Expand Up @@ -41,7 +41,7 @@ func Test_ListOrganizations(t *testing.T) {
func Test_CreateOrganization(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Error(err)
}
Expand Down Expand Up @@ -75,7 +75,7 @@ func Test_CreateOrganization(t *testing.T) {
func Test_GetOrganization(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Error(err)
}
Expand Down Expand Up @@ -108,7 +108,7 @@ func Test_GetOrganization(t *testing.T) {
func Test_UpdateOrganization(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Error(err)
}
Expand Down Expand Up @@ -142,7 +142,7 @@ func Test_UpdateOrganization(t *testing.T) {
func Test_DeleteOrganization(t *testing.T) {
t.Parallel()

c, err := NewClient("api_key", "api_endpoint")
c, err := NewClient("api_key", "https://deploygate.com/api")
if err != nil {
t.Error(err)
}
Expand Down

0 comments on commit 2575586

Please sign in to comment.