Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add labels to examples #97

Merged
merged 35 commits into from
Mar 25, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
edf9060
fix(activity tracker): add labels to example output
Andras-Csanyi Mar 23, 2021
9b787fd
fix(case management): add labels to example output
Andras-Csanyi Mar 23, 2021
7ad409e
fix(configuration governance): add spaces between "\n" and "%s" in pr…
Andras-Csanyi Mar 23, 2021
65d0758
fix(enterprise billing units): add labels to example output
Andras-Csanyi Mar 23, 2021
8403fe5
fix(enterprise usage report): add labels to example output
Andras-Csanyi Mar 23, 2021
9cb8565
fix(global catalog): add labels to example output
Andras-Csanyi Mar 23, 2021
3ccce47
fix(global search): add labels to example output
Andras-Csanyi Mar 23, 2021
1bbdd97
fix(global tagging): add labels to example output
Andras-Csanyi Mar 23, 2021
3bcdb7b
fix(iam access groups): add labels to example output
Andras-Csanyi Mar 23, 2021
23d0011
fix(iam identity): add labels to example output
Andras-Csanyi Mar 23, 2021
d53aea7
fix(iam policy management): add labels to example output
Andras-Csanyi Mar 23, 2021
9af10f0
fix(open service broker): add labels to example output
Andras-Csanyi Mar 23, 2021
bf9e63c
fix(resource controller): add labels to example output
Andras-Csanyi Mar 23, 2021
f3ff4f8
fix(resource manager): add labels to example output
Andras-Csanyi Mar 23, 2021
8171084
fix(usage metering): add labels to example output
Andras-Csanyi Mar 23, 2021
6fedd70
fix(usage reports): add labels to example output
Andras-Csanyi Mar 23, 2021
25d347f
fix(user management): add labels to example output
Andras-Csanyi Mar 23, 2021
14b0910
fix(attracker): fix labels in example output
Andras-Csanyi Mar 24, 2021
a4e74f6
fix(case management): fix labels in example output
Andras-Csanyi Mar 24, 2021
185a4c3
fix(configuration governance): fix labels in example output
Andras-Csanyi Mar 24, 2021
e7e4f7d
fix(enterprise billing units): fix labels in example output
Andras-Csanyi Mar 24, 2021
2d3e240
fix(enterprise usage reports): fix labels in example output
Andras-Csanyi Mar 24, 2021
c983a7c
fix(global catalog): fix labels in example output
Andras-Csanyi Mar 24, 2021
182af06
fix(global search): fix labels in example output
Andras-Csanyi Mar 24, 2021
90ceccb
fix(global tagging): fix labels in example output
Andras-Csanyi Mar 24, 2021
cd94161
fix(iam access groups): fix labels in example output
Andras-Csanyi Mar 24, 2021
0eada5a
fix(iam identity): fix labels in example output
Andras-Csanyi Mar 24, 2021
41b9106
fix(iam policy management): fix labels in example output
Andras-Csanyi Mar 24, 2021
d9520c7
fix(open service broker): fix labels in example output
Andras-Csanyi Mar 24, 2021
c78e8a6
fix(resource controller): fix labels in example output
Andras-Csanyi Mar 24, 2021
03a270c
fix(resource manager): fix labels in example output
Andras-Csanyi Mar 24, 2021
6333635
fix(usage metering): fix labels in example output
Andras-Csanyi Mar 24, 2021
f0796a3
fix(usage reports): fix labels in example output
Andras-Csanyi Mar 24, 2021
6ac7af9
fix(user management): fix labels in example output
Andras-Csanyi Mar 24, 2021
9c437fb
fix(configuration governance): fix build fail
Andras-Csanyi Mar 25, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions atrackerv1/atracker_v1_examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import (
"fmt"
"github.com/IBM/go-sdk-core/v5/core"
"github.com/IBM/platform-services-go-sdk/atrackerv1"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"os"
)

Expand Down Expand Up @@ -115,7 +113,7 @@ var _ = Describe(`AtrackerV1 Examples Tests`, func() {
panic(err)
}
b, _ := json.MarshalIndent(target, "", " ")
fmt.Println(string(b))
fmt.Printf("\nCreateTarget() result:\n %s \n", string(b))
Andras-Csanyi marked this conversation as resolved.
Show resolved Hide resolved

// end-create_target

Expand All @@ -136,7 +134,7 @@ var _ = Describe(`AtrackerV1 Examples Tests`, func() {
panic(err)
}
b, _ := json.MarshalIndent(targetList, "", " ")
fmt.Println(string(b))
fmt.Print("\nListTargets() result:\n %s \n", string(b))

// end-list_targets

Expand All @@ -157,7 +155,7 @@ var _ = Describe(`AtrackerV1 Examples Tests`, func() {
panic(err)
}
b, _ := json.MarshalIndent(target, "", " ")
fmt.Println(string(b))
fmt.Printf("\nGetTarget() result:\n %s \n", string(b))

// end-get_target

Expand Down Expand Up @@ -188,7 +186,7 @@ var _ = Describe(`AtrackerV1 Examples Tests`, func() {
panic(err)
}
b, _ := json.MarshalIndent(target, "", " ")
fmt.Println(string(b))
fmt.Printf("\nReplaceTarget() result:\n %s \n", string(b))

// end-replace_target

Expand All @@ -215,7 +213,7 @@ var _ = Describe(`AtrackerV1 Examples Tests`, func() {
panic(err)
}
b, _ := json.MarshalIndent(route, "", " ")
fmt.Println(string(b))
fmt.Printf("\nCreateRoute() result:\n %s \n", string(b))

// end-create_route

Expand All @@ -236,7 +234,7 @@ var _ = Describe(`AtrackerV1 Examples Tests`, func() {
panic(err)
}
b, _ := json.MarshalIndent(routeList, "", " ")
fmt.Println(string(b))
fmt.Printf("\nListRoutes() result:\n %s \n", string(b))

// end-list_routes

Expand All @@ -257,7 +255,7 @@ var _ = Describe(`AtrackerV1 Examples Tests`, func() {
panic(err)
}
b, _ := json.MarshalIndent(route, "", " ")
fmt.Println(string(b))
fmt.Printf("\nGetRoute() result:\n %s \n", string(b))

// end-get_route

Expand Down Expand Up @@ -285,7 +283,7 @@ var _ = Describe(`AtrackerV1 Examples Tests`, func() {
panic(err)
}
b, _ := json.MarshalIndent(route, "", " ")
fmt.Println(string(b))
fmt.Printf("\nReplaceRoute() result:\n %s \n", string(b))

// end-replace_route

Expand All @@ -305,7 +303,7 @@ var _ = Describe(`AtrackerV1 Examples Tests`, func() {
if err != nil {
panic(err)
}

fmt.Println("\nDeleteRoute() is executed successfully.")
// end-delete_route

Expect(err).To(BeNil())
Expand All @@ -323,7 +321,7 @@ var _ = Describe(`AtrackerV1 Examples Tests`, func() {
if err != nil {
panic(err)
}

fmt.Println("\nDeleteTarget() is executed successfully.")
// end-delete_target

Expect(err).To(BeNil())
Expand Down
23 changes: 11 additions & 12 deletions casemanagementv1/case_management_v1_examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ import (

"github.com/IBM/go-sdk-core/v5/core"
"github.com/IBM/platform-services-go-sdk/casemanagementv1"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Andras-Csanyi marked this conversation as resolved.
Show resolved Hide resolved
)

//
Expand Down Expand Up @@ -140,7 +138,7 @@ var _ = Describe(`CaseManagementV1 Examples Tests`, func() {
panic(err)
}
b, _ := json.MarshalIndent(caseVar, "", " ")
fmt.Println(string(b))
fmt.Printf("\nCreateCase() result:\n %s \n", string(b))

// end-createCase

Expand Down Expand Up @@ -172,7 +170,7 @@ var _ = Describe(`CaseManagementV1 Examples Tests`, func() {
panic(err)
}
b, _ := json.MarshalIndent(caseVar, "", " ")
fmt.Println(string(b))
fmt.Printf("\nGetCase() result:\n %s \n", string(b))

// end-getCase

Expand All @@ -195,7 +193,7 @@ var _ = Describe(`CaseManagementV1 Examples Tests`, func() {
panic(err)
}
b, _ := json.MarshalIndent(caseList, "", " ")
fmt.Println(string(b))
fmt.Printf("\nGetCases() result:\n %s \n", string(b))

// end-getCases

Expand All @@ -219,7 +217,7 @@ var _ = Describe(`CaseManagementV1 Examples Tests`, func() {
panic(err)
}
b, _ := json.MarshalIndent(comment, "", " ")
fmt.Println(string(b))
fmt.Printf("\nAddComment() result:\n %s \n", string(b))

// end-addComment

Expand All @@ -245,7 +243,7 @@ var _ = Describe(`CaseManagementV1 Examples Tests`, func() {
panic(err)
}
b, _ := json.MarshalIndent(watchlistAddResponse, "", " ")
fmt.Println(string(b))
fmt.Printf("\nAddWatchlist() result:\n %s \n", string(b))

// end-addWatchlist

Expand All @@ -271,7 +269,7 @@ var _ = Describe(`CaseManagementV1 Examples Tests`, func() {
panic(err)
}
b, _ := json.MarshalIndent(watchlist, "", " ")
fmt.Println(string(b))
fmt.Printf("\nRemoveWatchlist() result:\n &s \n", string(b))
Andras-Csanyi marked this conversation as resolved.
Show resolved Hide resolved

// end-removeWatchlist

Expand All @@ -296,7 +294,7 @@ var _ = Describe(`CaseManagementV1 Examples Tests`, func() {
panic(err)
}
b, _ := json.MarshalIndent(resource, "", " ")
fmt.Println(string(b))
fmt.Printf("\nAddResource() result:\n %s \n", string(b))

// end-addResource

Expand Down Expand Up @@ -328,7 +326,7 @@ var _ = Describe(`CaseManagementV1 Examples Tests`, func() {
panic(err)
}
b, _ := json.MarshalIndent(attachment, "", " ")
fmt.Println(string(b))
fmt.Printf("\nUploadFile() result:\n %s \n", string(b))

// end-uploadFile

Expand Down Expand Up @@ -359,6 +357,7 @@ var _ = Describe(`CaseManagementV1 Examples Tests`, func() {
buf := new(bytes.Buffer)
buf.ReadFrom(result)

fmt.Println("\nDownloadFile() result:")
fmt.Println("Attachment content-type: ", response.GetHeaders().Get("Content-Type"))
fmt.Println("Attachment contents: ", buf.String())
}
Expand Down Expand Up @@ -386,7 +385,7 @@ var _ = Describe(`CaseManagementV1 Examples Tests`, func() {
panic(err)
}
b, _ := json.MarshalIndent(attachmentList, "", " ")
fmt.Println(string(b))
fmt.Printf("\nDeleteFile() result:\n %s \n", string(b))

// end-deleteFile

Expand Down Expand Up @@ -416,7 +415,7 @@ var _ = Describe(`CaseManagementV1 Examples Tests`, func() {
panic(err)
}
b, _ := json.MarshalIndent(caseVar, "", " ")
fmt.Println(string(b))
fmt.Printf("\nUpdateCaseStatus() result:\n %s \n", string(b))

// end-updateCaseStatus

Expand Down