Skip to content

Commit 9b45371

Browse files
committed
[CLOUDGA-24221] Updated create integration success message.
1 parent fac1338 commit 9b45371

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

cmd/integration/integration.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ var createIntegrationCmd = &cobra.Command{
7272
logrus.Fatalf(ybmAuthClient.GetApiErrorDetails(err))
7373
}
7474

75-
IntegrationId := resp.GetData().Info.Id
76-
77-
msg := fmt.Sprintf("The Integration %s is being created", formatter.Colorize(IntegrationId, formatter.GREEN_COLOR))
75+
msg := fmt.Sprintf("The Integration %s has been created", formatter.Colorize(IntegrationName, formatter.GREEN_COLOR))
7876

7977
fmt.Println(msg)
8078

cmd/integration_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ var _ = Describe("Integration", func() {
6767
session, err := gexec.Start(cmd, GinkgoWriter, GinkgoWriter)
6868
Expect(err).NotTo(HaveOccurred())
6969
session.Wait(2)
70-
Expect(session.Out).Should(gbytes.Say(`The Integration 9e3fabbc-849c-4a77-bdb2-9422e712e7dc is being created
70+
Expect(session.Out).Should(gbytes.Say(`The Integration 9e3fabbc-849c-4a77-bdb2-9422e712e7dc has been created
7171
ID Name Type Site ApiKey
7272
9e3fabbc-849c-4a77-bdb2-9422e712e7dc ff DATADOG test c4XXXXXXXXXXXXXXXXXXXXXXXXXXXX3d`))
7373
session.Kill()
@@ -106,7 +106,7 @@ ID Name Type Site ApiKey
106106
session, err := gexec.Start(cmd, GinkgoWriter, GinkgoWriter)
107107
Expect(err).NotTo(HaveOccurred())
108108
session.Wait(2)
109-
Expect(session.Out).Should(gbytes.Say(`The Integration 92ceaa26-bac7-4842-9b3c-831a18a4f813 is being created
109+
Expect(session.Out).Should(gbytes.Say(`The Integration 92ceaa26-bac7-4842-9b3c-831a18a4f813 has been created
110110
ID Name Type Zone Access Token Policy InstanceId OrgSlug
111111
92ceaa26-bac7-4842-9b3c-831a18a4f813 grafana GRAFANA test-zone glXXXXXXXXXX...XXXXXXXXXXXXXXX== 1234456 ybmclitest`))
112112
session.Kill()
@@ -165,7 +165,7 @@ ID Name Type Zone Access To
165165
session, err := gexec.Start(cmd, GinkgoWriter, GinkgoWriter)
166166
Expect(err).NotTo(HaveOccurred())
167167
session.Wait(2)
168-
Expect(session.Out).Should(gbytes.Say(`The Integration 7913c052-fcd0-4b37-8a90-b0e47320190b is being created
168+
Expect(session.Out).Should(gbytes.Say(`The Integration 7913c052-fcd0-4b37-8a90-b0e47320190b has been created
169169
ID Name Type
170170
7913c052-fcd0-4b37-8a90-b0e47320190b ddd GOOGLECLOUD`))
171171
session.Kill()

0 commit comments

Comments
 (0)