Testaufruf der angelegten Seiten für ams0013 eingebaut

Hiermit kann man über den Aufruf des /test/test.yml prüfen ob die Seiten auch richtig antworten. Wie das aufgerufen wird steht im ReadMe von ams0013_8.0.9.0
This commit is contained in:
Marcus Gillitzer 2020-06-16 17:16:22 +02:00
parent 590a6e0a22
commit aa1aa62fab
6 changed files with 62 additions and 8 deletions

View File

@ -46,6 +46,13 @@ Including an example of how to use your role (for instance, with variables passe
- hosts: servers
roles:
- ams_0013_8.0.9.0
Zu testen ob die Installation geklappt hat, kann die /test/test.yml aufgerufen werden.
Folgender Aufruf:
ansible-playbook -i development/hosts -u euer_usernamen roles/ams_0013_8.0.9.0/tests/test.yml
License
-------

View File

@ -4,10 +4,16 @@
file:
path: /opt/rola/ams/linux/webclient-services/rsAmsBvService-8.0.8.0
state: absent
notify:
- stopALL
- startALL
- name: Remove a directory /opt/rola/ams/linux/webclient-services/SharedComponents-8.0.8.0/ if it does exist
file:
path: /opt/rola/ams/linux/webclient-services/SharedComponents-8.0.8.0/
state: absent
notify:
- stopALL
- startALL
- name: synchronize Folder remote from /sw/AMS/WEB/Lieferung_0013_8.0.9.0_AMS_BBTA1_HF2_BV-Schnittstelle/linux/webclient-services/rsAmsBvService-8.0.9.0 to /opt/rola/ams/linux/webclient-services
synchronize:
src: /sw/AMS/WEB/Lieferung_0013_8.0.9.0_AMS_BBTA1_HF2_BV-Schnittstelle/linux/webclient-services/rsAmsBvService-8.0.9.0
@ -25,13 +31,19 @@
owner: jetty
group: dba
mode: '0644'
notify:
- stopALL
- startALL
- name: Template file tech.database.yaml.j2 with owner and permissions
template:
src: ./templates/tech.database.yaml.j2
dest: /opt/rola/ams/linux/webclient-services/rsAmsBvService-8.0.9.0/frameworkconfig/prefs/tech.database.yaml
owner: jetty
group: dba
mode: '0644'
mode: '0644'
notify:
- stopALL
- startALL
- name: Copy file psc.sh with owner and permissions
copy:
src: ./files/psc.sh

View File

@ -1,2 +0,0 @@
localhost

View File

@ -1,5 +1,23 @@
---
- hosts: localhost
remote_user: root
roles:
- default_role
- name: test site
hosts: development
become: yes
tasks:
- name: check website AppServer
uri:
url: "http://{{ ansible_facts['default_ipv4']['address'] }}:8080/appserver/dispatcher/hello"
- name: check website AppServerAdmin
uri:
url: "http://{{ ansible_facts['default_ipv4']['address'] }}:8181/appserver/dispatcher/hello"
- name: check website CV-SNIT
uri:
url: "http://{{ ansible_facts['default_ipv4']['address'] }}:7272/imp20/htmlclient"
status_code: 403
- name: check website BV-SNIT
uri:
url: "http://{{ ansible_facts['default_ipv4']['address'] }}:7373/bv/ws"
status_code: 405

View File

@ -1 +1 @@
80.155.205.161
80.155.206.72

View File

@ -17,6 +17,25 @@
#- ams_sso
#- ams_0008_8.0.8.0_AdminServer
- ams_0013_8.0.9.0
handlers:
- name: stopALL
command: ./stopALL
args:
chdir: "/home/jetty"
async: 120
poll: 5
- name: startALL
command: ./startALL
args:
chdir: "/home/jetty"
async: 120
poll: 5
##########################################################