Add chromium packages
imporove the tests to check that framework is running
Change-Id: I634dd03b43cdda9ad746c25b523e181aad9e3f1f
diff --git a/molecule/default/verify.yml b/molecule/default/verify.yml
index 24859be..4466ce6 100644
--- a/molecule/default/verify.yml
+++ b/molecule/default/verify.yml
@@ -16,14 +16,14 @@
status_code: 200
return_content: true
register: timesheet_root_page
- failed_when: "'Timesheetsui' not in timesheet_root_page.content"
+ failed_when: "'ONF Timesheets' not in timesheet_root_page.content"
- name: Obtain the /rest/ webpage, check that it's from timesheetsdb
uri:
- url: http://127.0.0.1/
+ url: http://127.0.0.1/rest/
headers:
Host: "timesheets.example.com"
status_code: 200
return_content: true
register: timesheet_rest_page
- failed_when: "'Hello World' not in timesheet_rest_page.content"
+ failed_when: "'Express' not in timesheet_rest_page.x_powered_by"
diff --git a/tasks/Debian.yml b/tasks/Debian.yml
index 4d214df..6483831 100644
--- a/tasks/Debian.yml
+++ b/tasks/Debian.yml
@@ -15,6 +15,24 @@
update_cache: true
cache_valid_time: 3600
+- name: Add Chromium browser (Debian)
+ when: 'ansible_distribution == "Debian"'
+ apt:
+ name:
+ - "chromium"
+ state: "present"
+ update_cache: true
+ cache_valid_time: 3600
+
+- name: Add Chromium browser (Ubuntu)
+ when: 'ansible_distribution == "Ubuntu"'
+ apt:
+ name:
+ - "chromium-browser"
+ state: "present"
+ update_cache: true
+ cache_valid_time: 3600
+
- name: Create environment config for timesheetsdb service
template:
src: "default.timesheetsdb.j2"