2021-11-11 11:23:49 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
RSpec.describe Clusters::Agents::ImplicitAuthorization do
|
|
|
|
let_it_be(:agent) { create(:cluster_agent) }
|
|
|
|
|
|
|
|
subject { described_class.new(agent: agent) }
|
|
|
|
|
|
|
|
it { expect(subject.agent).to eq(agent) }
|
|
|
|
it { expect(subject.agent_id).to eq(agent.id) }
|
2021-11-18 22:05:49 +05:30
|
|
|
it { expect(subject.config_project).to eq(agent.project) }
|
2021-11-11 11:23:49 +05:30
|
|
|
it { expect(subject.config).to be_nil }
|
|
|
|
end
|