Skip to content

Commit

Permalink
[CLOUDGA-24221] Updated create integration success message.
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-yb committed Oct 21, 2024
1 parent fac1338 commit 9b45371
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions cmd/integration/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ var createIntegrationCmd = &cobra.Command{
logrus.Fatalf(ybmAuthClient.GetApiErrorDetails(err))
}

IntegrationId := resp.GetData().Info.Id

msg := fmt.Sprintf("The Integration %s is being created", formatter.Colorize(IntegrationId, formatter.GREEN_COLOR))
msg := fmt.Sprintf("The Integration %s has been created", formatter.Colorize(IntegrationName, formatter.GREEN_COLOR))

fmt.Println(msg)

Expand Down
6 changes: 3 additions & 3 deletions cmd/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ var _ = Describe("Integration", func() {
session, err := gexec.Start(cmd, GinkgoWriter, GinkgoWriter)
Expect(err).NotTo(HaveOccurred())
session.Wait(2)
Expect(session.Out).Should(gbytes.Say(`The Integration 9e3fabbc-849c-4a77-bdb2-9422e712e7dc is being created
Expect(session.Out).Should(gbytes.Say(`The Integration 9e3fabbc-849c-4a77-bdb2-9422e712e7dc has been created
ID Name Type Site ApiKey
9e3fabbc-849c-4a77-bdb2-9422e712e7dc ff DATADOG test c4XXXXXXXXXXXXXXXXXXXXXXXXXXXX3d`))
session.Kill()
Expand Down Expand Up @@ -106,7 +106,7 @@ ID Name Type Site ApiKey
session, err := gexec.Start(cmd, GinkgoWriter, GinkgoWriter)
Expect(err).NotTo(HaveOccurred())
session.Wait(2)
Expect(session.Out).Should(gbytes.Say(`The Integration 92ceaa26-bac7-4842-9b3c-831a18a4f813 is being created
Expect(session.Out).Should(gbytes.Say(`The Integration 92ceaa26-bac7-4842-9b3c-831a18a4f813 has been created
ID Name Type Zone Access Token Policy InstanceId OrgSlug
92ceaa26-bac7-4842-9b3c-831a18a4f813 grafana GRAFANA test-zone glXXXXXXXXXX...XXXXXXXXXXXXXXX== 1234456 ybmclitest`))
session.Kill()
Expand Down Expand Up @@ -165,7 +165,7 @@ ID Name Type Zone Access To
session, err := gexec.Start(cmd, GinkgoWriter, GinkgoWriter)
Expect(err).NotTo(HaveOccurred())
session.Wait(2)
Expect(session.Out).Should(gbytes.Say(`The Integration 7913c052-fcd0-4b37-8a90-b0e47320190b is being created
Expect(session.Out).Should(gbytes.Say(`The Integration 7913c052-fcd0-4b37-8a90-b0e47320190b has been created
ID Name Type
7913c052-fcd0-4b37-8a90-b0e47320190b ddd GOOGLECLOUD`))
session.Kill()
Expand Down

0 comments on commit 9b45371

Please sign in to comment.