Skip to content

Commit

Permalink
add postman test and ingress config
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz committed Oct 5, 2022
1 parent f68b99e commit fbbd1a9
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 10 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/helm-integration-community.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,16 @@ on:
- helm-test
types:
- completed
push:
branches:
- 'master'
- pr-*
jobs:
community_charts:
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success'
steps:
- name: Kind Cluster
uses: helm/kind-action@v1.4.0
- uses: actions/checkout@v3
- name: Kind Cluster
uses: helm/kind-action@v1.3.0
with:
config: test/kind-ingress-enabled-cluster.yaml
- name: Community local deployment
env:
VALUES: |
Expand Down Expand Up @@ -109,3 +107,12 @@ jobs:
--set global.tracking.sharedsecret="$(openssl rand -hex 24)" \
--wait --timeout 10m0s --values - < <(echo "$VALUES")
kubectl get all
curl -vLk http://localhost/share/page/
curl -vLk http://localhost/alfresco/
- name: run Postman tests
uses: matt-ball/newman-action@v1.0.4
with:
collection: test/postman/helm/acs-validate-volume-collection.json
insecure: true
globalVar: >-
[{"key": "protocol", "value": "http"}, {"key": "url", "value": "localhost"}]
File renamed without changes.
18 changes: 18 additions & 0 deletions test/kind-ingress-enabled-cluster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
kubeadmConfigPatches:
- |
kind: InitConfiguration
nodeRegistration:
kubeletExtraArgs:
node-labels: "ingress-ready=true"
extraPortMappings:
- containerPort: 80
hostPort: 80
protocol: TCP
- containerPort: 443
hostPort: 443
protocol: TCP
8 changes: 4 additions & 4 deletions test/postman/helm/acs-test-helm-collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -1959,8 +1959,8 @@
"raw": "{\r\n \"query\": {\r\n \"query\": \"name:alfresco\"\r\n }\r\n}"
},
"url": {
"raw": "https://{{url}}/alfresco/api/-default-/public/search/versions/1/search",
"protocol": "https",
"raw": "{{protocol}}://{{url}}/alfresco/api/-default-/public/search/versions/1/search",
"protocol": "{{protocol}}",
"host": [
"{{url}}"
],
Expand Down Expand Up @@ -2035,8 +2035,8 @@
"raw": "{\r\n \"query\": {\r\n \"query\": \"SELECT * FROM cmis:folder WHERE cmis:name = 'MyFunkyNameForTestingPersistency'\",\r\n \"language\": \"cmis\"\r\n }\r\n}"
},
"url": {
"raw": "https://{{url}}/alfresco/api/-default-/public/search/versions/1/search",
"protocol": "https",
"raw": "{{protocol}}://{{url}}/alfresco/api/-default-/public/search/versions/1/search",
"protocol": "{{protocol}}",
"host": [
"{{url}}"
],
Expand Down

0 comments on commit fbbd1a9

Please sign in to comment.