-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
1,843 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[flake8] | ||
format = pylint | ||
max-complexity = 10 | ||
max-line-length = 170 | ||
exclude = .git,__pycache__,data,.idea.pytest_cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# IntelliJ project files | ||
.idea | ||
out | ||
gen | ||
|
||
# Junit-style report for Jenkins integration | ||
results.xml | ||
|
||
# Python specific files | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
.pytest_cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CONTEXT = | ||
BUILD_IMAGE = nginx/nginx-ingress:edge | ||
PULL_POLICY = IfNotPresent | ||
IC_TYPE = nginx-ingress | ||
SERVICE = nodeport | ||
NODE_IP = | ||
TAG = latest | ||
PREFIX = test-runner | ||
KUBE_CONFIG_FOLDER = $${HOME}/.kube | ||
|
||
build: | ||
docker build -t $(PREFIX):$(TAG) -f docker/Dockerfile .. | ||
|
||
run-tests: | ||
docker run --rm -v $(KUBE_CONFIG_FOLDER):/root/.kube $(PREFIX):$(TAG) --context=$(CONTEXT) --image=$(BUILD_IMAGE) --image-pull-policy=$(PULL_POLICY) --ic-type=$(IC_TYPE) --service=$(SERVICE) --node-ip=$(NODE_IP) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
"""Describe overall framework configuration.""" | ||
|
||
import os | ||
import pytest | ||
|
||
from kubernetes.config.kube_config import KUBE_CONFIG_DEFAULT_LOCATION | ||
from settings import DEFAULT_IMAGE, DEFAULT_PULL_POLICY, DEFAULT_IC_TYPE, DEFAULT_SERVICE | ||
|
||
|
||
def pytest_addoption(parser) -> None: | ||
"""Get cli-arguments. | ||
:param parser: pytest parser | ||
:return: | ||
""" | ||
parser.addoption("--context", | ||
action="store", default="", help="context name as in the kubeconfig") | ||
parser.addoption("--image", | ||
action="store", default=DEFAULT_IMAGE, help="image with tag (image:tag)") | ||
parser.addoption("--image-pull-policy", | ||
action="store", default=DEFAULT_PULL_POLICY, help="image pull policy") | ||
parser.addoption("--ic-type", | ||
action="store", default=DEFAULT_IC_TYPE, help="provide ic type") | ||
parser.addoption("--service", | ||
action="store", | ||
default=DEFAULT_SERVICE, | ||
help="service type: nodeport or loadbalancer") | ||
parser.addoption("--node-ip", action="store", help="public IP of a cluster node") | ||
parser.addoption("--kubeconfig", | ||
action="store", | ||
default=os.path.expanduser(KUBE_CONFIG_DEFAULT_LOCATION), | ||
help="an absolute path to kubeconfig") | ||
|
||
|
||
# import fixtures into pytest global namespace | ||
pytest_plugins = [ | ||
"suite.fixtures" | ||
] | ||
|
||
|
||
def pytest_collection_modifyitems(config, items) -> None: | ||
""" | ||
Skip the tests marked with '@pytest.mark.skip_for_nginx_oss' for Nginx OSS runs. | ||
:param config: pytest config | ||
:param items: pytest collected test-items | ||
:return: | ||
""" | ||
if config.getoption("--ic-type") == "nginx-ingress": | ||
skip_for_nginx_oss = pytest.mark.skip(reason="Skip a test for Nginx OSS") | ||
for item in items: | ||
if "skip_for_nginx_oss" in item.keywords: | ||
item.add_marker(skip_for_nginx_oss) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: backend1-svc | ||
spec: | ||
ports: | ||
- port: 80 | ||
targetPort: 80 | ||
protocol: TCP | ||
name: http | ||
selector: | ||
app: backend1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: backend1 | ||
spec: | ||
replicas: 2 | ||
selector: | ||
matchLabels: | ||
app: backend1 | ||
template: | ||
metadata: | ||
labels: | ||
app: backend1 | ||
spec: | ||
containers: | ||
- name: backend1 | ||
image: nginxdemos/hello:plain-text | ||
ports: | ||
- containerPort: 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: backend2-svc | ||
labels: | ||
spec: | ||
ports: | ||
- port: 80 | ||
targetPort: 80 | ||
protocol: TCP | ||
name: http | ||
selector: | ||
app: backend2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: backend2 | ||
spec: | ||
replicas: 3 | ||
selector: | ||
matchLabels: | ||
app: backend2 | ||
template: | ||
metadata: | ||
labels: | ||
app: backend2 | ||
spec: | ||
containers: | ||
- name: backend2 | ||
image: nginxdemos/hello:plain-text | ||
ports: | ||
- containerPort: 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: new-name-here |
15 changes: 15 additions & 0 deletions
15
tests/data/externalname-services/externalname-ingress.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: example-ingress | ||
annotations: | ||
kubernetes.io/ingress.class: "nginx" | ||
spec: | ||
rules: | ||
- host: externalnginx.com | ||
http: | ||
paths: | ||
- path: / | ||
backend: | ||
serviceName: externalname-service | ||
servicePort: 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: externalname-service | ||
spec: | ||
type: ExternalName | ||
externalName: nginx.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: ConfigMap | ||
apiVersion: v1 | ||
metadata: | ||
name: nginx-config | ||
data: | ||
resolver-addresses: "8.8.8.8" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: smoke-ingress-master | ||
annotations: | ||
kubernetes.io/ingress.class: "nginx" | ||
nginx.org/mergeable-ingress-type: "master" | ||
spec: | ||
tls: | ||
- hosts: | ||
- smoke.example.com | ||
secretName: smoke-secret | ||
rules: | ||
- host: smoke.example.com | ||
--- | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: smoke-ingress-backend1-minion | ||
annotations: | ||
kubernetes.io/ingress.class: "nginx" | ||
nginx.org/mergeable-ingress-type: "minion" | ||
spec: | ||
rules: | ||
- host: smoke.example.com | ||
http: | ||
paths: | ||
- path: /backend1 | ||
backend: | ||
serviceName: backend1-svc | ||
servicePort: 80 | ||
--- | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: smoke-ingress-backend2-minion | ||
annotations: | ||
kubernetes.io/ingress.class: "nginx" | ||
nginx.org/mergeable-ingress-type: "minion" | ||
spec: | ||
rules: | ||
- host: smoke.example.com | ||
http: | ||
paths: | ||
- path: /backend2 | ||
backend: | ||
serviceName: backend2-svc | ||
servicePort: 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: smoke-secret | ||
type: Opaque | ||
data: | ||
tls.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURMakNDQWhZQ0NRREFPRjl0THNhWFdqQU5CZ2txaGtpRzl3MEJBUXNGQURCYU1Rc3dDUVlEVlFRR0V3SlYKVXpFTE1Ba0dBMVVFQ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pzcHd3WU4KVHd2UC9FeFdNZjNWSnJEakJDSCtULzZzeXNlUGJKRUltbHpNK0l3eXRGcEFOZmlJWEV0LzQ4WGY2ME54OGdXTQp1SHl4Wlp4L05LdER3MFY4dlgxUE9ucTJBNWVpS2ErOGpSQVJZS0pMWU5kZkR1d29seHZHNmJaaGtQaS80RXRUCjNZMThzUUtCZ0h0S2JrKzdsTkpWZXN3WEU1Y1VHNkVEVXNEZS8yVWE3ZlhwN0ZjanFCRW9hcDFMU3crNlRYcDAKWmdybUtFOEFSek00NytFSkhVdmlpcS9udXBFMTVnMGtKVzNzeWhwVTl6WkxPN2x0QjBLSWtPOVpSY21Vam84UQpjcExsSE1BcWJMSjhXWUdKQ2toaVd4eWFsNmhZVHlXWTRjVmtDMHh0VGwvaFVFOUllTktvCi0tLS0tRU5EIFJTQSBQUklWQVRFIEtFWS0tLS0tCg== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
annotations: | ||
kubernetes.io/ingress.class: "nginx" | ||
name: smoke-ingress | ||
spec: | ||
tls: | ||
- hosts: | ||
- smoke.example.com | ||
secretName: smoke-secret | ||
rules: | ||
- host: smoke.example.com | ||
http: | ||
paths: | ||
- path: /backend2 | ||
backend: | ||
serviceName: backend2-svc | ||
servicePort: 80 | ||
- path: /backend1 | ||
backend: | ||
serviceName: backend1-svc | ||
servicePort: 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: v1 | ||
data: | ||
tls.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQyakND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ErVwpCV09TNTlBQ1lYaVZKTS9nRHJRaVNWQ3QyRTFMa2dYTmVMQWJYaUJZSXcwNlQ4eDhsSmRTZzdid01OTU93SDBzClpMOUdLbm9zSWdqaS9MMDZaUndsOFBCU1hWVUF3VU9yV2RaakZta0NnWUI1bVRHZ3haTUdzbUpZYlJQeG5qK28KQnMyWkF0L1lkL2h3emlMcWMvTytTWTBoaWNZMjZhK29URThHeE1nblAxQ0QrUDF0dGZqdVR5VEQ0YXZQcFRpKwpVTi9zeStMR2svby93UlBzQnBJakZ5dlByM0pid2E2L3NiNUVMTmNTa3EyOWtuZE5HbUN5MjJrb2JFZEl6aW01ClpHaUt6K3BsN1BqTEtBRGFjM3BKZVFLQmdDRGlVY2sxTjRtblo5ZXQ5ZlBOYkxVMGYxdGwxSUJZZGxLRVdGaEQKUFBpSE9SSHdNNjU5OW5JRFNKVXhGRFZ3YjZUS2YyVTlUWCtuZzRvVklMS0srZzQ5NDVFNU1lMFJmQnFTbUUyZQpGaXZsM0tia3NIZmFncHRLSHd2dlEvemxaTVkwZStzSkNKWExRWGxWQXo2ZS91Qm1nbFhkZHNsMEJlUFo4V2pYCm9QQnhBb0dCQUlHQW1Oek1xNi8yS0NOQ3VmWkVDZGJ5NEMwVnVwTTJ4aHZkSmJ6Z2F0cFVxZ2d6LytzQlNBNVcKTzlXd21uQmFZdFBUcHZWdXFXUU9mYmF0RERmMlJab2lOUnBlMGQwdE9GeVFrZEh3UUVDdCtFYTZIMWpRYkh2MwoxVnFGeTBDbDFxYmZRektibzdaMmh4NnlXbElBaUJ6Yy8yeWt3cEhZbzdiMFo4K3ltOUtiCi0tLS0tRU5EIFJTQSBQUklWQVRFIEtFWS0tLS0tCg== | ||
kind: Secret | ||
metadata: | ||
name: wildcard-tls-secret |
7 changes: 7 additions & 0 deletions
7
tests/data/wildcard-tls-secret/invalid-wildcard-tls-secret.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: wildcard-tls-secret | ||
type: Opaque | ||
data: | ||
tls.key: LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlFb3dJQkFBS0NBUUVBcXNtSVc4WjcvdExSZ2w0eE9rL1pFTmIwR05SeWRDYlVqR1NXenlXSzBIRisvNGJWClI1VmlmaC9RTXlmNms3VkZYZlFJZU1FaG9uQkwxaGVKYVJXUVgvY1B3S2U5bm5OVjdFN1Vid1lnbU13czFianAKMFNpMkFqa1VjZ0RzY2loajl0T2o5ZVZrTXFvZDM0WGV6Uy9VaFZ0Q0k1RGIxemdGZ0MvY20yK1YrdWJyYlpnYgo4TXZjVm5kQi9HYmFFL0lFUTRLelM3UnNsWVBLdGdneUdVTXNHVUROS0J5WU1qVU9TK3JJVTE4TnMzNm9uRkdCCi8xZFhXVHliejB2RkVXeVNCWEdpRkZlTTFUQmlaems0QUZ5cFFLaUpUeHJLbDZTNW1ZdTN2VjJtaEswTGNzdzcKUWVkZ0M3aEw2VjM3OGhZa1FVdjR1ZjVQR3dBc29QYnlORy9wUXdJREFRQUJBb0lCQUd1eEN0KzhCOElHVTMvZQpQekppMlNBcU90OVJUeDU0d2J3SlRhTXZMQm9HQnl1L2JNdG5vaVNma054QkVGdUZpVWtXTVNWYnV3YS93c0lzCk0wUmxDWlhKcDFBM05YVXRpdmVvT1lJTW5nOWJaOFlZaEsrVCtUanJuejNINFZDV3NYb1p1Q0M4MWZLd25JZXUKMVhBVEFmSlpPaHBOSktMUU8zKzZMbVNBOTFTdXNheHprZGtNdnRSdlVnZHZIQWxjT0NKKzQ4cUlmRTBwc3QwcApmTGJxUnB3NG41RWp3ZnluN3Rja1ZqanRnYzJRekdCZzJIaytXK3U0K1NLN2V1RE80NWZ6UHlVWE5kVVNpWHVmCm94YzBJTW9LQW1NQ2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rS2lLOWxVUFc0a2dqQ0ZIbzRxUWIzWnpjM09zTzE2ZEIKN1VLYldkRXloT0tMbUxHN21IYlJZZm9uZE9UMGV1V3UxTnJJQ2RsaWJoVkFKcUI1WmIwUnViY1cxVGNRMTJKaQp4UENXaS9sb0FQaC9TckdUY3A4S0dPd1lBaFNteW9UdzRYeVFnVW44Nmt2U3UzVUloTVJNCi0tLS0tRU5EIFJTQSBQUklWQVRFIEtFWS0tLS0t |
47 changes: 47 additions & 0 deletions
47
tests/data/wildcard-tls-secret/mergeable/wildcard-secret-ingress.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: wildcard-ingress-master | ||
annotations: | ||
kubernetes.io/ingress.class: "nginx" | ||
nginx.org/mergeable-ingress-type: "master" | ||
spec: | ||
tls: | ||
- hosts: | ||
- wildcard.example.com | ||
rules: | ||
- host: wildcard.example.com | ||
--- | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: wildcard-ingress-backend1-minion | ||
annotations: | ||
kubernetes.io/ingress.class: "nginx" | ||
nginx.org/mergeable-ingress-type: "minion" | ||
spec: | ||
rules: | ||
- host: wildcard.example.com | ||
http: | ||
paths: | ||
- path: /backend1 | ||
backend: | ||
serviceName: backend1-svc | ||
servicePort: 80 | ||
--- | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: wildcard-ingress-backend2-minion | ||
annotations: | ||
kubernetes.io/ingress.class: "nginx" | ||
nginx.org/mergeable-ingress-type: "minion" | ||
spec: | ||
rules: | ||
- host: wildcard.example.com | ||
http: | ||
paths: | ||
- path: /backend2 | ||
backend: | ||
serviceName: backend2-svc | ||
servicePort: 80 |
22 changes: 22 additions & 0 deletions
22
tests/data/wildcard-tls-secret/standard/wildcard-secret-ingress.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: wildcard-ingress | ||
annotations: | ||
kubernetes.io/ingress.class: "nginx" | ||
spec: | ||
tls: | ||
- hosts: | ||
- wildcard.example.com | ||
rules: | ||
- host: "wildcard.example.com" | ||
http: | ||
paths: | ||
- path: /backend2 | ||
backend: | ||
serviceName: backend2-svc | ||
servicePort: 80 | ||
- path: /backend1 | ||
backend: | ||
serviceName: backend1-svc | ||
servicePort: 80 |
Oops, something went wrong.