Guest User

Untitled

a guest
Feb 19th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.36 KB | None | 0 0
  1. [amos@amos-centos7 scylla-dtest]$ sh run_new_auth.sh
  2. /home/amos/space/scylla-dtest
  3. /home/amos/space/scylla-ccm:/usr/local/texlive/2017/bin/x86_64-linux:/usr/local/texlive/2017/bin/x86_64-linux:/usr/local/bin:/usr/bin:/usr/lo
  4. cal/sbin:/usr/sbin:/opt/scylladb/bin:/opt/scylladb/sbin:/home/amos/.ccm/repository/5.1.5/bin:/home/amos/.local/bin:/home/amos/bin:/opt/scylla
  5. db/bin:/opt/scylladb/sbin:/home/amos/.ccm/repository/5.1.5/bin
  6. /home/amos/space/scylla-ccm
  7. /home/amos/space/scylla/build/release/
  8. Examples:
  9. === To run a simple boot and shutdown test:
  10. nosetests -v -s simple_boot_shutdown.py
  11.  
  12. === To run a test and keep the cluster data
  13. KEEP_TEST_DIR=true REUSE_CLUSTER=false nosetests -v -s simple_boot_shutdown.py
  14.  
  15. === To remove dtest produced clsuter data
  16. ls -l ~/.dtest; rm -rf ~/.dtest
  17. going to run tests sequentially
  18. cluster ccm directory: /home/amos/.dtest/dtest-8td9hw
  19. STEP: start cluster with default AllowAllAuthenticator/AllowAllAuthorizer
  20. STEP: update conf and restart cluster to use TransitionalAuthenticator/TransitionalAuthorizer
  21. STEP: create normal user by super cassandra
  22. STEP: check permissions (LIST/CREATE/GRANT/REVOKE) of normal user
  23. STEP: verify user will login as anonymous if authentication fails
  24. STEP: verify user without credentials can not login
  25. ('Unable to connect to any servers', {'127.0.0.1': AuthenticationFailed('RRemote end requires authentication.',)})
  26. STEP: update conf and restart cluster to use strict PasswordAuthenticator/CassandraAuthorizer
  27. STEP: verify user without credentials or with wrong credentials can not login
  28. ('Unable to connect to any servers', {'127.0.0.1': AuthenticationFailed('RRemote end requires authentication.',)})
  29. ('Unable to connect to any servers', {'127.0.0.1': AuthenticationFailed('Failed to authenticate to 127.0.0.1: Error from server: code=0100 [B
  30. ad credentials] message="authentication failed"',)})
  31. .
  32. ----------------------------------------------------------------------
  33. Ran 1 test in 304.563s
  34.  
  35. OK
  36. /home/amos/space/scylla-dtest
  37. /home/amos/space/scylla-ccm:/usr/local/texlive/2017/bin/x86_64-linux:/usr/local/texlive/2017/bin/x86_64-linux:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/scylladb/bin:/opt/scylladb/sbin:/home/amos/.ccm/repository/5.1.5/bin:/home/amos/.local/bin:/home/amos/bin:/opt/scylladb/bin:/opt/scylladb/sbin:/home/amos/.ccm/repository/5.1.5/bin
  38. /home/amos/space/scylla-ccm
  39. /home/amos/space/scylla/build/release/
  40. Examples:
  41. === To run a simple boot and shutdown test:
  42. nosetests -v -s simple_boot_shutdown.py
  43.  
  44. === To run a test and keep the cluster data
  45. KEEP_TEST_DIR=true REUSE_CLUSTER=false nosetests -v -s simple_boot_shutdown.py
  46.  
  47. === To remove dtest produced clsuter data
  48. ls -l ~/.dtest; rm -rf ~/.dtest
  49. going to run tests sequentially
  50. cluster ccm directory: /home/amos/.dtest/dtest-XeFB7D
  51. STEP: start cluster with PasswordAuthenticator/CassandraAuthorizer
  52. Default role created by node1
  53. STEP: create normal user by super cassandra
  54. Verified normal user was created and available
  55. STEP: verify user without credentials can not login
  56. ('Unable to connect to any servers', {'127.0.0.1': AuthenticationFailed('Failed to authenticate to 127.0.0.1: Error from server: code=0100 [B
  57. ad credentials] message="authentication failed"',)})
  58. STEP: update conf and restart cluster to use TransitionalAuthenticator/TransitionalAuthorizer
  59. STEP: check permissions (LIST/CREATE/GRANT/REVOKE) of normal user
  60. STEP: verify user will login as anonymous if authentication fails
  61. STEP: verify user without credentials can not login
  62. ('Unable to connect to any servers', {'127.0.0.1': AuthenticationFailed('RRemote end requires authentication.',)})
  63. STEP: update conf and restart cluster to use AllowAllAuthenticator/AllowAllAuthorizer
  64. STEP: verify all users will login as anonymous
  65. .
  66. ----------------------------------------------------------------------
  67. Ran 1 test in 243.960s
  68.  
  69. OK
  70. /home/amos/space/scylla-dtest
  71. /home/amos/space/scylla-ccm:/usr/local/texlive/2017/bin/x86_64-linux:/usr/local/texlive/2017/bin/x86_64-linux:/usr/local/bin:/usr/bin:/usr/lo
  72. cal/sbin:/usr/sbin:/opt/scylladb/bin:/opt/scylladb/sbin:/home/amos/.ccm/repository/5.1.5/bin:/home/amos/.local/bin:/home/amos/bin:/opt/scylla
  73. db/bin:/opt/scylladb/sbin:/home/amos/.ccm/repository/5.1.5/bin
  74. /home/amos/space/scylla-ccm
  75. /home/amos/space/scylla/build/release/
  76. Examples:
  77. === To run a simple boot and shutdown test:
  78. nosetests -v -s simple_boot_shutdown.py
  79.  
  80. === To run a test and keep the cluster data
  81. KEEP_TEST_DIR=true REUSE_CLUSTER=false nosetests -v -s simple_boot_shutdown.py
  82.  
  83. === To remove dtest produced clsuter data
  84. ls -l ~/.dtest; rm -rf ~/.dtest
  85. going to run tests sequentially
  86. cluster ccm directory: /home/amos/.dtest/dtest-PIOpwR
  87. STEP: start cluster with default AllowAllAuthenticator/AllowAllAuthorizer
  88. STEP: update config and restart node1 to enable Transitional Auth
  89. STEP: (on node1) verify normal user has permission to list users
  90. STEP: (on node1) verify user will login as anonymous if authentication fails
  91. STEP: (on node2) verify all users will login as anonymous if authentication fails
  92. .
  93. ----------------------------------------------------------------------
  94. Ran 1 test in 35.079s
  95.  
  96. OK
  97. /home/amos/space/scylla-dtest
  98. /home/amos/space/scylla-ccm:/usr/local/texlive/2017/bin/x86_64-linux:/usr/local/texlive/2017/bin/x86_64-linux:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/scylladb/bin:/opt/scylladb/sbin:/home/amos/.ccm/repository/5.1.5/bin:/home/amos/.local/bin:/home/amos/bin:/opt/scylladb/bin:/opt/scylladb/sbin:/home/amos/.ccm/repository/5.1.5/bin
  99. /home/amos/space/scylla-ccm
  100. /home/amos/space/scylla/build/release/
  101. Examples:
  102. === To run a simple boot and shutdown test:
  103. nosetests -v -s simple_boot_shutdown.py
  104.  
  105. === To run a test and keep the cluster data
  106. KEEP_TEST_DIR=true REUSE_CLUSTER=false nosetests -v -s simple_boot_shutdown.py
  107.  
  108. === To remove dtest produced clsuter data
  109. ls -l ~/.dtest; rm -rf ~/.dtest
  110. going to run tests sequentially
  111. cluster ccm directory: /home/amos/.dtest/dtest-1TgjM5
  112. STEP: start cluster with PasswordAuthenticator/CassandraAuthorizer
  113. Default role created by node1
  114. STEP: create normal user (normal) by super cassandra
  115. Verified normal was created, and available
  116. STEP: update config and restart node1 to enable Transitional Auth
  117. STEP: (on node1) verify all users will login as anonymous if authentication fails
  118. can't get session of node2 with normal user/password
  119. .
  120. ----------------------------------------------------------------------
  121. Ran 1 test in 94.227s
  122.  
  123. OK
  124. [amos@amos-centos7 scylla-dtest]$
Add Comment
Please, Sign In to add comment