Skip to content

Commit 25cd8ca

Browse files
rename env variables
1 parent 01743d7 commit 25cd8ca

16 files changed

+10460
-10460
lines changed

tools/cli/internal/openapi/filter/code_sample.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func (f *CodeSampleFilter) Apply() error {
5656

5757
func (f *CodeSampleFilter) newDigestCurlCodeSamplesForOperation(pathName, opMethod string) codeSample {
5858
version := apiVersion(f.metadata.targetVersion)
59-
source := "curl --user \"${PUBLIC-KEY}:${PRIVATE-KEY}\" \\\n --digest \\\n " +
59+
source := "curl --user \"${PUBLIC_KEY}:${PRIVATE_KEY}\" \\\n --digest \\\n " +
6060
"--header \"Accept: application/vnd.atlas." + version + "+json\" \\\n "
6161

6262
switch opMethod {
@@ -79,7 +79,7 @@ func (f *CodeSampleFilter) newDigestCurlCodeSamplesForOperation(pathName, opMeth
7979

8080
func (f *CodeSampleFilter) newServiceAccountCurlCodeSamplesForOperation(pathName, opMethod string) codeSample {
8181
version := apiVersion(f.metadata.targetVersion)
82-
source := "curl --header \"Authorization: Bearer ${ACCESS-TOKEN}\" \\\n " +
82+
source := "curl --header \"Authorization: Bearer ${ACCESS_TOKEN}\" \\\n " +
8383
"--header \"Accept: application/vnd.atlas." + version + "+json\" \\\n "
8484

8585
switch opMethod {

tools/cli/internal/openapi/filter/code_sample_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ func TestCodeSampleFilter(t *testing.T) {
7979
{
8080
Lang: "cURL",
8181
Label: "curl (Service Account Access Token)",
82-
Source: "curl --header \"Authorization: Bearer ${ACCESS-TOKEN}\" \\\n " +
82+
Source: "curl --header \"Authorization: Bearer ${ACCESS_TOKEN}\" \\\n " +
8383
"--header \"Accept: application/vnd.atlas.2025-01-01+json\" \\\n " + "-X GET \"https://cloud.mongodb.com/test?pretty=true\"",
8484
},
8585
{
8686
Lang: "cURL",
8787
Label: "curl (Digest)",
88-
Source: "curl --user \"${PUBLIC-KEY}:${PRIVATE-KEY}\" \\\n --digest \\\n " +
88+
Source: "curl --user \"${PUBLIC_KEY}:${PRIVATE_KEY}\" \\\n --digest \\\n " +
8989
"--header \"Accept: application/vnd.atlas.2025-01-01+json\" \\\n " + "-X GET \"https://cloud.mongodb.com/test?pretty=true\"",
9090
},
9191
{
@@ -148,13 +148,13 @@ func TestCodeSampleFilter(t *testing.T) {
148148
{
149149
Lang: "cURL",
150150
Label: "curl (Service Account Access Token)",
151-
Source: "curl --header \"Authorization: Bearer ${ACCESS-TOKEN}\" \\\n " +
151+
Source: "curl --header \"Authorization: Bearer ${ACCESS_TOKEN}\" \\\n " +
152152
"--header \"Accept: application/vnd.atlas.preview+json\" \\\n " + "-X GET \"https://cloud.mongodb.com/test?pretty=true\"",
153153
},
154154
{
155155
Lang: "cURL",
156156
Label: "curl (Digest)",
157-
Source: "curl --user \"${PUBLIC-KEY}:${PRIVATE-KEY}\" \\\n --digest \\\n " +
157+
Source: "curl --user \"${PUBLIC_KEY}:${PRIVATE_KEY}\" \\\n --digest \\\n " +
158158
"--header \"Accept: application/vnd.atlas.preview+json\" \\\n " + "-X GET \"https://cloud.mongodb.com/test?pretty=true\"",
159159
},
160160
{
@@ -217,13 +217,13 @@ func TestCodeSampleFilter(t *testing.T) {
217217
{
218218
Lang: "cURL",
219219
Label: "curl (Service Account Access Token)",
220-
Source: "curl --header \"Authorization: Bearer ${ACCESS-TOKEN}\" \\\n " +
220+
Source: "curl --header \"Authorization: Bearer ${ACCESS_TOKEN}\" \\\n " +
221221
"--header \"Accept: application/vnd.atlas.2025-01-01.upcoming+json\" \\\n " + "-X GET \"https://cloud.mongodb.com/test?pretty=true\"",
222222
},
223223
{
224224
Lang: "cURL",
225225
Label: "curl (Digest)",
226-
Source: "curl --user \"${PUBLIC-KEY}:${PRIVATE-KEY}\" \\\n --digest \\\n " +
226+
Source: "curl --user \"${PUBLIC_KEY}:${PRIVATE_KEY}\" \\\n --digest \\\n " +
227227
"--header \"Accept: application/vnd.atlas.2025-01-01.upcoming+json\" \\\n " + "-X GET \"https://cloud.mongodb.com/test?pretty=true\"",
228228
},
229229
{

tools/cli/test/data/split/dev/openapi-v2-2023-01-01.json

Lines changed: 674 additions & 674 deletions
Large diffs are not rendered by default.

tools/cli/test/data/split/dev/openapi-v2-2023-01-01.yaml

Lines changed: 674 additions & 674 deletions
Large diffs are not rendered by default.

tools/cli/test/data/split/dev/openapi-v2-2023-02-01.json

Lines changed: 698 additions & 698 deletions
Large diffs are not rendered by default.

tools/cli/test/data/split/dev/openapi-v2-2023-02-01.yaml

Lines changed: 698 additions & 698 deletions
Large diffs are not rendered by default.

tools/cli/test/data/split/dev/openapi-v2-2023-10-01.json

Lines changed: 726 additions & 726 deletions
Large diffs are not rendered by default.

tools/cli/test/data/split/dev/openapi-v2-2023-10-01.yaml

Lines changed: 726 additions & 726 deletions
Large diffs are not rendered by default.

tools/cli/test/data/split/dev/openapi-v2-2023-11-15.json

Lines changed: 752 additions & 752 deletions
Large diffs are not rendered by default.

tools/cli/test/data/split/dev/openapi-v2-2023-11-15.yaml

Lines changed: 752 additions & 752 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)