2022-03-02 08:16:31 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
RSpec.describe ClusterAgentQueue do
|
|
|
|
let(:worker) do
|
|
|
|
Class.new do
|
|
|
|
def self.name
|
|
|
|
'ExampleWorker'
|
|
|
|
end
|
|
|
|
|
|
|
|
include ApplicationWorker
|
|
|
|
include ClusterAgentQueue
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2022-11-25 23:54:43 +05:30
|
|
|
it { expect(worker.queue).to eq('cluster_agent:example') }
|
2022-03-02 08:16:31 +05:30
|
|
|
it { expect(worker.get_feature_category).to eq(:kubernetes_management) }
|
|
|
|
end
|