summaryrefslogtreecommitdiff
path: root/spec/frontend/packages_and_registries/infrastructure_registry
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-07-08 13:05:05 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-07-08 13:05:05 +0000
commit8fa311a5de24a28d8190b0a038fb893e71184eb2 (patch)
treeae489a4ab340f24312cc1d968f74e5b22ac094d4 /spec/frontend/packages_and_registries/infrastructure_registry
parent0fabe9336cf7cf2a31156931e716e84fc45e842f (diff)
downloadgitlab-ce-8fa311a5de24a28d8190b0a038fb893e71184eb2.tar.gz
Add latest changes from gitlab-org/gitlab@14-0-stable-ee
Diffstat (limited to 'spec/frontend/packages_and_registries/infrastructure_registry')
-rw-r--r--spec/frontend/packages_and_registries/infrastructure_registry/components/__snapshots__/terraform_installation_spec.js.snap4
-rw-r--r--spec/frontend/packages_and_registries/infrastructure_registry/components/terraform_installation_spec.js5
2 files changed, 5 insertions, 4 deletions
diff --git a/spec/frontend/packages_and_registries/infrastructure_registry/components/__snapshots__/terraform_installation_spec.js.snap b/spec/frontend/packages_and_registries/infrastructure_registry/components/__snapshots__/terraform_installation_spec.js.snap
index 427160b45e3..16d148bbea4 100644
--- a/spec/frontend/packages_and_registries/infrastructure_registry/components/__snapshots__/terraform_installation_spec.js.snap
+++ b/spec/frontend/packages_and_registries/infrastructure_registry/components/__snapshots__/terraform_installation_spec.js.snap
@@ -11,7 +11,7 @@ exports[`TerraformInstallation renders all the messages 1`] = `
<code-instruction-stub
copytext="Copy Terraform Command"
instruction="module \\"Test/system-22\\" {
- source = \\"foo/Test/system-22\\"
+ source = \\"bar.dev/foo/Test/system-22\\"
version = \\"0.1\\"
}"
label="Copy and paste into your Terraform configuration, insert the variables, and run Terraform init:"
@@ -28,7 +28,7 @@ exports[`TerraformInstallation renders all the messages 1`] = `
<code-instruction-stub
copytext="Copy Terraform Setup Command"
- instruction="credentials \\"gitlab.com\\" {
+ instruction="credentials \\"bar.dev\\" {
token = \\"<TOKEN>\\"
}"
label="To authorize access to the Terraform registry:"
diff --git a/spec/frontend/packages_and_registries/infrastructure_registry/components/terraform_installation_spec.js b/spec/frontend/packages_and_registries/infrastructure_registry/components/terraform_installation_spec.js
index 7a129794d54..d527587da16 100644
--- a/spec/frontend/packages_and_registries/infrastructure_registry/components/terraform_installation_spec.js
+++ b/spec/frontend/packages_and_registries/infrastructure_registry/components/terraform_installation_spec.js
@@ -13,6 +13,7 @@ describe('TerraformInstallation', () => {
const store = new Vuex.Store({
state: {
packageEntity,
+ gitlabHost: 'bar.dev',
projectPath: 'foo',
},
});
@@ -42,7 +43,7 @@ describe('TerraformInstallation', () => {
it('renders the correct command', () => {
expect(findCodeInstructions().at(0).props('instruction')).toMatchInlineSnapshot(`
"module \\"Test/system-22\\" {
- source = \\"foo/Test/system-22\\"
+ source = \\"bar.dev/foo/Test/system-22\\"
version = \\"0.1\\"
}"
`);
@@ -52,7 +53,7 @@ describe('TerraformInstallation', () => {
describe('setup commands', () => {
it('renders the correct command', () => {
expect(findCodeInstructions().at(1).props('instruction')).toMatchInlineSnapshot(`
- "credentials \\"gitlab.com\\" {
+ "credentials \\"bar.dev\\" {
token = \\"<TOKEN>\\"
}"
`);