Skip to content
Open
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@

# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736
.glide/

# Go dependency mnagement
vendor
11 changes: 3 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,13 @@ before_install:
- go get github.com/AlekSi/gocov-xml

install:
- go get -u gopkg.in/h2non/gock.v1
- go get -u github.com/crewjam/saml
- go get -u github.com/goadesign/goa/...
- go get -u github.com/afex/hystrix-go/hystrix
- go get -u github.com/ory/ladon
- go get -u gopkg.in/mgo.v2
- go get -u github.com/JormungandrK/microservice-tools
- go get -u -v github.com/golang/dep/cmd/dep
- dep ensure -v

before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter

script:
- gocov test -short github.com/JormungandrK/microservice-security/... | gocov-xml > coverage.xml && ./cc-test-reporter format-coverage -t cobertura -o coverage.json coverage.xml
- gocov test $(go list ./... | grep -v vendor) | gocov-xml > coverage.xml && ./cc-test-reporter format-coverage -t cobertura -o coverage.json coverage.xml
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter upload-coverage -i coverage.json; fi
165 changes: 165 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

62 changes: 62 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@

# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"


[[constraint]]
branch = "master"
name = "github.com/JormungandrK/microservice-tools"

[[constraint]]
branch = "master"
name = "github.com/afex/hystrix-go"

[[constraint]]
name = "github.com/crewjam/saml"
version = "0.2.0"

[[constraint]]
name = "github.com/dgrijalva/jwt-go"
version = "3.1.0"

[[constraint]]
master = "branch"
name = "github.com/goadesign/goa"

[[constraint]]
name = "github.com/ory/ladon"
version = "0.8.3"

[[constraint]]
name = "github.com/satori/go.uuid"
version = "1.1.0"

[[constraint]]
branch = "master"
name = "golang.org/x/net"

[[constraint]]
name = "gopkg.in/h2non/gock.v1"
version = "1.0.6"

[[constraint]]
branch = "v2"
name = "gopkg.in/mgo.v2"
2 changes: 1 addition & 1 deletion saml/saml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ UzreO96WzlBBMtY=
}()

var rootURL, _ = url.Parse("http://localhost:8082")
var idpMetadataURL, _ = url.Parse("https://www.testshib.org/metadata/testshib-providers.xml")
var idpMetadataURL, _ = url.Parse("https://app.onelogin.com/saml/metadata/701453.xml")
var samlSP, _ = samlsp.New(samlsp.Options{
IDPMetadataURL: idpMetadataURL,
URL: *rootURL,
Expand Down