Skip to content

Commit

Permalink
Support fo nuget proxy protocol version (#356)
Browse files Browse the repository at this point in the history
* fixes #355
* add a test for nuget proxy protocol version

[ci skip]

Co-authored-by: Olivier Clavel <olivier.clavel@gmail.com>
  • Loading branch information
MikeCantCode and zeitounator authored Oct 24, 2022
1 parent 801ba8e commit 7352e2b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions files/groovy/create_repos_from_list.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ parsed_args.each { currentRepo ->
}
}

// Configs for nuget proxy repos
if (currentRepo.type == 'proxy' && currentRepo.format == 'nuget') {
configuration.attributes['nugetProxy'] = [
nugetVersion: currentRepo.nuget_version.toUpperCase()
]
}

// Configs for docker proxy repos
if (currentRepo.type == 'proxy' && currentRepo.format == 'docker') {
configuration.attributes['dockerProxy'] = [
Expand Down
5 changes: 5 additions & 0 deletions molecule/nexus_common_test_vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,11 @@ nexus_repos_go_proxy:
- name: go-proxy
remote_url: 'https://golang.org/pkg/'

nexus_repos_nuget_proxy:
- name: test-nuget-proxy
remote_url: https://api.nuget.org/v3/index.json
nuget_version: v3

nexus_content_selectors:
# Docker by namespace. For mode details see:
# https://help.sonatype.com/repomanager3/formats/docker-registry/content-selectors-and-docker
Expand Down

0 comments on commit 7352e2b

Please sign in to comment.