@@ -118,11 +118,11 @@ func TestOIDCURLsAreAuthenticated(t *testing.T) {
118118 },
119119 credentials : config.Credentials {
120120 config.Credential {
121- "type" : "cargo_registry" ,
122- "url" : "https://cloudsmith.example.com" ,
123- "oidc- namespace" : "space" ,
124- "oidc- service-slug" : "repo" ,
125- "oidc- audience" : "my-audience" ,
121+ "type" : "cargo_registry" ,
122+ "url" : "https://cloudsmith.example.com" ,
123+ "namespace" : "space" ,
124+ "service-slug" : "repo" ,
125+ "audience" : "my-audience" ,
126126 },
127127 },
128128 urlMocks : []mockHttpRequest {},
@@ -213,11 +213,11 @@ func TestOIDCURLsAreAuthenticated(t *testing.T) {
213213 },
214214 credentials : config.Credentials {
215215 config.Credential {
216- "type" : "composer_repository" ,
217- "registry" : "https://cloudsmith.example.com" ,
218- "oidc- namespace" : "space" ,
219- "oidc- service-slug" : "repo" ,
220- "oidc- audience" : "my-audience" ,
216+ "type" : "composer_repository" ,
217+ "registry" : "https://cloudsmith.example.com" ,
218+ "namespace" : "space" ,
219+ "service-slug" : "repo" ,
220+ "audience" : "my-audience" ,
221221 },
222222 },
223223 urlMocks : []mockHttpRequest {},
@@ -308,11 +308,11 @@ func TestOIDCURLsAreAuthenticated(t *testing.T) {
308308 },
309309 credentials : config.Credentials {
310310 config.Credential {
311- "type" : "docker_registry" ,
312- "registry" : "https://cloudsmith.example.com" ,
313- "oidc- namespace" : "space" ,
314- "oidc- service-slug" : "repo" ,
315- "oidc- audience" : "my-audience" ,
311+ "type" : "docker_registry" ,
312+ "registry" : "https://cloudsmith.example.com" ,
313+ "namespace" : "space" ,
314+ "service-slug" : "repo" ,
315+ "audience" : "my-audience" ,
316316 },
317317 },
318318 urlMocks : []mockHttpRequest {},
@@ -402,11 +402,11 @@ func TestOIDCURLsAreAuthenticated(t *testing.T) {
402402 },
403403 credentials : config.Credentials {
404404 config.Credential {
405- "type" : "goproxy_server" ,
406- "url" : "https://cloudsmith.example.com" ,
407- "oidc- namespace" : "space" ,
408- "oidc- service-slug" : "repo" ,
409- "oidc- audience" : "my-audience" ,
405+ "type" : "goproxy_server" ,
406+ "url" : "https://cloudsmith.example.com" ,
407+ "namespace" : "space" ,
408+ "service-slug" : "repo" ,
409+ "audience" : "my-audience" ,
410410 },
411411 },
412412 urlMocks : []mockHttpRequest {},
@@ -496,11 +496,11 @@ func TestOIDCURLsAreAuthenticated(t *testing.T) {
496496 },
497497 credentials : config.Credentials {
498498 config.Credential {
499- "type" : "helm_registry" ,
500- "registry" : "https://cloudsmith.example.com" ,
501- "oidc- namespace" : "space" ,
502- "oidc- service-slug" : "repo" ,
503- "oidc- audience" : "my-audience" ,
499+ "type" : "helm_registry" ,
500+ "registry" : "https://cloudsmith.example.com" ,
501+ "namespace" : "space" ,
502+ "service-slug" : "repo" ,
503+ "audience" : "my-audience" ,
504504 },
505505 },
506506 urlMocks : []mockHttpRequest {},
@@ -590,11 +590,11 @@ func TestOIDCURLsAreAuthenticated(t *testing.T) {
590590 },
591591 credentials : config.Credentials {
592592 config.Credential {
593- "type" : "hex_repository" ,
594- "url" : "https://cloudsmith.example.com" ,
595- "oidc- namespace" : "space" ,
596- "oidc- service-slug" : "repo" ,
597- "oidc- audience" : "my-audience" ,
593+ "type" : "hex_repository" ,
594+ "url" : "https://cloudsmith.example.com" ,
595+ "namespace" : "space" ,
596+ "service-slug" : "repo" ,
597+ "audience" : "my-audience" ,
598598 },
599599 },
600600 urlMocks : []mockHttpRequest {},
@@ -684,11 +684,11 @@ func TestOIDCURLsAreAuthenticated(t *testing.T) {
684684 },
685685 credentials : config.Credentials {
686686 config.Credential {
687- "type" : "maven_repository" ,
688- "url" : "https://cloudsmith.example.com" ,
689- "oidc- namespace" : "space" ,
690- "oidc- service-slug" : "repo" ,
691- "oidc- audience" : "my-audience" ,
687+ "type" : "maven_repository" ,
688+ "url" : "https://cloudsmith.example.com" ,
689+ "namespace" : "space" ,
690+ "service-slug" : "repo" ,
691+ "audience" : "my-audience" ,
692692 },
693693 },
694694 urlMocks : []mockHttpRequest {},
@@ -778,11 +778,11 @@ func TestOIDCURLsAreAuthenticated(t *testing.T) {
778778 },
779779 credentials : config.Credentials {
780780 config.Credential {
781- "type" : "npm_registry" ,
782- "url" : "https://cloudsmith.example.com" ,
783- "oidc- namespace" : "space" ,
784- "oidc- service-slug" : "repo" ,
785- "oidc- audience" : "my-audience" ,
781+ "type" : "npm_registry" ,
782+ "url" : "https://cloudsmith.example.com" ,
783+ "namespace" : "space" ,
784+ "service-slug" : "repo" ,
785+ "audience" : "my-audience" ,
786786 },
787787 },
788788 urlMocks : []mockHttpRequest {},
@@ -896,11 +896,11 @@ func TestOIDCURLsAreAuthenticated(t *testing.T) {
896896 },
897897 credentials : config.Credentials {
898898 config.Credential {
899- "type" : "nuget_feed" ,
900- "url" : "https://cloudsmith.example.com/v3/index.json" ,
901- "oidc- namespace" : "space" ,
902- "oidc- service-slug" : "repo" ,
903- "oidc- audience" : "my-audience" ,
899+ "type" : "nuget_feed" ,
900+ "url" : "https://cloudsmith.example.com/v3/index.json" ,
901+ "namespace" : "space" ,
902+ "service-slug" : "repo" ,
903+ "audience" : "my-audience" ,
904904 },
905905 },
906906 urlMocks : []mockHttpRequest {
@@ -998,11 +998,11 @@ func TestOIDCURLsAreAuthenticated(t *testing.T) {
998998 },
999999 credentials : config.Credentials {
10001000 config.Credential {
1001- "type" : "pub_repository" ,
1002- "url" : "https://cloudsmith.example.com" ,
1003- "oidc- namespace" : "space" ,
1004- "oidc- service-slug" : "repo" ,
1005- "oidc- audience" : "my-audience" ,
1001+ "type" : "pub_repository" ,
1002+ "url" : "https://cloudsmith.example.com" ,
1003+ "namespace" : "space" ,
1004+ "service-slug" : "repo" ,
1005+ "audience" : "my-audience" ,
10061006 },
10071007 },
10081008 urlMocks : []mockHttpRequest {},
@@ -1092,11 +1092,11 @@ func TestOIDCURLsAreAuthenticated(t *testing.T) {
10921092 },
10931093 credentials : config.Credentials {
10941094 config.Credential {
1095- "type" : "python_index" ,
1096- "url" : "https://cloudsmith.example.com" ,
1097- "oidc- namespace" : "space" ,
1098- "oidc- service-slug" : "repo" ,
1099- "oidc- audience" : "my-audience" ,
1095+ "type" : "python_index" ,
1096+ "url" : "https://cloudsmith.example.com" ,
1097+ "namespace" : "space" ,
1098+ "service-slug" : "repo" ,
1099+ "audience" : "my-audience" ,
11001100 },
11011101 },
11021102 urlMocks : []mockHttpRequest {},
@@ -1187,12 +1187,12 @@ func TestOIDCURLsAreAuthenticated(t *testing.T) {
11871187 },
11881188 credentials : config.Credentials {
11891189 config.Credential {
1190- "type" : "rubygems_server" ,
1191- "url" : "https://cloudsmith.example.com" ,
1192- "host" : "https://cloudsmith.example.com" ,
1193- "oidc- namespace" : "space" ,
1194- "oidc- service-slug" : "repo" ,
1195- "oidc- audience" : "my-audience" ,
1190+ "type" : "rubygems_server" ,
1191+ "url" : "https://cloudsmith.example.com" ,
1192+ "host" : "https://cloudsmith.example.com" ,
1193+ "namespace" : "space" ,
1194+ "service-slug" : "repo" ,
1195+ "audience" : "my-audience" ,
11961196 },
11971197 },
11981198 urlMocks : []mockHttpRequest {},
@@ -1282,11 +1282,11 @@ func TestOIDCURLsAreAuthenticated(t *testing.T) {
12821282 },
12831283 credentials : config.Credentials {
12841284 config.Credential {
1285- "type" : "terraform_registry" ,
1286- "url" : "https://cloudsmith.example.com" ,
1287- "oidc- namespace" : "space" ,
1288- "oidc- service-slug" : "repo" ,
1289- "oidc- audience" : "my-audience" ,
1285+ "type" : "terraform_registry" ,
1286+ "url" : "https://cloudsmith.example.com" ,
1287+ "namespace" : "space" ,
1288+ "service-slug" : "repo" ,
1289+ "audience" : "my-audience" ,
12901290 },
12911291 },
12921292 urlMocks : []mockHttpRequest {},
@@ -1352,7 +1352,7 @@ func TestOIDCURLsAreAuthenticated(t *testing.T) {
13521352 "expires_in": 3600
13531353 }` ))
13541354 case "cloudsmith" :
1355- namespace := tc .credentials [0 ]["oidc- namespace" ]
1355+ namespace := tc .credentials [0 ]["namespace" ]
13561356 httpmock .RegisterResponder ("POST" , fmt .Sprintf ("https://api.cloudsmith.io/openid/%s/" , namespace ),
13571357 httpmock .NewStringResponder (200 , `{
13581358 "token": "__test_token__"
0 commit comments