diff --git a/molecule/default/verify.yml b/molecule/default/verify.yml index 6e53166..d85634b 100644 --- a/molecule/default/verify.yml +++ b/molecule/default/verify.yml @@ -58,9 +58,9 @@ - name: Display SequenceServer home page content debug: msg: "{{ sequenceserver_page.content | b64decode }}" - - name: Check title in home page content + - name: Check home url in home page content shell: # noqa 301 - cmd: curl -sL http://localhost:4567 | grep -q 'http://myfavoritewebsite.com' + cmd: curl -sL http://localhost:4567 | grep -q 'BLAST server for my_db' register: grep_title failed_when: grep_title.rc > 0 - name: Check support email in home page content diff --git a/tasks/main.yml b/tasks/main.yml index 4540186..33a6ade 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -95,6 +95,8 @@ - name: Modify source erb file for custom web page title and source lib for HPC integration | Set regexp | Default set_fact: + sequenceserver_home_url_regexp: 'https://sequenceserver.com' + sequenceserver_home_url_replace: '{{ sequenceserver_home_url }}' sequenceserver_logo_regexp: 'sequenceserver_logo.webp' sequenceserver_logo_replace: '{{ sequenceserver_logo }}' sequenceserver_title_regexp: '<%= SequenceServer::VERSION %>' @@ -124,6 +126,7 @@ replace: "{{ item.replace }}" backup: yes with_items: + - {regexp: '{{ sequenceserver_home_url_regexp }}', replace: '{{ sequenceserver_home_url_replace }}'} - {regexp: '{{ sequenceserver_logo_regexp }}', replace: '{{ sequenceserver_logo_replace }}'} - {regexp: '{{ sequenceserver_title_regexp }}', replace: '{{ sequenceserver_title_replace }}'} - {regexp: '{{ sequenceserver_support_regexp }}', replace: '{{ sequenceserver_support_email }}'}