An error occurred fetching the project authors.
  1. 28 Oct, 2019 2 commits
  2. 24 Oct, 2019 1 commit
  3. 23 Oct, 2019 1 commit
  4. 21 Oct, 2019 2 commits
  5. 18 Oct, 2019 1 commit
  6. 17 Oct, 2019 3 commits
  7. 16 Oct, 2019 1 commit
  8. 15 Oct, 2019 1 commit
  9. 11 Oct, 2019 2 commits
  10. 10 Oct, 2019 9 commits
  11. 09 Oct, 2019 2 commits
  12. 08 Oct, 2019 1 commit
  13. 07 Oct, 2019 14 commits
    • Jérome Perrin's avatar
      Update most SR tests to use slapos.testing · 6ddbb205
      Jérome Perrin authored
      Update almost all tests to use nexedi/slapos.core!64 
      
      Notable changes:
       * the testcase class is generated dynamically with `makeModuleSetUpAndTestCaseClass`
       * `self.slap` allow low level control of slapos
       * IP addresses are available as `_ipv6_address` and `_ipv4_address` class attributes
       * `getSupervisorRPCServer` no longer exist, instead use `self.slap.instance_supervisor_rpc` (as context manager)
       * now the framework takes care of running promises and instance step fail when instanciation fail or when promises are not satisfied (as a result, some tests checking promises are dropped)
       * test needs `slapos` and `supervisord` commands in PATH. It's important to have a recent enough `slapos` and not the `~/bin/slapos` from slaprunner which sets `$SLAPOS_CONFIGURATION` 
      
      Following tests were not updated:
       * `caddy-frontend` as this will require more work, because this software uses shared partitions and maybe other things will need to be adapted in the tests. 
       * `slapos-master` as it is same as ERP5 and I thought maybe we can do better than duplicating code, so I left it as is for now.
       * `nextcloud` as this fail the `slapos node instance` step.
      
      There are also a few style changes or small fixes to make pylint happy and some other fixes for problems with softwares and also a fix for seleniumrunner flaky test.
      
      /reviewed-on nexedi/slapos!624
      6ddbb205
    • Jérome Perrin's avatar
      213d79a5
    • Jérome Perrin's avatar
      turnserver/test: use slapos.testing · 395b5b9f
      Jérome Perrin authored
      also drop test_turnserver_promises as promises are now checked by
      framework.
      395b5b9f
    • Jérome Perrin's avatar
      turnserver: workaround zero-knowledge.read limitation · ad7603f0
      Jérome Perrin authored
      slapos.cookbook:zero-knowledge.read has this limitation that because it
      reads the secret file on __init__, ie. before any other parts are
      installed, the value cannot be read the first time.
      On first slapos node instance run, the generated turnserver-config has
      an empty secret, it's only after the second execution that the secret is
      generated. What happens is:
       - first run:
         - read-secret __init__ cannot find the file and does not override
           secret
         - turnserver-config uses the default ${read-secret:secret} (empty
           string)
         - gen-secret install creates the secret file
       - second run
         - read-secret __init__ finds the file and override secret with the
           value read from the file.
         - turnserver-config uses the overriden ${read-secret:secret} (good
           secret)
      
      This was not a problem before, because some frontend promise were
      always failing, so we processed this partition several time, but now it
      is succesfully processed the first time.
      
      To workadound this, we prevent turnserver from starting if secret is
      empty, then promise will fail, instance will be processed a second time
      and then turnserver will run with a secret.
      ad7603f0
    • Jérome Perrin's avatar
      0454ef56
    • Jérome Perrin's avatar
      jupyter/test: use slapos.testing · 341fe19c
      Jérome Perrin authored
      341fe19c
    • Jérome Perrin's avatar
      monitor/test: use slapos.testing · a4f1b315
      Jérome Perrin authored
      a4f1b315
    • Jérome Perrin's avatar
      powerdns/test: use slapos.testing · 1a1ae265
      Jérome Perrin authored
      1a1ae265
    • Jérome Perrin's avatar
      powerdns: fix instanciation with empty slave_instance_list · 71139c01
      Jérome Perrin authored
      This was causing "No JSON object could be decoded"
      71139c01
    • Jérome Perrin's avatar
      kvm/test: use slapos.testing · 6c8f6b07
      Jérome Perrin authored
      6c8f6b07
    • Jérome Perrin's avatar
      plantuml/test: use slapos.testing · da042a79
      Jérome Perrin authored
      da042a79
    • Jérome Perrin's avatar
      re6stnet/test: use slapos.testing · 7830efb5
      Jérome Perrin authored
      7830efb5
    • Jérome Perrin's avatar
      erp5/test: give more time for ERP5 to be ready · 031284b0
      Jérome Perrin authored
      now that promises are satisfied, we don't retry slapos node instance
      again and again, so this test starts earlier and we need to wait longer
      for ERP5 to be ready.
      
      Also tolerate that this 503 can be 404 (I think this happened a few time
      on test nodes in the past)
      031284b0
    • Jérome Perrin's avatar
      erp5/test: use slapos.testing · 7a988a85
      Jérome Perrin authored
      7a988a85