Skip to content

Commit

Permalink
added DseAuthenticator to list of approved authenticators
Browse files Browse the repository at this point in the history
  • Loading branch information
craveica committed Mar 23, 2017
1 parent c043047 commit b3a9895
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ var (
approvedAuthenticators = [...]string{
"org.apache.cassandra.auth.PasswordAuthenticator",
"com.instaclustr.cassandra.auth.SharedSecretAuthenticator",
"com.datastax.bdp.cassandra.auth.DseAuthenticator",
}
)

Expand Down
1 change: 1 addition & 0 deletions conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func TestApprove(t *testing.T) {
tests := map[bool]bool{
approve("org.apache.cassandra.auth.PasswordAuthenticator"): true,
approve("com.instaclustr.cassandra.auth.SharedSecretAuthenticator"): true,
approve("com.datastax.bdp.cassandra.auth.DseAuthenticator"): true,
approve("com.apache.cassandra.auth.FakeAuthenticator"): false,
}
for k, v := range tests {
Expand Down

0 comments on commit b3a9895

Please sign in to comment.