1. 29 Oct, 2019 1 commit
    • Oran Agra's avatar
      test infra: improve prints on failed assertions · a0cfd519
      Oran Agra authored
      sometimes we have several assertions with the same condition in the same test
      at different stages, and when these fail (the ones that print the condition
      text) you don't know which one it was. other assertions didn't print the
      condition text (variable names), just the expected and unexpected values.
      
      So now, all assertions print context line, and conditin text.
      
      besides, one of the major differences between 'assert' and 'assert_equal',
      is that the later is able to print the value that doesn't match the expected.
      if there is a rare non-reproducible failure, it is helpful to know what was
      the value the test encountered and how far it was from the threshold.
      
      So now, adding assert_lessthan and assert_range that can be used in some places.
      were we used just 'assert { a > b }' so far.
      a0cfd519
  2. 07 Oct, 2019 2 commits
    • Yossi Gottlieb's avatar
      TLS: Configuration options. · 61733ded
      Yossi Gottlieb authored
      Add configuration options for TLS protocol versions, ciphers/cipher
      suites selection, etc.
      61733ded
    • Yossi Gottlieb's avatar
      TLS: Connections refactoring and TLS support. · b087dd1d
      Yossi Gottlieb authored
      * Introduce a connection abstraction layer for all socket operations and
      integrate it across the code base.
      * Provide an optional TLS connections implementation based on OpenSSL.
      * Pull a newer version of hiredis with TLS support.
      * Tests, redis-cli updates for TLS support.
      b087dd1d
  3. 30 Sep, 2019 1 commit
  4. 17 Jul, 2019 1 commit
    • Oran Agra's avatar
      prevent diskless replica from terminating on short read · c56b4ddc
      Oran Agra authored
      now that replica can read rdb directly from the socket, it should avoid exiting
      on short read and instead try to re-sync.
      
      this commit tries to have minimal effects on non-diskless rdb reading.
      and includes a test that tries to trigger this scenario on various read cases.
      c56b4ddc
  5. 08 Jul, 2019 1 commit
    • Oran Agra's avatar
      diskless replication on slave side (don't store rdb to file), plus some other related fixes · 2de544cf
      Oran Agra authored
      The implementation of the diskless replication was currently diskless only on the master side.
      The slave side was still storing the received rdb file to the disk before loading it back in and parsing it.
      
      This commit adds two modes to load rdb directly from socket:
      1) when-empty
      2) using "swapdb"
      the third mode of using diskless slave by flushdb is risky and currently not included.
      
      other changes:
      --------------
      distinguish between aof configuration and state so that we can re-enable aof only when sync eventually
      succeeds (and not when exiting from readSyncBulkPayload after a failed attempt)
      also a CONFIG GET and INFO during rdb loading would have lied
      
      When loading rdb from the network, don't kill the server on short read (that can be a network error)
      
      Fix rdb check when performed on preamble AOF
      
      tests:
      run replication tests for diskless slave too
      make replication test a bit more aggressive
      Add test for diskless load swapdb
      2de544cf
  6. 12 Nov, 2018 1 commit
  7. 04 Sep, 2018 1 commit
  8. 30 Jul, 2018 1 commit
    • Oran Agra's avatar
      test suite conveniency improvements · 78292876
      Oran Agra authored
      * allowing --single to be repeated
      * adding --only so that only a specific test inside a unit can be run
      * adding --skiptill useful to resume a test that crashed passed the problematic unit.
        useful together with --clients 1
      * adding --skipfile to use a file containing list of tests names to skip
      * printing the names of the tests that are skiped by skipfile or denytags
      * adding --config to add config file options from command line
      78292876
  9. 13 Jul, 2018 2 commits
  10. 26 Jun, 2018 1 commit
    • Oran Agra's avatar
      test suite infra improvements and fix · 751eea24
      Oran Agra authored
      * fail the test (exit code) in case of timeout.
      * add --wait-server to allow attaching a debugger
      * add --dont-clean to keep log files when tests are done
      751eea24
  11. 19 Dec, 2016 1 commit
  12. 25 Apr, 2016 1 commit
  13. 02 Feb, 2016 1 commit
  14. 01 Oct, 2015 1 commit
  15. 05 Aug, 2015 1 commit
  16. 31 Mar, 2015 1 commit
  17. 21 Jan, 2015 1 commit
  18. 09 Jan, 2015 1 commit
  19. 02 Jan, 2015 1 commit
  20. 28 Nov, 2014 2 commits
    • antirez's avatar
      Test: wait for actual startup in start_server. · fe0d3719
      antirez authored
      start_server now uses return value from Tcl exec to get the server pid,
      however this introduces errors that depend from timing: a lot of the
      testing code base assumed the server to be actually up and running when
      server_start returns.
      
      So the old code that waits to see the pid in the log file was restored.
      fe0d3719
    • antirez's avatar
      Test: try to cleanup still running Redis instances on exit. · bd3a5161
      antirez authored
      It's hard to run the Redis test continuously if it leaks processes on
      exceptions / errors.
      bd3a5161
  21. 29 Sep, 2014 2 commits
  22. 25 Aug, 2014 1 commit
  23. 10 Jul, 2014 1 commit
  24. 30 Jun, 2014 1 commit
  25. 18 Jun, 2014 2 commits
  26. 23 May, 2014 1 commit
    • Matt Stancliff's avatar
      Fix test framework to detect proper server PID · 6c16ecaa
      Matt Stancliff authored
      Previously the PID format was:
      [PID] Timestamp
      
      But it recently changed to:
      PID:X Timestamp
      
      The tcl testing framework was grabbing the PID from \[\d+\], but
      that's not valid anymore.
      
      Now we grab the pid from "PID: <PID>" in the part of Redis startup
      output to the right of the ASCII logo.
      6c16ecaa
  27. 14 May, 2014 1 commit
  28. 13 May, 2014 2 commits
  29. 07 May, 2014 1 commit
    • antirez's avatar
      Test: handle new osx 'leaks' error. · 088b9ead
      antirez authored
      Sometimes the process is still there but no longer in a state that can
      be checked (after being killed). This used to happen after a call to
      SHUTDOWN NOSAVE in the scripting unit, causing a false positive.
      088b9ead
  30. 02 May, 2014 4 commits
  31. 30 Apr, 2014 1 commit