Skip to content

Commit

Permalink
Merge pull request #55 from cvbarros/v0.5.0-sdk
Browse files Browse the repository at this point in the history
Update to go-teamcity v0.5.0
  • Loading branch information
cvbarros authored Jul 30, 2019
2 parents 1e0547f + 05b8a93 commit 2e6b0ad
Show file tree
Hide file tree
Showing 32 changed files with 39 additions and 928 deletions.
854 changes: 0 additions & 854 deletions Gopkg.lock

This file was deleted.

38 changes: 0 additions & 38 deletions Gopkg.toml

This file was deleted.

2 changes: 1 addition & 1 deletion examples/build_trigger_build_finish.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ resource "teamcity_vcs_root_git" "vcs" {
name = "Application"
project_id = "${teamcity_project.project.id}"

url = "https://github.com/cvbarros/go-teamcity-sdk"
url = "https://github.com/cvbarros/go-teamcity"
branch = "refs/head/master"
}

Expand Down
2 changes: 1 addition & 1 deletion examples/build_trigger_schedule.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ resource "teamcity_vcs_root_git" "project_vcs" {
name = "Application"
project_id = "${teamcity_project.project.id}"

url = "https://github.com/cvbarros/go-teamcity-sdk"
url = "https://github.com/cvbarros/go-teamcity"
branch = "refs/head/master"
}
resource "teamcity_buildconfiguration" "triggered_build" {
Expand Down
7 changes: 3 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ go 1.12
require (
cloud.google.com/go v0.40.0 // indirect
github.com/aws/aws-sdk-go v1.20.6 // indirect
github.com/cvbarros/go-teamcity-sdk v0.0.0-20190131214126-9abe613e03a0
github.com/dghubble/sling v1.2.0 // indirect
github.com/cvbarros/go-teamcity v0.5.0
github.com/dghubble/sling v1.3.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.1 // indirect
github.com/hashicorp/go-hclog v0.9.2 // indirect
github.com/hashicorp/go-plugin v1.0.1 // indirect
Expand All @@ -20,8 +20,7 @@ require (
github.com/mattn/go-isatty v0.0.8 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/reflectwalk v1.0.1 // indirect
github.com/motemen/go-loghttp v0.0.0-20170804080138-974ac5ceac27 // indirect
github.com/motemen/go-nuts v0.0.0-20180315145558-42c35bdb11c2 // indirect
github.com/motemen/go-nuts v0.0.0-20190725124253-1d2432db96b0 // indirect
github.com/spf13/afero v1.2.2 // indirect
github.com/ulikunitz/xz v0.5.6 // indirect
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
Expand Down
8 changes: 6 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,15 @@ github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc
github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
github.com/coreos/go-systemd v0.0.0-20181012123002-c6f51f82210d/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
github.com/cvbarros/go-teamcity-sdk v0.0.0-20190131214126-9abe613e03a0 h1:sTI16Gk8aX76FkoaO+exburvkEsjlTs8wBrpsTnWmp8=
github.com/cvbarros/go-teamcity-sdk v0.0.0-20190131214126-9abe613e03a0/go.mod h1:aMM0uxPTq0IM6jd6bNycRtMGI6dlBDz60B0yn3XZfXQ=
github.com/cvbarros/go-teamcity v0.5.0 h1:sJZrcs0i3ElhUiPw6zTEYQe1WV8h9Q+12dFWAcSBaQU=
github.com/cvbarros/go-teamcity v0.5.0/go.mod h1:wQxn54gP1RHaDYuwwud9MRA+Y8VXfD3d5+ZjZCZLVVU=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/dghubble/sling v1.2.0 h1:PYGS9ofwbV9nfhB1kYjB1vtXshMxlp2oQxTMMXVJ5pE=
github.com/dghubble/sling v1.2.0/go.mod h1:ZcPRuLm0qrcULW2gOrjXrAWgf76sahqSyxXyVOvkunE=
github.com/dghubble/sling v1.3.0 h1:pZHjCJq4zJvc6qVQ5wN1jo5oNZlNE0+8T/h0XeXBUKU=
github.com/dghubble/sling v1.3.0/go.mod h1:XXShWaBWKzNLhu2OxikSNFrlsvowtz4kyRuXUG7oQKY=
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
github.com/dimchansky/utfbom v1.0.0/go.mod h1:rO41eb7gLfo8SF1jd9F8HplJm1Fewwi4mQvIirEdv+8=
github.com/dnaeon/go-vcr v0.0.0-20180920040454-5637cf3d8a31/go.mod h1:aBB1+wY4s93YsC3HHjMBMrwTj2R9FHDzUr9KyGc8n1E=
Expand Down Expand Up @@ -263,6 +265,8 @@ github.com/motemen/go-loghttp v0.0.0-20170804080138-974ac5ceac27 h1:uAI3rnOT1OSS
github.com/motemen/go-loghttp v0.0.0-20170804080138-974ac5ceac27/go.mod h1:6eu9CfGt5kfrMVgeu9MfB9PRUnpc47I+udLswiTszI8=
github.com/motemen/go-nuts v0.0.0-20180315145558-42c35bdb11c2 h1:gfo7RLzXaBdNShd7F5N3K1oM779cD777np9ljUgvf9s=
github.com/motemen/go-nuts v0.0.0-20180315145558-42c35bdb11c2/go.mod h1:vfh/NPxHgDwggXit20W1llPsXcz39xJ7I8vo7kVrOCk=
github.com/motemen/go-nuts v0.0.0-20190725124253-1d2432db96b0 h1:CnSVrlMNAZMWI1+uH6ldpXRv2pe7t50IQX448EJrJhw=
github.com/motemen/go-nuts v0.0.0-20190725124253-1d2432db96b0/go.mod h1:vfh/NPxHgDwggXit20W1llPsXcz39xJ7I8vo7kVrOCk=
github.com/neelance/astrewrite v0.0.0-20160511093645-99348263ae86/go.mod h1:kHJEU3ofeGjhHklVoIGuVj85JJwZ6kWPaJwCIxgnFmo=
github.com/neelance/sourcemap v0.0.0-20151028013722-8c68805598ab/go.mod h1:Qr6/a/Q4r9LP1IltGz7tA7iOK1WonHEYhu1HRBA7ZiM=
github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d/go.mod h1:YUTz3bUH2ZwIWBy3CJBeOBEugqcmXREj14T+iG/4k4U=
Expand Down
2 changes: 1 addition & 1 deletion teamcity/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package teamcity
import (
"net/http"

api "github.com/cvbarros/go-teamcity-sdk/teamcity"
api "github.com/cvbarros/go-teamcity/teamcity"
)

// Config Used to configure an api client for TeamCity
Expand Down
2 changes: 1 addition & 1 deletion teamcity/data_source_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package teamcity
import (
"fmt"

api "github.com/cvbarros/go-teamcity-sdk/teamcity"
api "github.com/cvbarros/go-teamcity/teamcity"
"github.com/hashicorp/terraform/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion teamcity/resource_agent_requirement.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/hashicorp/terraform/helper/validation"

api "github.com/cvbarros/go-teamcity-sdk/teamcity"
api "github.com/cvbarros/go-teamcity/teamcity"
"github.com/hashicorp/terraform/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion teamcity/resource_agent_requirement_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"testing"

api "github.com/cvbarros/go-teamcity-sdk/teamcity"
api "github.com/cvbarros/go-teamcity/teamcity"
"github.com/hashicorp/terraform/helper/resource"
"github.com/hashicorp/terraform/terraform"
)
Expand Down
2 changes: 1 addition & 1 deletion teamcity/resource_artifact_dependency.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package teamcity
import (
"fmt"

api "github.com/cvbarros/go-teamcity-sdk/teamcity"
api "github.com/cvbarros/go-teamcity/teamcity"
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform/helper/validation"
)
Expand Down
2 changes: 1 addition & 1 deletion teamcity/resource_artifact_dependency_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"testing"

api "github.com/cvbarros/go-teamcity-sdk/teamcity"
api "github.com/cvbarros/go-teamcity/teamcity"
"github.com/hashicorp/terraform/helper/resource"
"github.com/hashicorp/terraform/terraform"
)
Expand Down
2 changes: 1 addition & 1 deletion teamcity/resource_build_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"reflect"
"strings"

api "github.com/cvbarros/go-teamcity-sdk/teamcity"
api "github.com/cvbarros/go-teamcity/teamcity"
"github.com/hashicorp/terraform/helper/hashcode"
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform/helper/validation"
Expand Down
2 changes: 1 addition & 1 deletion teamcity/resource_build_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"testing"

api "github.com/cvbarros/go-teamcity-sdk/teamcity"
api "github.com/cvbarros/go-teamcity/teamcity"
"github.com/hashicorp/terraform/helper/resource"
"github.com/hashicorp/terraform/terraform"
)
Expand Down
2 changes: 1 addition & 1 deletion teamcity/resource_build_trigger_build_finish.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"log"

api "github.com/cvbarros/go-teamcity-sdk/teamcity"
api "github.com/cvbarros/go-teamcity/teamcity"
"github.com/hashicorp/terraform/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion teamcity/resource_build_trigger_build_finish_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package teamcity_test
import (
"testing"

api "github.com/cvbarros/go-teamcity-sdk/teamcity"
api "github.com/cvbarros/go-teamcity/teamcity"
"github.com/hashicorp/terraform/helper/resource"
)

Expand Down
2 changes: 1 addition & 1 deletion teamcity/resource_build_trigger_schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package teamcity
import (
"fmt"

api "github.com/cvbarros/go-teamcity-sdk/teamcity"
api "github.com/cvbarros/go-teamcity/teamcity"
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform/helper/validation"
)
Expand Down
2 changes: 1 addition & 1 deletion teamcity/resource_build_trigger_schedule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package teamcity_test
import (
"testing"

api "github.com/cvbarros/go-teamcity-sdk/teamcity"
api "github.com/cvbarros/go-teamcity/teamcity"
"github.com/hashicorp/terraform/helper/resource"
)

Expand Down
2 changes: 1 addition & 1 deletion teamcity/resource_build_trigger_vcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package teamcity
import (
"fmt"

api "github.com/cvbarros/go-teamcity-sdk/teamcity"
api "github.com/cvbarros/go-teamcity/teamcity"
"github.com/hashicorp/terraform/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion teamcity/resource_build_trigger_vcs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"testing"

api "github.com/cvbarros/go-teamcity-sdk/teamcity"
api "github.com/cvbarros/go-teamcity/teamcity"
"github.com/hashicorp/terraform/helper/resource"
"github.com/hashicorp/terraform/terraform"
)
Expand Down
2 changes: 1 addition & 1 deletion teamcity/resource_feature_commit_status_publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"strings"

api "github.com/cvbarros/go-teamcity-sdk/teamcity"
api "github.com/cvbarros/go-teamcity/teamcity"
"github.com/hashicorp/terraform/helper/hashcode"
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform/helper/validation"
Expand Down
2 changes: 1 addition & 1 deletion teamcity/resource_feature_commit_status_publisher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"testing"

api "github.com/cvbarros/go-teamcity-sdk/teamcity"
api "github.com/cvbarros/go-teamcity/teamcity"
"github.com/hashicorp/terraform/helper/resource"
"github.com/hashicorp/terraform/terraform"
)
Expand Down
2 changes: 1 addition & 1 deletion teamcity/resource_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package teamcity
import (
"log"

api "github.com/cvbarros/go-teamcity-sdk/teamcity"
api "github.com/cvbarros/go-teamcity/teamcity"
"github.com/hashicorp/terraform/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion teamcity/resource_project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"testing"

api "github.com/cvbarros/go-teamcity-sdk/teamcity"
api "github.com/cvbarros/go-teamcity/teamcity"
"github.com/hashicorp/terraform/helper/resource"
"github.com/hashicorp/terraform/terraform"
)
Expand Down
2 changes: 1 addition & 1 deletion teamcity/resource_snapshot_dependency.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package teamcity
import (
"fmt"

api "github.com/cvbarros/go-teamcity-sdk/teamcity"
api "github.com/cvbarros/go-teamcity/teamcity"
"github.com/hashicorp/terraform/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion teamcity/resource_snapshot_dependency_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"testing"

api "github.com/cvbarros/go-teamcity-sdk/teamcity"
api "github.com/cvbarros/go-teamcity/teamcity"
"github.com/hashicorp/terraform/helper/resource"
"github.com/hashicorp/terraform/terraform"
)
Expand Down
2 changes: 1 addition & 1 deletion teamcity/resource_vcs_root_git.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log"
"strings"

api "github.com/cvbarros/go-teamcity-sdk/teamcity"
api "github.com/cvbarros/go-teamcity/teamcity"
"github.com/hashicorp/terraform/helper/hashcode"
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform/helper/validation"
Expand Down
6 changes: 3 additions & 3 deletions teamcity/resource_vcs_root_git_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"testing"

api "github.com/cvbarros/go-teamcity-sdk/teamcity"
api "github.com/cvbarros/go-teamcity/teamcity"
"github.com/hashicorp/terraform/helper/resource"
"github.com/hashicorp/terraform/terraform"
)
Expand Down Expand Up @@ -70,7 +70,7 @@ func TestAccVcsRootGit_UpdateBasic(t *testing.T) {
Check: resource.ComposeTestCheckFunc(
testAccCheckVcsRootGitExists(resName, &vcs),
resource.TestCheckResourceAttr(resName, "name", "application_updated"),
resource.TestCheckResourceAttr(resName, "fetch_url", "https://github.com/cvbarros/go-teamcity-sdk"),
resource.TestCheckResourceAttr(resName, "fetch_url", "https://github.com/cvbarros/go-teamcity"),
resource.TestCheckResourceAttr(resName, "default_branch", "refs/head/develop"),
resource.TestCheckResourceAttr(resName, "branches.#", "1"),
resource.TestCheckResourceAttr(resName, "branches.0", "+:refs/heads/master"),
Expand Down Expand Up @@ -296,7 +296,7 @@ resource "teamcity_project" "vcs_root_project_new" {
resource "teamcity_vcs_root_git" "git_test" {
name = "application_updated"
project_id = "${teamcity_project.vcs_root_project_new.id}"
fetch_url = "https://github.com/cvbarros/go-teamcity-sdk"
fetch_url = "https://github.com/cvbarros/go-teamcity"
default_branch = "refs/head/develop"
branches = [
"+:refs/heads/master",
Expand Down
2 changes: 1 addition & 1 deletion website/r/agent_requirement.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ The following arguments are supported:

* `build_config_id`: (Required) ID of the build configuration which this requirement will be configured.

* `condition`: (Required) A string operator to match the `name` variable to the `value` which will satistfy the requirement. Possible [values are documented](https://godoc.org/github.com/cvbarros/go-teamcity-sdk/pkg/teamcity#pkg-variables) in the TeamCity API.
* `condition`: (Required) A string operator to match the `name` variable to the `value` which will satistfy the requirement. Possible [values are documented](https://godoc.org/github.com/cvbarros/go-teamcity/pkg/teamcity#pkg-variables) in the TeamCity API.

* `value`: (Required) Right-side operand of the condition to be checked against the parameter.

Expand Down
2 changes: 1 addition & 1 deletion website/r/build_trigger_build_finish.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ resource "teamcity_vcs_root_git" "vcs" {
name = "Application"
project_id = "${teamcity_project.project.id}"
url = "https://github.com/cvbarros/go-teamcity-sdk"
url = "https://github.com/cvbarros/go-teamcity"
branch = "refs/head/master"
}
Expand Down
2 changes: 1 addition & 1 deletion website/r/build_trigger_schedule.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ resource "teamcity_vcs_root_git" "project_vcs" {
name = "Application"
project_id = "${teamcity_project.project.id}"
url = "https://github.com/cvbarros/go-teamcity-sdk"
url = "https://github.com/cvbarros/go-teamcity"
branch = "refs/head/master"
}
Expand Down
2 changes: 1 addition & 1 deletion website/r/build_trigger_vcs.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ resource "teamcity_vcs_root_git" "vcs" {
name = "Application"
project_id = "${teamcity_project.project.id}"
url = "https://github.com/cvbarros/go-teamcity-sdk"
url = "https://github.com/cvbarros/go-teamcity"
branch = "refs/head/master"
}
Expand Down

0 comments on commit 2e6b0ad

Please sign in to comment.