diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 57ff5ac26e1..38e3b494f9c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1117,18 +1117,24 @@ jobs: uses: actions/download-artifact@v3 with: name: fluvio-run-x86_64-unknown-linux-musl - path: ~/.fluvio/extensions + path: ~/extensions + - run: | chmod +x ~/bin/fluvio + chmod +x ~/extensions/fluvio-run + mkdir -p ~/.fluvio/bin + mkdir -p ~/.fluvio/extensions + mv ~/bin/fluvio ~/.fluvio/bin/fluvio + mv ~/extensions/fluvio-run ~/.fluvio/extensions/fluvio-run - name: Start cluster in read-only mode run: | ~/.fluvio/bin/fluvio cluster start --read-only crates/fluvio-cluster/test-data/metadata.json - name: Run Fluvio read-only tests - run: make FLUVIO_BIN=/home/runner/bin/fluvio cli-fluvio-read-only-smoke + run: make FLUVIO_BIN=/home/runner/.fluvio/bin/fluvio cli-fluvio-read-only-smoke - name: Print SC logs if: ${{ !success() }} diff --git a/tests/cli/fluvio_read_only/basic.bats b/tests/cli/fluvio_read_only/basic.bats index 77b3fe9051a..38b3840611d 100644 --- a/tests/cli/fluvio_read_only/basic.bats +++ b/tests/cli/fluvio_read_only/basic.bats @@ -25,23 +25,20 @@ teardown_file() { run timeout 15s "$FLUVIO_BIN" cluster shutdown --local } -# Create topic -@test "Create a topic" { +@test "Cannot create a new topic" { debug_msg "topic: $TOPIC_NAME" run timeout 15s "$FLUVIO_BIN" topic create other-topic - assert_success + assert_output --partial "permission denied" } # Produce message -@test "Produce message" { +@test "Can produce message in existing topic" { run bash -c 'echo "$MESSAGE" | timeout 15s "$FLUVIO_BIN" produce "$TOPIC_NAME"' assert_success } -# Consume message and compare message -# Warning: Adding anything extra to the `debug_msg` skews the message comparison -@test "Consume message" { +@test "Can consume message in existing topic" { run timeout 15s "$FLUVIO_BIN" consume "$TOPIC_NAME" -B -d assert_output --partial "$MESSAGE"