Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [amos@amos-centos7 scylla-dtest]$ sh run_new_auth.sh
- /home/amos/space/scylla-dtest
- /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
- 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
- db/bin:/opt/scylladb/sbin:/home/amos/.ccm/repository/5.1.5/bin
- /home/amos/space/scylla-ccm
- /home/amos/space/scylla/build/release/
- Examples:
- === To run a simple boot and shutdown test:
- nosetests -v -s simple_boot_shutdown.py
- === To run a test and keep the cluster data
- KEEP_TEST_DIR=true REUSE_CLUSTER=false nosetests -v -s simple_boot_shutdown.py
- === To remove dtest produced clsuter data
- ls -l ~/.dtest; rm -rf ~/.dtest
- going to run tests sequentially
- cluster ccm directory: /home/amos/.dtest/dtest-8td9hw
- STEP: start cluster with default AllowAllAuthenticator/AllowAllAuthorizer
- STEP: update conf and restart cluster to use TransitionalAuthenticator/TransitionalAuthorizer
- STEP: create normal user by super cassandra
- STEP: check permissions (LIST/CREATE/GRANT/REVOKE) of normal user
- STEP: verify user will login as anonymous if authentication fails
- STEP: verify user without credentials can not login
- ('Unable to connect to any servers', {'127.0.0.1': AuthenticationFailed('RRemote end requires authentication.',)})
- STEP: update conf and restart cluster to use strict PasswordAuthenticator/CassandraAuthorizer
- STEP: verify user without credentials or with wrong credentials can not login
- ('Unable to connect to any servers', {'127.0.0.1': AuthenticationFailed('RRemote end requires authentication.',)})
- ('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
- ad credentials] message="authentication failed"',)})
- .
- ----------------------------------------------------------------------
- Ran 1 test in 304.563s
- OK
- /home/amos/space/scylla-dtest
- /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
- /home/amos/space/scylla-ccm
- /home/amos/space/scylla/build/release/
- Examples:
- === To run a simple boot and shutdown test:
- nosetests -v -s simple_boot_shutdown.py
- === To run a test and keep the cluster data
- KEEP_TEST_DIR=true REUSE_CLUSTER=false nosetests -v -s simple_boot_shutdown.py
- === To remove dtest produced clsuter data
- ls -l ~/.dtest; rm -rf ~/.dtest
- going to run tests sequentially
- cluster ccm directory: /home/amos/.dtest/dtest-XeFB7D
- STEP: start cluster with PasswordAuthenticator/CassandraAuthorizer
- Default role created by node1
- STEP: create normal user by super cassandra
- Verified normal user was created and available
- STEP: verify user without credentials can not login
- ('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
- ad credentials] message="authentication failed"',)})
- STEP: update conf and restart cluster to use TransitionalAuthenticator/TransitionalAuthorizer
- STEP: check permissions (LIST/CREATE/GRANT/REVOKE) of normal user
- STEP: verify user will login as anonymous if authentication fails
- STEP: verify user without credentials can not login
- ('Unable to connect to any servers', {'127.0.0.1': AuthenticationFailed('RRemote end requires authentication.',)})
- STEP: update conf and restart cluster to use AllowAllAuthenticator/AllowAllAuthorizer
- STEP: verify all users will login as anonymous
- .
- ----------------------------------------------------------------------
- Ran 1 test in 243.960s
- OK
- /home/amos/space/scylla-dtest
- /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
- 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
- db/bin:/opt/scylladb/sbin:/home/amos/.ccm/repository/5.1.5/bin
- /home/amos/space/scylla-ccm
- /home/amos/space/scylla/build/release/
- Examples:
- === To run a simple boot and shutdown test:
- nosetests -v -s simple_boot_shutdown.py
- === To run a test and keep the cluster data
- KEEP_TEST_DIR=true REUSE_CLUSTER=false nosetests -v -s simple_boot_shutdown.py
- === To remove dtest produced clsuter data
- ls -l ~/.dtest; rm -rf ~/.dtest
- going to run tests sequentially
- cluster ccm directory: /home/amos/.dtest/dtest-PIOpwR
- STEP: start cluster with default AllowAllAuthenticator/AllowAllAuthorizer
- STEP: update config and restart node1 to enable Transitional Auth
- STEP: (on node1) verify normal user has permission to list users
- STEP: (on node1) verify user will login as anonymous if authentication fails
- STEP: (on node2) verify all users will login as anonymous if authentication fails
- .
- ----------------------------------------------------------------------
- Ran 1 test in 35.079s
- OK
- /home/amos/space/scylla-dtest
- /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
- /home/amos/space/scylla-ccm
- /home/amos/space/scylla/build/release/
- Examples:
- === To run a simple boot and shutdown test:
- nosetests -v -s simple_boot_shutdown.py
- === To run a test and keep the cluster data
- KEEP_TEST_DIR=true REUSE_CLUSTER=false nosetests -v -s simple_boot_shutdown.py
- === To remove dtest produced clsuter data
- ls -l ~/.dtest; rm -rf ~/.dtest
- going to run tests sequentially
- cluster ccm directory: /home/amos/.dtest/dtest-1TgjM5
- STEP: start cluster with PasswordAuthenticator/CassandraAuthorizer
- Default role created by node1
- STEP: create normal user (normal) by super cassandra
- Verified normal was created, and available
- STEP: update config and restart node1 to enable Transitional Auth
- STEP: (on node1) verify all users will login as anonymous if authentication fails
- can't get session of node2 with normal user/password
- .
- ----------------------------------------------------------------------
- Ran 1 test in 94.227s
- OK
- [amos@amos-centos7 scylla-dtest]$
Add Comment
Please, Sign In to add comment