Skip to content

Commit 53e1850

Browse files
authored
Extract Sentry API client (#13)
* Add provider test * Move source files from "main" package to "sentry" package * Handle empty error message detail on certain endpoints * Sentry team resource test * Sentry project resource test * Install circle.yml * CircleCI 2 * Update vendor * Project key tests * WIP conversion to new client library * Convert client calls * Update dependencies * Update dependencies * Sentry organization logs * Sentry team logs * Use Go 1.9 in CircleCI * Upgrade dependencies
1 parent d8a3452 commit 53e1850

File tree

7,315 files changed

+2956443
-508
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

7,315 files changed

+2956443
-508
lines changed

Diff for: .circleci/config.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/golang:1.9
6+
7+
working_directory: /go/src/github.com/jianyuan/terraform-provider-sentry
8+
9+
environment:
10+
TEST_RESULTS: /tmp/test-results
11+
12+
steps:
13+
- checkout
14+
- run: mkdir -p $TEST_RESULTS
15+
16+
- run: go get -u github.com/jstemmer/go-junit-report
17+
18+
- run:
19+
name: Run unit tests
20+
command: |
21+
trap "go-junit-report <${TEST_RESULTS}/go-test.out > ${TEST_RESULTS}/go-test-report.xml" EXIT
22+
make test | tee ${TEST_RESULTS}/go-test.out
23+
24+
- store_artifacts:
25+
path: /tmp/test-results
26+
destination: raw-test-output
27+
28+
- store_test_results:
29+
path: /tmp/test-results

Diff for: Gopkg.lock

+266
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: Gopkg.toml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
# Gopkg.toml example
3+
#
4+
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
5+
# for detailed Gopkg.toml documentation.
6+
#
7+
# required = ["github.com/user/thing/cmd/thing"]
8+
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
9+
#
10+
# [[constraint]]
11+
# name = "github.com/user/project"
12+
# version = "1.0.0"
13+
#
14+
# [[constraint]]
15+
# name = "github.com/user/project2"
16+
# branch = "dev"
17+
# source = "github.com/myfork/project2"
18+
#
19+
# [[override]]
20+
# name = "github.com/x/y"
21+
# version = "2.4.0"
22+
23+
24+
[[constraint]]
25+
name = "github.com/dghubble/sling"
26+
version = "1.1.0"
27+
28+
[[constraint]]
29+
name = "github.com/hashicorp/terraform"
30+
version = "0.10.7"

Diff for: Makefile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
GOFILES = $(shell find . -name '*.go' -not -path './vendor/*')
2+
GOPACKAGES = $(shell go list ./... | grep -v /vendor/)
3+
4+
.PHONE: all
5+
all: test
6+
7+
.PHONY: test
8+
test: test-all
9+
10+
.PHONY: test-all
11+
test-all:
12+
@TF_ACC=1 go test -v -race $(GOPACKAGES)

0 commit comments

Comments
 (0)