1. 02 Dec, 2020 2 commits
    • Jérome Perrin's avatar
      software/slapos-sr-testing: run repman only on python3 · 0ca1ac5d
      Jérome Perrin authored
      in ceb063a4 (software/repman: tests python3 compliance, 2020-10-23), test
      profile was changed to run on python3 only but this was accidentally
      reverted in 3a1e5628 (software/slapos-sr-testing: use nxdtest, 2020-10-28),
      by running repman also on python2.
      
      Restore the situation where we run repman only on python3
      0ca1ac5d
    • Jérome Perrin's avatar
      software/slapos-sr-testing: fix python-interpreter for python3 · 577f27ea
      Jérome Perrin authored
      The initial intent was to use an interpreter named `python_for_test` and not
      `python`, so that software do not accidentally pick up this python during
      compilation.
      6033e4fa (software/slapos-sr-testing: fix python3 profile, 2020-12-01)
      was a quick fix for some python3 compatibility issues discovered after merge,
      but it was not correct, because by using ${python-interpreter:eggs}, it was
      installing the default python-interpreter section, which has an interpreter
      named `python`.
      
      This caused issues while building proxysql, which assumes /usr/bin/env python
      is python2.
      
      The fix is to override python-interpreter directly, we don't need another
      section eggs here.
      577f27ea
  2. 01 Dec, 2020 1 commit
  3. 27 Nov, 2020 1 commit
    • Jérome Perrin's avatar
      software/slapos-sr-testing: use nxdtest · 3a1e5628
      Jérome Perrin authored
      Change to run all tests with python -m unittest, which will allow us to
      remove workaround for the $PYTHONPATH set by setup.py test.
      
      For this we use `[python-interpreter]` which uses pygolang.main to behave
      like a "normal" python interpreter with eggs available, but without the
      usual problems of interpreters generated by zc.recipe.eggs - it supports
      all command line flags and have current directory in sys.path.
      
      Tests now have an explicit name, that we set to the software name as before,
      and the special test dynamically checking all profiles json schemas (part
      of slapos.cookbook egg, at the root of slapos repository),is named
      json-schemas. It is also changed to run as default tests in python2 and
      python3, not only in extras for python2.
      3a1e5628
  4. 02 Nov, 2020 1 commit
  5. 30 Oct, 2020 1 commit
    • Léo-Paul Géneau's avatar
      software/plantuml: move to python3 · 1d64eb15
      Léo-Paul Géneau authored
      The only change to support python3 in software/plantuml is the move
      from hexagonit to slapos download recipe in component/tomcat.
      We also move the test to python3 by using plantuml egg v0.3.0. As this
      egg doesn't support python2, the test is not done anymore in Python2.
      1d64eb15
  6. 26 Oct, 2020 1 commit
  7. 23 Oct, 2020 1 commit
  8. 16 Oct, 2020 1 commit
  9. 28 Sep, 2020 1 commit
  10. 25 Aug, 2020 1 commit
    • Jérome Perrin's avatar
      version up slapos.toolbox 0.110 · f3613b91
      Jérome Perrin authored
      Since this version introduces a dependency on backports.lzma we had to
      explicitly install backports.lzma in a slapos compliant way before installing
      slapos.toolbox, because installing the egg needs xz-utils.
      
      For slapos-sr-testing it's also a version up of backports.lzma to 0.14.0
      f3613b91
  11. 21 Aug, 2020 1 commit
  12. 05 Aug, 2020 1 commit
    • Jérome Perrin's avatar
      software/slapos-sr-testing: generate an environment script · dbf762f1
      Jérome Perrin authored
      Using an script to set the environment is easier to use, but the main
      reason is that if we want to be able to use shared part from outer
      slapos (like when using in theia or slaprunner), the working directory
      for test must be contained in the instance directory of the outer
      slapos, so that when we run slapos node prune in the outer slapos this
      command can see that shared parts are used.
      dbf762f1
  13. 08 Jul, 2020 1 commit
  14. 22 Jun, 2020 1 commit
  15. 11 Jun, 2020 1 commit
  16. 12 May, 2020 1 commit
  17. 07 May, 2020 3 commits
  18. 28 Apr, 2020 1 commit
  19. 07 Apr, 2020 1 commit
  20. 31 Mar, 2020 1 commit
  21. 24 Mar, 2020 1 commit
  22. 23 Mar, 2020 1 commit
  23. 13 Mar, 2020 1 commit
  24. 12 Mar, 2020 1 commit
  25. 11 Mar, 2020 1 commit
  26. 10 Mar, 2020 1 commit
  27. 05 Mar, 2020 1 commit
  28. 17 Feb, 2020 1 commit
  29. 05 Feb, 2020 1 commit
  30. 03 Feb, 2020 1 commit
  31. 02 Feb, 2020 1 commit
    • Jérome Perrin's avatar
      slapos.cookbook/testing: fix missing version pin for mock · 826042a9
      Jérome Perrin authored
      Because we run egg tests with setup.py test, which installs missing
      eggs, if an egg was not installed by buildout, then it installed before
      running test. This was the case for mock, which is now python3 only (
      https://pypi.org/project/mock/4.0.0b1/ ) and we started to see test
      failures.
      
      To solve this issue, refactor the setup definition to use
      extra_requires, which seems to work fine in buildout now. Keep
      test_requires because it's the what `python setup.py test` uses.
      
      Clean buildout profiles to install slapos.cookbook[test] for test
      instead of duplicating the content of test_requires.
      
      /reviewed-on !690
      826042a9
  32. 05 Dec, 2019 1 commit
  33. 06 Nov, 2019 2 commits
  34. 07 Oct, 2019 1 commit
  35. 30 Aug, 2019 1 commit
  36. 28 Aug, 2019 1 commit