diff --git a/README.md b/README.md index e960db2..842601d 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Sonatype Nexus Golang Client -Implemented and tested with Sonatype Nexus `3.43.0-01`. +Implemented and tested with Sonatype Nexus `3.61.0-02`. ## Development and testing diff --git a/nexus3/pkg/repository/npm/proxy_test.go b/nexus3/pkg/repository/npm/proxy_test.go index 07a6f65..c9da61a 100644 --- a/nexus3/pkg/repository/npm/proxy_test.go +++ b/nexus3/pkg/repository/npm/proxy_test.go @@ -63,14 +63,14 @@ func TestNpmProxyRepository(t *testing.T) { updatedRepo := repo updatedRepo.Online = false - updatedRepo.RemoveQuarantined = true + updatedRepo.RemoveNonCataloged = false err = service.Proxy.Update(repo.Name, updatedRepo) assert.Nil(t, err) generatedRepo, err = service.Proxy.Get(updatedRepo.Name) assert.Nil(t, err) assert.Equal(t, updatedRepo.Online, generatedRepo.Online) - assert.Equal(t, updatedRepo.Npm, generatedRepo.Npm) + assert.Equal(t, updatedRepo.RemoveNonCataloged, generatedRepo.RemoveNonCataloged) service.Proxy.Delete(repo.Name) assert.Nil(t, err) diff --git a/nexus3/pkg/security/realm_test.go b/nexus3/pkg/security/realm_test.go index 7a0de83..1c9dcd1 100644 --- a/nexus3/pkg/security/realm_test.go +++ b/nexus3/pkg/security/realm_test.go @@ -23,7 +23,6 @@ func TestSecurityRealmsActive(t *testing.T) { assert.NotNil(t, activeRealms) assert.Greater(t, len(activeRealms), 0) assert.Contains(t, activeRealms, "NexusAuthenticatingRealm") - assert.Contains(t, activeRealms, "NexusAuthorizingRealm") } func TestSecurityRealmsAvailable(t *testing.T) { diff --git a/scripts/.env b/scripts/.env index 9549317..1e40194 100644 --- a/scripts/.env +++ b/scripts/.env @@ -1,2 +1,3 @@ -export NEXUS_VERSION=3.43.0 +export NEXUS_IMAGE=ghcr.io/datadrivers/docker-nexus3 +export NEXUS_VERSION=3.61.0 export NEXUS_PORT=8081 diff --git a/scripts/script.source b/scripts/script.source index 187f8d4..75ca910 100644 --- a/scripts/script.source +++ b/scripts/script.source @@ -18,24 +18,8 @@ else echo "since no license file detected at ${_license_file}." fi -case $(determine_local_architecture) in - "arm64" ) - echo "Determined architecture: arm64" - NEXUS_IMAGE=klo2k/nexus3 - ;; - "x86_64" ) - echo "Determined architecture: x86_64" - NEXUS_IMAGE=sonatype/nexus3 - ;; - * ) - echo "Could not determine architecture" ;; -esac - # docker-compose options COMPOSE_PROFILES=${NEXUS_TYPE} export COMPOSE_PROFILES COMPOSE_PROJECT_NAME=nexus-${NEXUS_TYPE} export COMPOSE_PROJECT_NAME - -# arch dependent nexus image selection -export NEXUS_IMAGE