2019-11-01 17:06:43 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-16 14:09:01 -04:00
|
|
|
RSpec.describe 'Instance-level AWS EKS Cluster', :js do
|
2019-11-01 17:06:43 -04:00
|
|
|
let(:user) { create(:admin) }
|
|
|
|
|
|
|
|
before do
|
|
|
|
sign_in(user)
|
2020-11-23 10:09:37 -05:00
|
|
|
gitlab_enable_admin_mode_sign_in(user)
|
2019-11-01 17:06:43 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
context 'when user does not have a cluster and visits group clusters page' do
|
|
|
|
before do
|
|
|
|
visit admin_clusters_path
|
|
|
|
|
2020-10-01 14:10:20 -04:00
|
|
|
click_link 'Integrate with a cluster certificate'
|
2019-11-01 17:06:43 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
context 'when user creates a cluster on AWS EKS' do
|
|
|
|
before do
|
|
|
|
click_link 'Amazon EKS'
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'user sees a form to create an EKS cluster' do
|
2019-12-17 19:08:09 -05:00
|
|
|
expect(page).to have_content('Create new cluster on EKS')
|
2019-11-01 17:06:43 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|