diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-15 23:53:27 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-15 23:53:27 +0300 |
commit | 601cd5b4c0395abadeda5cfaf3b269b12662f743 (patch) | |
tree | e2e4a53982150ffca0baa7f8f749f1689acc1b71 /spec/frontend/clusters_list/components/agent_token_spec.js | |
parent | 7fc80ce5a5d21d2ba452eefabb02a2c8f7eb86ea (diff) |
Add latest changes from gitlab-org/gitlab@15-0-stable-ee
Diffstat (limited to 'spec/frontend/clusters_list/components/agent_token_spec.js')
-rw-r--r-- | spec/frontend/clusters_list/components/agent_token_spec.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/frontend/clusters_list/components/agent_token_spec.js b/spec/frontend/clusters_list/components/agent_token_spec.js index 7f6ec2eb3a2..cdd94d33545 100644 --- a/spec/frontend/clusters_list/components/agent_token_spec.js +++ b/spec/frontend/clusters_list/components/agent_token_spec.js @@ -8,6 +8,7 @@ import ModalCopyButton from '~/vue_shared/components/modal_copy_button.vue'; const kasAddress = 'kas.example.com'; const agentToken = 'agent-token'; +const kasVersion = '15.0.0'; const modalId = INSTALL_AGENT_MODAL_ID; describe('InstallAgentModal', () => { @@ -21,6 +22,7 @@ describe('InstallAgentModal', () => { const createWrapper = () => { const provide = { kasAddress, + kasVersion, }; const propsData = { @@ -59,7 +61,7 @@ describe('InstallAgentModal', () => { it('renders a copy button', () => { expect(findCopyButton().props()).toMatchObject({ title: 'Copy command', - text: generateAgentRegistrationCommand(agentToken, kasAddress), + text: generateAgentRegistrationCommand(agentToken, kasAddress, kasVersion), modalId, }); }); @@ -71,6 +73,7 @@ describe('InstallAgentModal', () => { it('shows code block with agent installation command', () => { expect(findCodeBlock().props('code')).toContain(`--set config.token=${agentToken}`); expect(findCodeBlock().props('code')).toContain(`--set config.kasAddress=${kasAddress}`); + expect(findCodeBlock().props('code')).toContain(`--set image.tag=v${kasVersion}`); }); }); }); |