This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
At test time, confirm web service is started and responding with expe… (
#210) * At test time, confirm web service is started and responding with expected content * Add a test to verify safetyValve works
- Loading branch information
1 parent
d183155
commit 2dcd708
Showing
2 changed files
with
60 additions
and
5 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Test-SafetyValve | ||
|
||
on: | ||
push: | ||
branches: | ||
- patch/properties-no-ldap-oidc | ||
pull_request: | ||
branches: | ||
- patch/properties-no-ldap-oidc | ||
|
||
jobs: | ||
test-safetyvalve: | ||
name: Test NiFi Helm Chart SafetyValve Properties | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Setup Minikube | ||
uses: manusa/actions-setup-minikube@v2.4.1 | ||
with: | ||
minikube version: 'v1.20.0' | ||
kubernetes version: 'v1.20.2' | ||
#github token: ${{ secrets.GITHUB_TOKEN }} | ||
#- run: minikube addons list | ||
#- name: Interact with the cluster | ||
# run: kubectl get nodes | ||
- name: Checkout code | ||
uses: actions/checkout@v1 | ||
- name: Install dependencies | ||
run: | | ||
helm repo add bitnami https://charts.bitnami.com/bitnami | ||
helm repo add dysnix https://dysnix.github.io/charts/ | ||
helm repo update | ||
helm dep up | ||
- name: Install Nifi | ||
run: helm install nifi . -f tests/01-safetyValve-values.yaml | ||
- name: Check deployment status | ||
run: kubectl wait --for=condition=Ready pod/nifi-0 --timeout=20m | ||
- name: Check safetyValve content is correct | ||
run: | | ||
NPFP=$(kubectl exec pod/nifi-0 -c server -- ps auxww | \ | ||
awk 'BEGIN { RS = " " } /^-Dnifi.properties.file.path/ { split($0,a,"=",seps); printf("%s",a[2]) }') | ||
kubectl exec pod/nifi-0 -c server -- cat $NPFP | ||
kubectl exec pod/nifi-0 -c server -- cat $NPFP | \ | ||
grep 'nifi.content.claim.max.appendable.size=1 B' |
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