Skip to content

Commit

Permalink
Start with read-only
Browse files Browse the repository at this point in the history
  • Loading branch information
morenol committed Sep 11, 2023
1 parent dc1b101 commit c49846f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -633,8 +633,12 @@ jobs:
./k8-util/cluster/reset-k3d.sh
- name: Start fluvio cluster
timeout-minutes: 10
if: matrix.test != 'smoke-test-tls'
if: matrix.test != 'smoke-test-tls' && matrix.test != 'read-only'
run: fluvio cluster start --local --develop --spu ${{ matrix.spu }} --rust-log ${{ env.SERVER_LOG }}
- name: Start fluvio cluster
timeout-minutes: 10
if: matrix.test != 'smoke-test-tls' && matrix.test == 'read-only'
run: fluvio cluster start --local --develop --spu ${{ matrix.spu }} --rust-log ${{ env.SERVER_LOG }} --read-only
- name: Start fluvio cluster TLS
if: matrix.test == 'smoke-test-tls'
timeout-minutes: 10
Expand Down
2 changes: 2 additions & 0 deletions crates/fluvio-test/src/tests/read_only/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ pub async fn read_only(mut test_driver: TestDriver, mut test_case: TestCase) {
panic!("Should faild to create topic");
}
Err(err) => {
let e = err.to_string();
assert!(e.contains("unable to write on read-only configuration"));
println!("Got expected error: {}", err);
}
}
Expand Down

0 comments on commit c49846f

Please sign in to comment.