Public bug reported: The dep8 smoke test for kopano-webapp fails when run, with error:
"AssertionError: Webapp not found in page title. Screenshot is at screenshot.1567630226.4068964.png" A copy of the screenshot is here: http://www.bryceharrington.org/screenshot.1567630226.4068964.png Error from the test run: root@php-kopano:/home/ubuntu/kopano-webapp-3.5.9+dfsg1# ./debian/tests/smoke ... ====================================================================== FAIL: test_login (test_webapp.TestWebApp) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/ubuntu/kopano-webapp-3.5.9+dfsg1/debian/tests/test_webapp.py", line 54, in test_login self.fail_with_screenshot("Webapp not found in page title") File "/home/ubuntu/kopano-webapp-3.5.9+dfsg1/debian/tests/test_webapp.py", line 38, in fail_with_screenshot self.fail("%s. Screenshot is at %s" % (msg, screenshot_name)) AssertionError: Webapp not found in page title. Screenshot is at screenshot.1567630226.4068964.png ... ---------------------------------------------------------------------- Ran 1 test in 8.409s FAILED (failures=1) To reproduce this: $ lxc launch ubuntu-daily/eoan:amd64 php-kopano $ lxc exec php-kopano -- bash # apt-get source kopano-webapp # cd kopano-webapp-3.5.9+dfsg1 # dch -i Add a "no-change rebuild" changelog entry # debuild --no-sign # dpkg -i ../kopano-webapp-common_3.5.9+dfsg1-1_all.deb ../kopano-webapp-apache2_3.5.9+dfsg1-1_all.deb # ./debian/tests/smoke ** Affects: kopano-webapp (Ubuntu) Importance: Undecided Status: New ** Description changed: The dep8 smoke test for kopano-webapp fails when run, with error: - "AssertionError: Webapp not found in page title. Screenshot is at + "AssertionError: Webapp not found in page title. Screenshot is at screenshot.1567630226.4068964.png" A copy of the screenshot is here: - http://www.bryceharrington.org/screenshot.1567630226.4068964.png + http://www.bryceharrington.org/screenshot.1567630226.4068964.png - Test run log is as follows: + Error from the test run: - root@php-kopano:/home/ubuntu/kopano-webapp-3.5.9+dfsg1# ./debian/tests/smoke - + cat+ - debconf-set-selections - + apt-get -y install mariadb-server - Reading package lists... Done - Building dependency tree - Reading state information... Done - mariadb-server is already the newest version (1:10.3.17-1). - The following packages were automatically installed and are no longer required: - libpcre16-3 libpcre3-dev libpcre32-3 libpcrecpp0v5 - Use 'apt autoremove' to remove them. - 0 upgraded, 0 newly installed, 0 to remove and 63 not upgraded. - + apt-get -y install kopano-webapp-apache2 kopano-utils - Reading package lists... Done - Building dependency tree - Reading state information... Done - kopano-utils is already the newest version (8.7.0-3build1). - kopano-webapp-apache2 is already the newest version (3.5.9+dfsg1-1build1). - The following packages were automatically installed and are no longer required: - libpcre16-3 libpcre3-dev libpcre32-3 libpcrecpp0v5 - Use 'apt autoremove' to remove them. - 0 upgraded, 0 newly installed, 0 to remove and 63 not upgraded. - + cd debian/tests - + export AUTH_USER=mailtest - + export AUTH_PASS=r00tme - + nosetests3 -v - test_login (test_webapp.TestWebApp) ... FAIL - + root@php-kopano:/home/ubuntu/kopano-webapp-3.5.9+dfsg1# ./debian/tests/smoke + ... ====================================================================== FAIL: test_login (test_webapp.TestWebApp) ---------------------------------------------------------------------- Traceback (most recent call last): - File "/home/ubuntu/kopano-webapp-3.5.9+dfsg1/debian/tests/test_webapp.py", line 54, in test_login - self.fail_with_screenshot("Webapp not found in page title") - File "/home/ubuntu/kopano-webapp-3.5.9+dfsg1/debian/tests/test_webapp.py", line 38, in fail_with_screenshot - self.fail("%s. Screenshot is at %s" % (msg, screenshot_name)) + File "/home/ubuntu/kopano-webapp-3.5.9+dfsg1/debian/tests/test_webapp.py", line 54, in test_login + self.fail_with_screenshot("Webapp not found in page title") + File "/home/ubuntu/kopano-webapp-3.5.9+dfsg1/debian/tests/test_webapp.py", line 38, in fail_with_screenshot + self.fail("%s. Screenshot is at %s" % (msg, screenshot_name)) AssertionError: Webapp not found in page title. Screenshot is at screenshot.1567630226.4068964.png - -------------------- >> begin captured logging << -------------------- - selenium.webdriver.remote.remote_connection: DEBUG: POST http://127.0.0.1:49321/session {"capabilities": {"firstMatch": [{}], "alwaysMatch": {"browserName": "chrome", "platformName": "any", "goog:chromeOptions": {"extensions": [], "args": ["--headless", "--no-sandbox", "--window-size=1200x900"]}}}, "desiredCapabilities": {"browserName": "chrome", "version": "", "platform": "ANY", "goog:chromeOptions": {"extensions": [], "args": ["--headless", "--no-sandbox", "--window-size=1200x900"]}}} - urllib3.connectionpool: DEBUG: Starting new HTTP connection (1): 127.0.0.1:49321 - urllib3.connectionpool: DEBUG: http://127.0.0.1:49321 "POST /session HTTP/1.1" 200 648 - selenium.webdriver.remote.remote_connection: DEBUG: Finished Request - selenium.webdriver.remote.remote_connection: DEBUG: POST http://127.0.0.1:49321/session/2b0281220cb3efcc7f9f16e8c2334e98/url {"url": "http://127.0.0.1/webapp/"} - urllib3.connectionpool: DEBUG: http://127.0.0.1:49321 "POST /session/2b0281220cb3efcc7f9f16e8c2334e98/url HTTP/1.1" 200 14 - selenium.webdriver.remote.remote_connection: DEBUG: Finished Request - selenium.webdriver.remote.remote_connection: DEBUG: GET http://127.0.0.1:49321/session/2b0281220cb3efcc7f9f16e8c2334e98/title {} - urllib3.connectionpool: DEBUG: http://127.0.0.1:49321 "GET /session/2b0281220cb3efcc7f9f16e8c2334e98/title HTTP/1.1" 200 12 - selenium.webdriver.remote.remote_connection: DEBUG: Finished Request - selenium.webdriver.remote.remote_connection: DEBUG: GET http://127.0.0.1:49321/session/2b0281220cb3efcc7f9f16e8c2334e98/screenshot {} - urllib3.connectionpool: DEBUG: http://127.0.0.1:49321 "GET /session/2b0281220cb3efcc7f9f16e8c2334e98/screenshot HTTP/1.1" 200 8560 - selenium.webdriver.remote.remote_connection: DEBUG: Finished Request - selenium.webdriver.remote.remote_connection: DEBUG: DELETE http://127.0.0.1:49321/session/2b0281220cb3efcc7f9f16e8c2334e98 {} - urllib3.connectionpool: DEBUG: http://127.0.0.1:49321 "DELETE /session/2b0281220cb3efcc7f9f16e8c2334e98 HTTP/1.1" 200 14 - selenium.webdriver.remote.remote_connection: DEBUG: Finished Request - --------------------- >> end captured logging << --------------------- - + ... ---------------------------------------------------------------------- Ran 1 test in 8.409s FAILED (failures=1) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1842755 Title: kopano-webapp dep8 smoke test failure To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kopano-webapp/+bug/1842755/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
