1. 16 Jan, 2019 2 commits
    • Łukasz Nowak's avatar
      caddy-frontend/test: Workaround requests issue with Accept-Encoding · 28b1abe9
      Łukasz Nowak authored
      requests set Accept-Encoding header, but in the testr environment we
      want to have full control over its behaviour, thus not setting any header if
      not really wanted.
      
      As there is not known way to avoid setting the header (skip_accept_encoding is
      internal to httplib) set dummy Accept-Encoding header, which is enough for our
      environment.
      28b1abe9
    • Jérome Perrin's avatar
      Updates on Selenium Server · 9d0de6e9
      Jérome Perrin authored
      Hopefully fix the random failure with:
      
      ```
      test_connect (test.TestSSHServer) ... /srv/slapgrid/slappart3/srv/testnode/byx/soft/a452c8ac557f7eaea3c20f6cc373c390/eggs/paramiko-2.4.2-py2.7.egg/paramiko/client.py:822: UserWarning: Unknown ecdsa-sha2-nistp521 host key for [2001:67c:1254:e:4a::7bd5]:22222: 22c41f5090433152d1e5395a85d6cb4f
        key.get_name(), hostname, hexlify(key.get_fingerprint())
      FAIL
      
      ======================================================================
      FAIL: test_connect (test.TestSSHServer)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/srv/slapgrid/slappart3/srv/testnode/byx/soft/a452c8ac557f7eaea3c20f6cc373c390/parts/slapos-repository/software/seleniumserver/test/test.py", line 357, in test_connect
          self.assertIn("Welcome to SlapOS Selenium Server.", channel.recv(100))
      AssertionError: 'Welcome to SlapOS Selenium Server.' not found in 'Attempt to write login records by non-root user (aborting)\r\r\n'
      
      ----------------------------------------------------------------------
      ```
      
      Also publish the fingerprint of the server ssh key, which addresses this warning in the correct way (I feel) and since we can publish the fingerprint, why not.
      
      /reviewed-on nexedi/slapos!492
      9d0de6e9
  2. 14 Jan, 2019 1 commit
  3. 11 Jan, 2019 7 commits
  4. 10 Jan, 2019 7 commits
  5. 09 Jan, 2019 3 commits
  6. 08 Jan, 2019 2 commits
    • Jérome Perrin's avatar
      seleniumserver: try to fix intermitent test failure · 381f49e3
      Jérome Perrin authored
      This seem to be needed "sometimes", apparently on the first connection
      after server is started, but this was not investigated much.
      381f49e3
    • Jérome Perrin's avatar
      component/apache: increase Timeout for direct access case · fce3c74a
      Jérome Perrin authored
      In "direct zope access" ports, the shared frontend is not used, so
      the argument that long timeout consume resources on shared server does
      not apply here.
      
      A timeout of one hour was choosen arbitrarily, a value that should be
      large enough for normal requests and more than the default 60s timeout
      that we hit in the "wait for activities" step when running zelenium
      tests.
      fce3c74a
  7. 07 Jan, 2019 2 commits
  8. 04 Jan, 2019 1 commit
  9. 03 Jan, 2019 1 commit
  10. 02 Jan, 2019 3 commits
  11. 30 Dec, 2018 2 commits
  12. 28 Dec, 2018 4 commits
  13. 27 Dec, 2018 3 commits
    • Łukasz Nowak's avatar
      slapos: Encode unicode to UTF-8 · 3c01d90e
      Łukasz Nowak authored
      /reviewed-on nexedi/slapos!480
      3c01d90e
    • Jérome Perrin's avatar
      erp5testnode: install seleniumrunner from a tag · faa89605
      Jérome Perrin authored
      Installing from master is problematic because when master does not build
      we don't have test results and we don't see that it's broken.
      
      /reviewed-on !474
      faa89605
    • Vincent Pelletier's avatar
      stack/erp5: Replicate based on slave_pos, not current_pos · 58caaffc
      Vincent Pelletier authored
      The query present in the sql dump sets gtid_slave_pos, which is used by
      slave_pos. current_pos relies on gtid_current_pos, which is not set here
      and hence fails to initiate replication.
      Another (unintended) effect of using slave_pos is that queries run on the
      slave will not break replication. There should be no reason to run queries
      on slave (at least, data & schema modification queries while replication
      is active), so it would seem better to fail the replication immediately in
      order to detect this. So this may not be the best solution - but at least
      this fixes this script.
      58caaffc
  14. 26 Dec, 2018 1 commit
    • Jérome Perrin's avatar
      fixup! NEO: add support for SQLite backend · e44932b0
      Jérome Perrin authored
      We no enforce formatting of json schema, this was causing a test
      failure:
      ```
      
      ======================================================================
      FAIL: test_schema_neoppod_instance_neo_input_schema_json_format (slapos.test.test_json_schema.TestJSONSchemaValidation)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/srv/slapgrid/slappart0/srv/testnode/bpy/inst/test0-0/parts/slapos.cookbook/slapos/test/test_json_schema.py", line 80, in run
          content.splitlines())
      AssertionError: Lists differ: ['{', '  "$schema": "http://js... != ['{', '  "$schema": "http://js...
      
      First differing element 87:
      '            "description": "Storage type. Defaults to MySQL if available, else SQLite.",'
      '              "description": "Storage type. Defaults to MySQL if available, else SQLite.",'
      
      First list contains 3 additional elements.
      First extra element 119:
      '  },'
      
      Diff is 5422 characters long. Set self.maxDiff to None to see it.
      
      ----------------------------------------------------------------------
      ```
      
      /reviewed-on nexedi/slapos!482
      e44932b0
  15. 24 Dec, 2018 1 commit