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

[ODC-441] Foadnh submodule go client #22

Merged
merged 40 commits into from
May 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
0454f44
[ODC-441] Add go client as a submodule
foadnh Apr 11, 2022
15310a8
[ODC-441] Add go client as a submodule
foadnh Apr 11, 2022
317ce97
[ODC-441] Remove default key and rule
foadnh Apr 11, 2022
432bade
[ODC-441] Add allowed domains
foadnh Apr 12, 2022
6b7b466
[ODC-441] Extra API fields
foadnh Apr 12, 2022
f2bd0e3
[ODC-441] Implement Sentry Filter
foadnh Apr 12, 2022
522af83
Improve tests to match our needs
foadnh Apr 13, 2022
b166aea
Fix go-client path
foadnh Apr 13, 2022
8f8e309
Merge branch 'foadnh-fresh-add-ci' into foadnh-submodule-go-client
foadnh Apr 13, 2022
c599f84
Merge branch 'foadnh-submodule-go-client' into foadnh-fresh-remove-de…
foadnh Apr 13, 2022
7338b6b
Merge branch 'foadnh-fresh-remove-default-key-rule' into foadnh-fresh…
foadnh Apr 13, 2022
0bfda00
Merge branch 'foadnh-fresh-allowed-domains' into foadnh-fresh-extra-a…
foadnh Apr 13, 2022
460f7c4
Merge branch 'foadnh-fresh-extra-api-fields' into foadnh-fresh-sentry…
foadnh Apr 13, 2022
0cab33e
Fix go.mod import version of go-sentry
foadnh Apr 13, 2022
c29f04b
Fix go.mod import version of go-sentry
foadnh Apr 13, 2022
ca0e636
Merge branch 'foadnh-fresh-extra-api-fields' into foadnh-fresh-sentry…
foadnh Apr 13, 2022
7e45d07
getRemove extra comments
foadnh Apr 13, 2022
28f8fa5
Merge branch 'foadnh-fresh-remove-default-key-rule' into foadnh-fresh…
foadnh Apr 13, 2022
0e84f49
Remove extra comments
foadnh Apr 13, 2022
9b8da0a
Merge branch 'foadnh-fresh-allowed-domains' into foadnh-fresh-extra-a…
foadnh Apr 13, 2022
01b462f
Merge branch 'foadnh-fresh-extra-api-fields' into foadnh-fresh-sentry…
foadnh Apr 13, 2022
8d3a1c7
Remove extra comments
foadnh Apr 13, 2022
9157c0c
Remove extra comments
foadnh Apr 13, 2022
a829f8f
[ODC-589] Update terraform-plugin-log@v0.3.0
foadnh Apr 13, 2022
33c72d4
Fix import issue
foadnh Apr 13, 2022
9e052f2
Use existing tags
foadnh Apr 13, 2022
b852f55
Change replace to direct path
foadnh Apr 13, 2022
2c25aa5
Merge branch 'foadnh-submodule-go-client' into foadnh-fresh-remove-de…
foadnh Apr 13, 2022
9c52362
Merge branch 'foadnh-fresh-remove-default-key-rule' into foadnh-fresh…
foadnh Apr 13, 2022
bb31113
Merge branch 'foadnh-fresh-allowed-domains' into foadnh-fresh-extra-a…
foadnh Apr 13, 2022
ac75922
Fix go-sentry version
foadnh Apr 13, 2022
148d518
Merge branch 'foadnh-fresh-extra-api-fields' into foadnh-fresh-sentry…
foadnh Apr 13, 2022
337c950
Merge branch 'foadnh-fresh-sentry-filter' into foadnh-fresh-update-te…
foadnh Apr 13, 2022
487b1fd
Use fixed go-sentry version
foadnh Apr 13, 2022
10a419f
Remove unused structs
foadnh Apr 14, 2022
d567bd1
Merge pull request #27 from Canva/foadnh-fresh-update-terraform-plugi…
foadnh May 5, 2022
ef98f75
Merge pull request #26 from Canva/foadnh-fresh-sentry-filter
foadnh May 5, 2022
1ccf855
Merge pull request #25 from Canva/foadnh-fresh-extra-api-fields
foadnh May 5, 2022
7cff982
Merge pull request #24 from Canva/foadnh-fresh-allowed-domains
foadnh May 5, 2022
4633069
Merge pull request #23 from Canva/foadnh-fresh-remove-default-key-rule
foadnh May 5, 2022
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
2 changes: 0 additions & 2 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ env:
steps:
- label: ":golang: ci"
command:
- git submodule init
- git submodule update
- "go get -v -t -d ./..."
- "go build"
- "go test ./..."
Expand Down
68 changes: 68 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# This GitHub action runs your tests for each commit push and/or PR. Optionally
# you can turn it on using a cron schedule for regular testing.
#
name: Tests
on:
pull_request:
paths-ignore:
- "README.md"
push:
paths-ignore:
- "README.md"
jobs:
# ensure the code builds...
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/setup-go@v2
with:
go-version: "1.17"

- uses: actions/checkout@v2

- name: Get dependencies
run: |
go mod download

- name: Build
run: |
go build -v .

# run acceptance tests in a matrix with Terraform core versions
test:
name: Matrix Test
needs: build
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
# list whatever Terraform versions here you would like to support
terraform:
- "0.12.*"
- "0.13.*"
- "0.14.*"
- "0.15.*"
- "1.0.*"
- "1.1.*"
steps:
- uses: actions/setup-go@v2
with:
go-version: "1.17"

- uses: hashicorp/setup-terraform@v1
with:
terraform_version: ${{ matrix.terraform }}
terraform_wrapper: false

- uses: actions/checkout@v2

- name: Get dependencies
run: |
go mod download

- name: Run Go tests
run: |
go test -race ./...
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "sentryclient"]
path = sentryclient
url = org-2562356@github.com:Canva/go-sentry.git
26 changes: 12 additions & 14 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,34 +1,32 @@
module github.com/jianyuan/terraform-provider-sentry
module github.com/canva/terraform-provider-sentry

replace git.apache.org/thrift.git => github.com/apache/thrift v0.0.0-20180902110319-2566ecd5d999 // indirect

go 1.17
go 1.18

require (
github.com/hashicorp/terraform-plugin-log v0.2.1
github.com/canva/go-sentry v1.3.0
github.com/google/go-cmp v0.5.7
github.com/hashicorp/terraform-plugin-log v0.3.0
github.com/hashicorp/terraform-plugin-sdk/v2 v2.10.1
github.com/jianyuan/go-sentry v1.2.1-0.20210621222913-1234f239dab3
github.com/mitchellh/mapstructure v1.4.3
)

require (
cloud.google.com/go v0.70.0 // indirect
cloud.google.com/go/storage v1.12.0 // indirect
cloud.google.com/go v0.65.0 // indirect
github.com/agext/levenshtein v1.2.3 // indirect
github.com/apparentlymart/go-cidr v1.1.0 // indirect
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
github.com/aws/aws-sdk-go v1.35.13 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dghubble/sling v1.4.0 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/go-cmp v0.5.6 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect
github.com/hashicorp/go-hclog v1.0.0 // indirect
github.com/hashicorp/go-hclog v1.2.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-plugin v1.4.3 // indirect
github.com/hashicorp/go-uuid v1.0.2 // indirect
Expand All @@ -38,7 +36,7 @@ require (
github.com/hashicorp/logutils v1.0.0 // indirect
github.com/hashicorp/terraform-exec v0.15.0 // indirect
github.com/hashicorp/terraform-json v0.13.0 // indirect
github.com/hashicorp/terraform-plugin-go v0.5.0 // indirect
github.com/hashicorp/terraform-plugin-go v0.8.0 // indirect
github.com/hashicorp/terraform-registry-address v0.0.0-20210816115301-cb2034eba045 // indirect
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 // indirect
github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87 // indirect
Expand All @@ -51,16 +49,16 @@ require (
github.com/oklog/run v1.1.0 // indirect
github.com/tomnomnom/linkheader v0.0.0-20180905144013-02ca5825eb80 // indirect
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
github.com/vmihailenco/msgpack/v4 v4.3.12 // indirect
github.com/vmihailenco/tagparser v0.1.1 // indirect
github.com/zclconf/go-cty v1.10.0 // indirect
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e // indirect
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect
golang.org/x/net v0.0.0-20211216030914-fe4d6282115f // indirect
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/tools v0.1.5 // indirect
google.golang.org/api v0.33.0 // indirect
google.golang.org/api v0.30.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20211223182754-3ac035c7e7cb // indirect
google.golang.org/grpc v1.43.0 // indirect
google.golang.org/grpc v1.45.0 // indirect
google.golang.org/protobuf v1.27.1 // indirect
)
Loading