test_constants.rb 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. USER_A_NICK = 'NetworkAUserA'
  2. USER_B_NICK = 'NetworkAUserB'
  3. USER_C_NICK = 'NetworkAUserC'
  4. USER_D_NICK = 'NetworkAUserD'
  5. USER_C_PARAMS = { :nick => USER_D_NICK }
  6. CLIENT_A_NAME = 'NetworkA ChannelA GroupA'
  7. CLIENT_B_NAME = 'NetworkB ChannelB GroupB'
  8. CLIENT_C_NAME = 'NetworkC ChannelC GroupC'
  9. # CLIENT_A_PARAMS = { :name => CLIENT_A_NAME }
  10. # CLIENT_B_PARAMS = { :name => CLIENT_B_NAME }
  11. # CLIENT_C_PARAMS = { :name => CLIENT_C_NAME }
  12. IRCCLIENT_A_SECRET = 'changeme'
  13. SIMCLIENT_A_SECRET = 'changemetoo'
  14. ROOM_A_SECRET = 'changeme'
  15. ROOM_B_SECRET = 'changemetoo'
  16. MESSAGE_A_TEXT = "MESSAGE_A_TEXT"
  17. MESSAGE_B_TEXT = "MESSAGE_B_TEXT"
  18. MESSAGE_C_TEXT = "MESSAGE_C_TEXT"
  19. MESSAGE_D_TEXT = "MESSAGE_D_TEXT"
  20. # MESSAGE_A_PARAMS = { :text => MESSAGE_A_TEXT }
  21. # MESSAGE_B_PARAMS = { :text => MESSAGE_B_TEXT }
  22. CLIENT_PARAMS_MISSING_NAME = { :type => 'IrcClient' ,
  23. :nicks => USER_A_NICK }
  24. CLIENT_PARAMS_EMPTY_NAME = { :name => '' ,
  25. :nicks => USER_A_NICK ,
  26. :type => 'IrcClient' }
  27. CLIENT_PARAMS_MISSING_NICKS = { :name => CLIENT_C_NAME ,
  28. :type => 'IrcClient' }
  29. CLIENT_PARAMS_EMPTY_NICKS = { :name => CLIENT_C_NAME ,
  30. :nicks => '' ,
  31. :type => 'IrcClient' }
  32. CLIENT_PARAMS_MISSING_TYPE = { :name => CLIENT_C_NAME ,
  33. :nicks => USER_A_NICK }
  34. CLIENT_PARAMS_EMPTY_TYPE = { :name => CLIENT_C_NAME ,
  35. :nicks => USER_A_NICK ,
  36. :type => '' }
  37. CLIENT_A_PARAMS_VALID = { :name => CLIENT_A_NAME ,
  38. :nicks => USER_A_NICK ,
  39. :type => 'IrcClient' }
  40. CLIENT_B_PARAMS_VALID = { :name => CLIENT_B_NAME ,
  41. :nicks => USER_B_NICK ,
  42. :type => 'SimClient' }
  43. CLIENT_C_PARAMS_VALID = { :name => CLIENT_C_NAME ,
  44. :nicks => "#{USER_C_NICK},#{USER_D_NICK}" ,
  45. :type => 'SimClient' }
  46. MESSAGE_PARAMS_MISSING_NICK = { :text => MESSAGE_A_TEXT }
  47. MESSAGE_PARAMS_EMPTY_NICK = { :nick => '' ,
  48. :text => MESSAGE_A_TEXT }
  49. MESSAGE_PARAMS_MISSING_TEXT = { :nick => USER_A_NICK }
  50. MESSAGE_PARAMS_EMPTY_TEXT = { :nick => USER_A_NICK ,
  51. :text => '' }
  52. MESSAGE_PARAMS_VALID = { :nick => USER_A_NICK ,
  53. :text => MESSAGE_A_TEXT }
  54. HTTP_STATUS_REJECTED = 420