Skip to content

Commit

Permalink
Add regexp replace for home_url
Browse files Browse the repository at this point in the history
  • Loading branch information
loraine-gueguen committed Aug 5, 2024
1 parent fa49483 commit b192c5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,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

Check warning on line 51 in molecule/default/verify.yml

View workflow job for this annotation

GitHub Actions / Lint

51:14 [comments] too few spaces before comment
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
Expand Down
3 changes: 3 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>'
Expand Down Expand Up @@ -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 }}'}
Expand Down

0 comments on commit b192c5f

Please sign in to comment.