diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3bce94e..53749b5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/modevo.properties b/modevo.properties index a220ce8..3bba1f4 100644 --- a/modevo.properties +++ b/modevo.properties @@ -1,4 +1,4 @@ ip=localhost port=9042 -user=usercassandra -password=passwordcassandra \ No newline at end of file +user= +password= \ No newline at end of file