Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename integration specs #428

Merged
merged 1 commit into from
Apr 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import github4s.Github
import github4s.domain._
import github4s.utils.{BaseIntegrationSpec, Integration}

trait GHActivitiesSpec extends BaseIntegrationSpec {
trait ActivitiesSpec extends BaseIntegrationSpec {

"Activity >> Set a thread subscription" should "return expected response when a valid thread id is provided" taggedAs Integration in {
val response = clientResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import github4s.Github
import github4s.domain._
import github4s.utils.{BaseIntegrationSpec, Integration}

trait GHAuthSpec extends BaseIntegrationSpec {
trait AuthSpec extends BaseIntegrationSpec {

"Auth >> NewAuth" should "return error on Left when invalid credential is provided" taggedAs Integration in {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import github4s.Github
import github4s.domain._
import github4s.utils.{BaseIntegrationSpec, Integration}

trait GHGitDataSpec extends BaseIntegrationSpec {
trait GitDataSpec extends BaseIntegrationSpec {

"GitData >> GetReference" should "return a list of references" taggedAs Integration in {
val response = clientResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import github4s.Github
import github4s.domain._
import github4s.utils.{BaseIntegrationSpec, Integration}

trait GHIssuesSpec extends BaseIntegrationSpec {
trait IssuesSpec extends BaseIntegrationSpec {

"Issues >> List" should "return a list of issues" taggedAs Integration in {
val response = clientResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import github4s.Github
import github4s.domain._
import github4s.utils.{BaseIntegrationSpec, Integration}

trait GHOrganizationsSpec extends BaseIntegrationSpec {
trait OrganizationsSpec extends BaseIntegrationSpec {

"Organization >> ListMembers" should "return the expected list of users" taggedAs Integration in {
val response = clientResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import github4s.Github
import github4s.domain.{Card, Column, Project}
import github4s.utils.{BaseIntegrationSpec, Integration}

trait GHProjectsSpec extends BaseIntegrationSpec {
trait ProjectsSpec extends BaseIntegrationSpec {

"Project >> ListProjects" should "return the expected projects when a valid org is provided" taggedAs Integration in {
val response = clientResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import github4s.Github
import github4s.domain._
import github4s.utils.{BaseIntegrationSpec, Integration}

trait GHPullRequestsSpec extends BaseIntegrationSpec {
trait PullRequestsSpec extends BaseIntegrationSpec {

"PullRequests >> Get" should "return a right response when a valid pr number is provided" taggedAs Integration in {
val response = clientResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import github4s.Github
import github4s.domain._
import github4s.utils.{BaseIntegrationSpec, Integration}

trait GHReposSpec extends BaseIntegrationSpec {
trait ReposSpec extends BaseIntegrationSpec {

"Repos >> Get" should "return the expected name when a valid repo is provided" taggedAs Integration in {
val response = clientResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import github4s.Github
import github4s.domain._
import github4s.utils.{BaseIntegrationSpec, Integration}

trait GHTeamsSpec extends BaseIntegrationSpec {
trait TeamsSpec extends BaseIntegrationSpec {
"Team >> ListTeams" should "return the expected teams when a valid org is provided" taggedAs Integration in {
val response = clientResource
.use { client =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import github4s.Github
import github4s.domain._
import github4s.utils.{BaseIntegrationSpec, Integration}

trait GHUsersSpec extends BaseIntegrationSpec {
trait UsersSpec extends BaseIntegrationSpec {

"Users >> Get" should "return the expected login for a valid username" taggedAs Integration in {
val response = clientResource
Expand Down
20 changes: 10 additions & 10 deletions github4s/src/test/scala/github4s/utils/BaseIntegrationSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ import scala.concurrent.ExecutionContext

class IntegrationSpec
extends BaseIntegrationSpec
with GHActivitiesSpec
with GHAuthSpec
with GHGitDataSpec
with GHIssuesSpec
with GHOrganizationsSpec
with GHPullRequestsSpec
with GHReposSpec
with GHUsersSpec
with GHTeamsSpec
with GHProjectsSpec
with ActivitiesSpec
with AuthSpec
with GitDataSpec
with IssuesSpec
with OrganizationsSpec
with PullRequestsSpec
with ReposSpec
with UsersSpec
with TeamsSpec
with ProjectsSpec

object Integration
extends Tag(
Expand Down