Skip to content

Commit

Permalink
Removed override of credentials requirements for GitHub actions
Browse files Browse the repository at this point in the history
container
  • Loading branch information
pablo committed Apr 24, 2024
1 parent faadb70 commit c15bfee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,8 @@ jobs:
docker run --name test-cassandra -d -p 9042:9042 \
-v ${GITHUB_WORKSPACE}/modevo-script/dat/inp/creationSchema.cql:/creationSchema.cql \
cassandra:3.11
docker run --name test-cassandra -d -p 9042:9042 cassandra:3.11
chmod u+x setup/wait-container-ready.sh && ./setup/wait-container-ready.sh test-cassandra 1 "Created default superuser role"
docker exec test-cassandra sh -c "sed 's/authenticator:.*/authenticator: PasswordAuthenticator/' /etc/cassandra/cassandra.yaml > /etc/cassandra/cassandra_temp.yaml && mv /etc/cassandra/cassandra_temp.yaml /etc/cassandra/cassandra.yaml"
docker exec test-cassandra sh -c "sed 's/authorizer:.*/authorizer: CassandraAuthorizer/' /etc/cassandra/cassandra.yaml > /etc/cassandra/cassandra_temp.yaml && mv /etc/cassandra/cassandra_temp.yaml /etc/cassandra/cassandra.yaml"
docker exec test-cassandra sh -c " echo "cassandra.superuser_setup_delay_ms: 0" >> /etc/cassandra/jvm.options"
docker exec test-cassandra nodetool flush
docker restart test-cassandra
chmod u+x setup/wait-container-ready.sh && ./setup/wait-container-ready.sh test-cassandra 2 "Startup complete"
docker exec test-cassandra cqlsh localhost 9042 -u cassandra -p cassandra -e "CREATE ROLE usercassandra WITH PASSWORD = 'passwordcassandra' AND LOGIN = true;"
docker exec test-cassandra cqlsh localhost 9042 -u cassandra -p cassandra -e "GRANT ALL PERMISSIONS on ALL KEYSPACES to usercassandra;"
docker exec test-cassandra cqlsh localhost 9042 -u cassandra -p cassandra -f creationSchema.cql
- name: Test and aggregate surefire report
run: mvn test -Daggregate=true -Dmaven.test.failure.ignore=true -U --no-transfer-progress
Expand Down
4 changes: 2 additions & 2 deletions modevo.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ip=localhost
port=9042
user=usercassandra
password=passwordcassandra
user=
password=

0 comments on commit c15bfee

Please sign in to comment.