From d9aaf4a1edfb878970b80b5b2b792e59cd6eccda Mon Sep 17 00:00:00 2001 From: Olivier Clavel Date: Mon, 24 Oct 2022 08:06:54 +0200 Subject: [PATCH] HotFix for #356 : default nuget version Nuget repo creation failed when this param was unset --- defaults/main.yml | 1 + molecule/nexus_common_test_vars.yml | 18 ++++++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 4f55b779..e1e365b9 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -595,6 +595,7 @@ _nexus_repos_nuget_defaults: maximum_metadata_age: 1440 # Nexus gui default. For proxies only negative_cache_enabled: true # Nexus gui default. For proxies only negative_cache_ttl: 1440 # Nexus gui default. For proxies only + nuget_version: v3 # Nexus gui default. For proxies only. One of v2 or v3 nexus_repos_nuget_hosted: - name: nuget-internal diff --git a/molecule/nexus_common_test_vars.yml b/molecule/nexus_common_test_vars.yml index b42d4401..4272cb17 100644 --- a/molecule/nexus_common_test_vars.yml +++ b/molecule/nexus_common_test_vars.yml @@ -247,10 +247,24 @@ nexus_repos_go_proxy: - name: go-proxy remote_url: 'https://golang.org/pkg/' +nexus_repos_nuget_hosted: + - name: nuget-internal + blob_store: "{{ nexus_blob_names.nuget.blob }}" + +nexus_repos_nuget_group: + - name: nuget-all + blob_store: "{{ nexus_blob_names.nuget.blob }}" + member_repos: + - nuget-internal + - nuget-proxy + nexus_repos_nuget_proxy: - - name: test-nuget-proxy + - name: nuget-proxy-with-version + blob_store: "{{ nexus_blob_names.nuget.blob }}" + remote_url: http://www.nuget.org/api/v2 + nuget_version: v2 + - name: nuget-proxy-default remote_url: https://api.nuget.org/v3/index.json - nuget_version: v3 nexus_content_selectors: # Docker by namespace. For mode details see: