improve CI

Change-Id: I446391b689034e4f2e018fde5f4b1476cc1fa058
This commit is contained in:
Mohammed Naser 2020-03-17 09:25:10 -04:00
parent f7e8e8226f
commit 9f353a302f
4 changed files with 15 additions and 28 deletions

View File

@ -4,8 +4,6 @@
run: playbooks/functional/run.yaml run: playbooks/functional/run.yaml
vars: vars:
minikube_dns_resolvers: ['1.1.1.1', '8.8.8.8'] minikube_dns_resolvers: ['1.1.1.1', '8.8.8.8']
helm_charts:
nodepool: ./charts/nodepool
- project: - project:
check: check:

View File

@ -25,10 +25,8 @@ securityContext: {}
# runAsUser: 1000 # runAsUser: 1000
service: service:
# type: ClusterIP type: ClusterIP
port: 80 port: 80
type: NodePort
nodePort: 30009
ingress: ingress:
enabled: false enabled: false

View File

@ -1 +0,0 @@
< Location: http://paste.openstack.org/show/790650/

View File

@ -5,29 +5,21 @@
helm_release_name: lodgeit helm_release_name: lodgeit
helm_chart: ./chart helm_chart: ./chart
tasks: tasks:
- name: Get the Node Port - name: Get the Node Port
command: > command: >
kubectl get -o jsonpath="{.spec.ports[0].nodePort}" services lodgeit kubectl get svc/lodgeit -ojsonpath="http://{.spec.clusterIP}:{.spec.ports[0].port}"
register: nodePort register: _url
- name: Get the Node IP
command: >
kubectl get nodes -o jsonpath="{.items[0].status.addresses[0].address}"
register: nodeIP
- name: Post the paste - name: Post the paste
shell: "curl -vv --silent -d 'code=test&language=text&webpage=' http://{{ nodeIP.stdout }}:{{ nodePort.stdout }} 2>&1 |grep Location" uri:
register: pasteLocationInfo url: "{{ _url.stdout }}"
follow_redirects: all
- name: Get the pasteUrl method: POST
shell: "echo '{{ pasteLocationInfo.stdout }}' | cut -d' ' -f3" body_format: form-urlencoded
register: pasteUrl body:
code: test
language: text
- name: Get the paste webpage: ""
command: > return_content: true
curl -I {{ pasteUrl.stdout }} register: _paste
register: getPaste failed_when: "'test' not in _paste.content"