Skip to content

Commit

Permalink
Merge pull request eksctl-io#151 from mesosphere/e2e
Browse files Browse the repository at this point in the history
Add first few e2e test cases
  • Loading branch information
k8s-ci-robot authored Dec 22, 2018
2 parents 6292d0e + 0c34e16 commit e014aa9
Show file tree
Hide file tree
Showing 3,630 changed files with 836,405 additions and 1,851 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ go_import_path: github.com/kubernetes-sigs/aws-ebs-csi-driver

env:
global:
- GO111MODULE=on
- GO111MODULE=off

go:
- "1.10.x"
- "1.11.2"
- "1.11.4"

before_install:
- go get github.com/mattn/goveralls
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.11.2-stretch as builder
FROM golang:1.11.4-stretch as builder
WORKDIR /go/src/github.com/kubernetes-sigs/aws-ebs-csi-driver
ADD . .
RUN make
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ test-integration:
go test -c ./tests/integration/... -o bin/integration.test && \
sudo -E bin/integration.test -ginkgo.v

.PHONY: test-e2e
test-e2e:
./hack/run-e2e-test

.PHONY: image-release
image-release:
docker build -t $(IMAGE):$(VERSION) .
Expand Down
4 changes: 2 additions & 2 deletions THIRD-PARTY
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
** github.com/aws/aws-sdk-go/; version v1.15.27 -- https://github.com/aws/aws-sdk-go/
** github.com/container-storage-interface/spec; version v0.3.0 -- https://github.com/container-storage-interface/spec/
** github.com/go-ini/ini; version v1.38.2 -- https://github.com/go-ini/ini
** github.com/golang/glog; version 1.0 -- https://github.com/golang/glog/
** github.com/kubernetes/klog; version v0.1.0 -- https://github.com/kubernetes/klog
** github.com/golang/mock; version v1.1.1 -- https://github.com/golang/mock
** github.com/kubernetes-csi/csi-test; version v0.3.0-2 -- https://github.com/kubernetes-csi/csi-test
** github.com/spf13/afero; version v1.1.2 -- https://github.com/spf13/afero
Expand Down Expand Up @@ -206,7 +206,7 @@ NOTICE:
Copyright {yyyy} {name of copyright owner}
* For github.com/go-ini/ini see also this required NOTICE:
Copyright 2014 Unknwon
* For github.com/golang/glog see also this required NOTICE:
* For github.com/kubernetes/klog see also this required NOTICE:
Copyright 2013 Google Inc. All Rights Reserved.
* For github.com/golang/mock see also this required NOTICE:
Copyright 2010 Google Inc.
Expand Down
8 changes: 4 additions & 4 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"fmt"
"os"

"github.com/golang/glog"
"github.com/kubernetes-sigs/aws-ebs-csi-driver/pkg/driver"
"k8s.io/klog"
)

func main() {
Expand All @@ -35,17 +35,17 @@ func main() {
if *version {
info, err := driver.GetVersionJSON()
if err != nil {
glog.Fatalln(err)
klog.Fatalln(err)
}
fmt.Println(info)
os.Exit(0)
}

drv, err := driver.NewDriver(*endpoint)
if err != nil {
glog.Fatalln(err)
klog.Fatalln(err)
}
if err := drv.Run(); err != nil {
glog.Fatalln(err)
klog.Fatalln(err)
}
}
17 changes: 11 additions & 6 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,22 +104,22 @@ kubectl apply -f deploy/kubernetes/v1.12/sample_app
Please go through [CSI Spec](https://github.com/container-storage-interface/spec/blob/master/spec.md) and [General CSI driver development guideline](https://kubernetes-csi.github.io/docs/Development.html) to get some basic understanding of CSI driver before you start.

### Requirements
* Golang 1.11.2+
* [Ginkgo](https://github.com/onsi/ginkgo) for integration and end-to-end testing
* Golang 1.11.4+
* [Ginkgo](https://github.com/onsi/ginkgo) in your PATH for end-to-end testing
* Docker 17.05+ for releasing

### Testing

In order to make sure that the driver complies with the CSI specification, run the command:
To execute all unit tests, run:

```
make test-sanity
make test
```

To execute all unit tests, run:
In order to make sure that the driver complies with the CSI specification, run:

```
make test
make test-sanity
```

To execute integration tests, run:
Expand All @@ -128,6 +128,11 @@ To execute integration tests, run:
make test-integration
```

To execute e2e tests, run:
```
make test-e2e
```

**Note**: EC2 instance is required to run integration test, since it is exercising the actual flow of creating EBS volume, attaching it and read/write on the disk.

### Build and Publish Container Image
Expand Down
97 changes: 84 additions & 13 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,27 +1,98 @@
module github.com/kubernetes-sigs/aws-ebs-csi-driver

require (
bitbucket.org/ww/goautoneg v0.0.0-20120707110453-75cd24fc2f2c // indirect
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 // indirect
github.com/BurntSushi/toml v0.3.1 // indirect
github.com/NYTimes/gziphandler v1.0.1 // indirect
github.com/aws/aws-sdk-go v1.16.3
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973 // indirect
github.com/boltdb/bolt v1.3.1 // indirect
github.com/container-storage-interface/spec v1.0.0
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
github.com/coreos/bbolt v1.3.0 // indirect
github.com/coreos/etcd v3.3.10+incompatible // indirect
github.com/coreos/go-semver v0.2.0 // indirect
github.com/coreos/go-systemd v0.0.0-20181031085051-9002847aa142 // indirect
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f // indirect
github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect
github.com/docker/distribution v2.7.0+incompatible // indirect
github.com/docker/docker v0.0.0-20180422163414-57142e89befe // indirect
github.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c // indirect
github.com/elazarl/go-bindata-assetfs v1.0.0 // indirect
github.com/elazarl/goproxy v0.0.0-20181111060418-2ce16c963a8a // indirect
github.com/emicklei/go-restful v2.8.0+incompatible // indirect
github.com/emicklei/go-restful-swagger12 v0.0.0-20170926063155-7524189396c6 // indirect
github.com/evanphx/json-patch v4.1.0+incompatible // indirect
github.com/fatih/camelcase v1.0.0 // indirect
github.com/ghodss/yaml v1.0.0 // indirect
github.com/go-openapi/spec v0.17.2 // indirect
github.com/go-openapi/strfmt v0.17.2 // indirect
github.com/go-openapi/validate v0.17.2 // indirect
github.com/gogo/protobuf v1.1.1 // indirect
github.com/golang/groupcache v0.0.0-20181024230925-c65c006176ff // indirect
github.com/golang/mock v1.2.0
github.com/kr/pretty v0.1.0 // indirect
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c // indirect
github.com/google/go-cmp v0.2.0 // indirect
github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf // indirect
github.com/googleapis/gnostic v0.2.0 // indirect
github.com/gorilla/websocket v1.4.0 // indirect
github.com/gotestyourself/gotestyourself v2.2.0+incompatible // indirect
github.com/gregjones/httpcache v0.0.0-20181110185634-c63ab54fda8f // indirect
github.com/grpc-ecosystem/go-grpc-middleware v1.0.0 // indirect
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
github.com/grpc-ecosystem/grpc-gateway v1.5.1 // indirect
github.com/hashicorp/golang-lru v0.5.0 // indirect
github.com/imdario/mergo v0.3.6 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/jonboulle/clockwork v0.1.0 // indirect
github.com/json-iterator/go v1.1.5 // indirect
github.com/kubernetes-csi/csi-test v1.1.0
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.1 // indirect
github.com/onsi/ginkgo v1.7.0
github.com/onsi/gomega v1.4.3
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/opencontainers/go-digest v1.0.0-rc1 // indirect
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
github.com/pkg/errors v0.8.0 // indirect
github.com/prometheus/client_golang v0.9.1 // indirect
github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910 // indirect
github.com/prometheus/common v0.0.0-20181126121408-4724e9255275 // indirect
github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a // indirect
github.com/sirupsen/logrus v1.2.0 // indirect
github.com/soheilhy/cmux v0.1.4 // indirect
github.com/spf13/afero v1.1.2 // indirect
github.com/stretchr/testify v1.2.2 // indirect
golang.org/x/net v0.0.0-20181207154023-610586996380 // indirect
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f // indirect
golang.org/x/sys v0.0.0-20181212120007-b05ddf57801d // indirect
google.golang.org/genproto v0.0.0-20181202183823-bd91e49a0898 // indirect
github.com/spf13/cobra v0.0.3 // indirect
github.com/spf13/pflag v1.0.3 // indirect
github.com/tmc/grpc-websocket-proxy v0.0.0-20171017195756-830351dc03c6 // indirect
github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8 // indirect
github.com/xiang90/probing v0.0.0-20160813154853-07dd2e8dfe18 // indirect
go.uber.org/atomic v1.3.2 // indirect
go.uber.org/multierr v1.1.0 // indirect
go.uber.org/zap v1.9.1 // indirect
golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9 // indirect
golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a // indirect
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c // indirect
google.golang.org/genproto v0.0.0-20180831171423-11092d34479b // indirect
google.golang.org/grpc v1.17.0
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
gopkg.in/square/go-jose.v2 v2.2.1 // indirect
gopkg.in/yaml.v2 v2.2.2 // indirect
k8s.io/apimachinery v0.0.0-20181211025822-57dc7e687b54
k8s.io/klog v0.1.0 // indirect
k8s.io/kubernetes v1.13.0
gotest.tools v2.2.0+incompatible // indirect
k8s.io/api v0.0.0-20181204000039-89a74a8d264d
k8s.io/apiextensions-apiserver v0.0.0-20181204003920-20c909e7c8c3 // indirect
k8s.io/apimachinery v0.0.0-20181127025237-2b1284ed4c93
k8s.io/apiserver v0.0.0-20181204001702-9caa0299108f // indirect
k8s.io/cli-runtime v0.0.0-20181121073402-2f0d1d0a58f2 // indirect
k8s.io/client-go v2.0.0-alpha.0.0.20181213151034-8d9ed539ba31+incompatible
k8s.io/cloud-provider v0.0.0-20181121074215-9b77dc1c3846 // indirect
k8s.io/cluster-bootstrap v0.0.0-20181110194056-c71be3de9a2f // indirect
k8s.io/csi-api v0.0.0-20181130072956-61a1735c3f50 // indirect
k8s.io/klog v0.1.0
k8s.io/kube-aggregator v0.0.0-20181206110645-d02c483df5c3 // indirect
k8s.io/kube-openapi v0.0.0-20181114233023-0317810137be // indirect
k8s.io/kubernetes v1.13.1
k8s.io/utils v0.0.0-20181115163542-0d26856f57b3 // indirect
sigs.k8s.io/yaml v1.1.0 // indirect
)
Loading

0 comments on commit e014aa9

Please sign in to comment.