From 72165d5cdf584e5e32ca9b9e1c0340cdc18fe272 Mon Sep 17 00:00:00 2001 From: Maciej Mensfeld Date: Wed, 6 Sep 2023 11:50:05 +0200 Subject: [PATCH] more specs --- spec/lib/karafka/web/ui/controllers/status_spec.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/spec/lib/karafka/web/ui/controllers/status_spec.rb b/spec/lib/karafka/web/ui/controllers/status_spec.rb index e8936573..bbb8288d 100644 --- a/spec/lib/karafka/web/ui/controllers/status_spec.rb +++ b/spec/lib/karafka/web/ui/controllers/status_spec.rb @@ -45,5 +45,16 @@ expect(body).to include('Warning') end end + + context 'when replication factor is less than 2 in non-production' do + before { get 'status' } + + it do + expect(response).to be_ok + expect(body).to include(support_message) + expect(body).to include(breadcrumbs) + expect(body).not_to include('Please ensure all those topics have a replication') + end + end end end