1. 23 Mar, 2022 2 commits
    • Romain Courteaud's avatar
      slapos_jio_ui_test: wait for page to be loaded · 8158ffb7
      Romain Courteaud authored
      slapos_jio_ui_test: wait for content loaded to delete project
      
      slapos_jio_ui_test: wait for page to be loaded
      8158ffb7
    • Jérome Perrin's avatar
      standalone: strip ansi codes in logs · 3a62e218
      Jérome Perrin authored
      This fixes a bug when the program output contain some ansi code, like
      the \e[0;31m ansi code to display text in color on the terminal. These
      characters are not allowed in XML so if they end up in the XML-RPC
      messages this cause the underlying expat library to complain that the
      stream is not well-formed (invalid token).
      
      Fortunately, supervisor supports this and has a `strip_ansi` option that
      we can set in the config to prevent these problems.
      3a62e218
  2. 22 Mar, 2022 6 commits
  3. 21 Mar, 2022 2 commits
  4. 18 Mar, 2022 1 commit
  5. 16 Mar, 2022 3 commits
  6. 15 Mar, 2022 2 commits
  7. 14 Mar, 2022 8 commits
  8. 11 Mar, 2022 2 commits
  9. 10 Mar, 2022 5 commits
  10. 02 Mar, 2022 1 commit
  11. 01 Mar, 2022 1 commit
  12. 23 Feb, 2022 2 commits
  13. 21 Feb, 2022 1 commit
  14. 17 Feb, 2022 1 commit
  15. 16 Feb, 2022 3 commits
    • Jérome Perrin's avatar
      runpromises: support software releases older than slapos 1.0.118 · 2a90733c
      Jérome Perrin authored
      Before slapos commit a184cca8b (Try to reuse existing file to avoid
      excessive IO on update + other minor optimisations, 2019-06-17), which
      started to be used in profiles in 65acdca0d (Release slapos.cookbook
      (1.0.118), 2019-08-13), the promise plugins did not contain
      
          import sys
          sys.path[0:0] = (..., )
      
      but there was an extra import statement:
      
          import sys
          import json
          sys.path[0:0] = (..., )
      
      slapos.core >= 1.7 was not able to process such promises, because the
      code introspecting these promises assumed that the second node of the
      AST was the assignment, which is incorrect in the old promises because
      it was another import.
      
      To accomodate both cases, use the value from the first assignment.
      
      We also change to use ast.literal_eval for safety.
      2a90733c
    • Jérome Perrin's avatar
      tests: refactor grid tests to use a getTestComputerClass method · b01cc6cf
      Jérome Perrin authored
      This method returns the class of computer used for the test, then
      it's easier for test subclasses to use a computer with different
      classes for software and instances.
      
      Use this in TestSlapgridPluginPromiseWithInstancePython, using
      subclasses instead of monkey patching should make extending this
      test a bit easier
      b01cc6cf
    • Jérome Perrin's avatar