Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
a59724b
chore(deps): update module github.com/onsi/gomega to v1.22.1
renovate[bot] Oct 11, 2022
c9ff25b
chore(deps): update cimg/go docker tag to v1.19.2
renovate[bot] Oct 10, 2022
79757d0
fix: add base href for k3d uri
a-cordier Oct 13, 2022
59b42b5
chore(release): 0.1.0-alpha.6 [skip ci]
graviteeio Oct 14, 2022
f2b16f0
chore(deps): update gravitee orb to v2.1.16
renovate[bot] Oct 17, 2022
8a20fcf
chore(deps): update kubernetes packages to v0.25.3
renovate[bot] Oct 17, 2022
2278a16
fix: rename cors fields to match v3 definition
a-cordier Oct 14, 2022
8be05d8
chore(release): 0.1.0-alpha.7 [skip ci]
graviteeio Oct 17, 2022
19e9dd3
fix: merge create and update of api definition
a-cordier Oct 18, 2022
83bb2c5
refactor: rename status generation
a-cordier Oct 20, 2022
b309629
refactor: rename add finalizer method
a-cordier Oct 20, 2022
78ed8e2
refactor: rename has finalizer method
a-cordier Oct 20, 2022
7f68a69
chore(release): 0.1.0-alpha.8 [skip ci]
graviteeio Oct 20, 2022
400c160
refactor: rename has management context method
a-cordier Oct 21, 2022
9c69558
chore(deps): update mcr.microsoft.com/azure-cli docker tag to v2.41.0
renovate[bot] Oct 24, 2022
97901ed
chore(deps): update module github.com/onsi/ginkgo/v2 to v2.4.0
renovate[bot] Oct 24, 2022
7427457
fix: import api with life cycle state
Okhelifi Oct 25, 2022
3b98614
test: add context ref on update
a-cordier Oct 21, 2022
b75aec8
chore(release): 0.1.0-alpha.9 [skip ci]
graviteeio Oct 25, 2022
933af8d
ci: remove wait step from test job
a-cordier Oct 21, 2022
c73cc63
refactor: error handling
a-cordier Oct 21, 2022
dd74bba
refactor: move integration tests to their own package
a-cordier Oct 27, 2022
43276ce
fix: reconcile api resources on context updates
a-cordier Oct 27, 2022
8f4e099
chore(release): 0.1.0-alpha.10 [skip ci]
graviteeio Oct 27, 2022
bbe475a
fix: add enabled in health check model
Okhelifi Oct 27, 2022
71346fa
fix: change fail over data type
Okhelifi Oct 27, 2022
565d745
fix: align endpoint mapping with apim
Okhelifi Oct 27, 2022
62323fb
docs: update reference
Okhelifi Oct 28, 2022
e7f1083
chore(release): 0.1.0-alpha.11 [skip ci]
graviteeio Oct 28, 2022
b54d9a7
fix: reference secret in context
a-cordier Oct 27, 2022
39c682f
refactor: move test fixtures and const to internal
a-cordier Oct 28, 2022
8a94424
refactor: define fixture paths as constants
a-cordier Oct 28, 2022
3907f83
refactor: default secret namespace to context one
a-cordier Oct 28, 2022
0ac9d4b
chore(release): 0.1.0-alpha.12 [skip ci]
graviteeio Oct 28, 2022
3aebf3e
chore(deps): update module github.com/onsi/gomega to v1.23.0
renovate[bot] Oct 31, 2022
814794e
ci: update go version for machine executor to 1.19.2
a-cordier Oct 31, 2022
4bd7456
fix: add rbac marker for secret lists
a-cordier Nov 2, 2022
b3c431b
chore(release): 0.1.0-alpha.13 [skip ci]
graviteeio Nov 2, 2022
34a7b91
refactor(tests): make context names random
a-cordier Oct 28, 2022
81933cb
test: delete all resources at once after suite
a-cordier Oct 29, 2022
1b29bd3
refactor(test): move unit tests to ginkgo
a-cordier Nov 1, 2022
111cc3e
ci: run tests with ginkgo cli
a-cordier Nov 1, 2022
784abbe
refactor: log bad request error messages
a-cordier Oct 31, 2022
c4032eb
fix: import api with several endpoint groups
a-cordier Oct 31, 2022
a874ac6
fix: import api with disabled health check
a-cordier Nov 2, 2022
7179561
fix: import API with logging
a-cordier Nov 2, 2022
28c7acc
test: add table test with featured api definitions
a-cordier Nov 2, 2022
6e81619
chore: clean up config sample files
a-cordier Nov 2, 2022
0afeb80
chore(release): 0.1.0-alpha.14 [skip ci]
graviteeio Nov 3, 2022
4e45fbc
ci: fix ginkgo flags
a-cordier Nov 4, 2022
9f12dff
test: add create test for api with metadata
a-cordier Nov 4, 2022
9867084
test: add opt in option to run the operator locally
a-cordier Nov 3, 2022
ddc6af5
test: update management context when running in cluster
a-cordier Nov 3, 2022
1392143
chore: generate management context webhook
a-cordier Nov 4, 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
Prev Previous commit
Next Next commit
ci: run tests with ginkgo cli
  • Loading branch information
a-cordier committed Nov 2, 2022
commit 111cc3e5af9e94e9813f6825b831c84b345f6cd6
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ jobs:
name: Docker login
command: echo $AZURE_DOCKER_REGISTRY_PASSWORD | docker login --username $AZURE_DOCKER_REGISTRY_USERNAME --password-stdin graviteeio.azurecr.io
- run:
name: Install gotestsum
command: make gotestsum
name: Install ginkgo
command: make ginkgo
- run:
name: Start APIM using k3d
command: |
Expand All @@ -93,9 +93,9 @@ jobs:
make k3d-apim-init
- run:
name: Run tests
command: GOTESTARGS="--junitfile=/tmp/junit/reports/junit.xml" make test
command: GOTESTARGS="--output-dir=/tmp/junit/reports --junit-report=junit.xml" make test
- store_test_results:
path: /tmp/junit
path: /tmp/junit/reports

login-to-azure:
executor:
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ testbin/*

# Output of the go coverage tool, specifically when used with LiteIDE
*.out
*.out.*
junit.xml

# Kubernetes Generated files - skip generated files, except for vendored files

Expand All @@ -32,4 +34,4 @@ gko-config-default.yml

# K8S OLM
cache/
bundle/
bundle/
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ lint-license: addlicense ## Run addlicense lint and fail on error

GOTESTARGS ?= ""
.PHONY: test
test: manifests generate install## Run tests.
test: manifests generate install ## Run tests.
kubectl config use-context k3d-graviteeio
KUBEBUILDER_ASSETS=USE_EXISTING_CLUSTER=true $(GOTESTSUM) $(GOTESTARGS) ./... -timeout 380s -coverprofile cover.out
KUBEBUILDER_ASSETS=USE_EXISTING_CLUSTER=true $(GINKGO) $(GOTESTARGS) -timeout 380s --cover --coverprofile=cover.out ./...

.PHONY: k3d-apim-init
k3d-apim-init: ## Init APIM locally using k3d
Expand Down Expand Up @@ -209,7 +209,7 @@ $(LOCALBIN):
KUSTOMIZE ?= $(LOCALBIN)/kustomize
CONTROLLER_GEN ?= $(LOCALBIN)/controller-gen
ENVTEST ?= $(LOCALBIN)/setup-envtest
GOTESTSUM ?= $(LOCALBIN)/gotestsum
GINKGO ?= $(LOCALBIN)/ginkgo
CRDOC ?= $(LOCALBIN)/crdoc
GOLANGCILINT ?= $(LOCALBIN)/golangci-lint
ADDLICENSE ?= $(LOCALBIN)/addlicense
Expand All @@ -235,10 +235,10 @@ envtest: $(ENVTEST) ## Download envtest-setup locally if necessary.
$(ENVTEST): $(LOCALBIN)
GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest

.PHONY: gotestsum
gotestsum: $(GOTESTSUM) ## Download gotestsum locally if necessary.
$(GOTESTSUM): $(LOCALBIN)
GOBIN=$(LOCALBIN) go install gotest.tools/gotestsum@latest
.PHONY: ginkgo
ginkgo: $(GINKGO) ## Download ginkgo cli locally if necessary.
$(GINKGO): $(LOCALBIN)
GOBIN=$(LOCALBIN) go install github.com/onsi/ginkgo/v2/ginkgo@latest

.PHONY: crdoc
crdoc: $(CRDOC)
Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module github.com/gravitee-io/gravitee-kubernetes-operator
go 1.19

require (
github.com/onsi/ginkgo v1.16.5
github.com/onsi/ginkgo/v2 v2.4.0
github.com/onsi/gomega v1.23.0
k8s.io/apimachinery v0.25.3
Expand All @@ -13,7 +14,6 @@ require (
require (
github.com/PuerkitoBio/purell v1.1.1 // indirect
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
github.com/emicklei/go-restful v2.9.5+incompatible // indirect
github.com/emicklei/go-restful/v3 v3.8.0 // indirect
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect
Expand All @@ -37,8 +37,6 @@ require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
github.com/form3tech-oss/jwt-go v3.2.3+incompatible // indirect
github.com/fsnotify/fsnotify v1.5.4 // indirect
github.com/go-logr/logr v1.2.3
github.com/go-logr/zapr v1.2.3 // indirect
Expand Down
Loading