From 9146cfc8951e71162068dc7ad5fc423cbabf99bf Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Tue, 8 Jun 2021 09:25:41 -0600 Subject: [PATCH 01/33] helm-tests --- chart/Chart.lock | 6 ++++ chart/Chart.yaml | 4 +++ chart/charts/gluon-0.1.1.tgz | Bin 0 -> 2691 bytes chart/templates/tests/nexus-cypress-test.yaml | 23 ++++++++++++++++ chart/tests/cypress/cypress.json | 7 +++++ .../tests/cypress}/nexus-healthspec.js | 0 chart/values.yaml | 3 +- tests/README.md | 1 - tests/cypress.json | 10 ------- tests/main-test-gateway.yaml | 26 ------------------ tests/test-values.yml | 14 +++++----- 11 files changed, 49 insertions(+), 45 deletions(-) create mode 100644 chart/Chart.lock create mode 100644 chart/charts/gluon-0.1.1.tgz create mode 100644 chart/templates/tests/nexus-cypress-test.yaml create mode 100644 chart/tests/cypress/cypress.json rename {tests/cypress/integration => chart/tests/cypress}/nexus-healthspec.js (100%) delete mode 100644 tests/README.md delete mode 100644 tests/cypress.json delete mode 100644 tests/main-test-gateway.yaml diff --git a/chart/Chart.lock b/chart/Chart.lock new file mode 100644 index 0000000..e982991 --- /dev/null +++ b/chart/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: gluon + repository: oci://registry.dso.mil/platform-one/big-bang/apps/library-charts/gluon + version: 0.1.1 +digest: sha256:cf1107c00a11cde8074a39624643312fe85ee11250bb7d9380e3787bde0af0f7 +generated: "2021-06-08T09:04:25.9101709-06:00" diff --git a/chart/Chart.yaml b/chart/Chart.yaml index 735e91a..72d5305 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -22,3 +22,7 @@ sources: maintainers: - email: support@sonatype.com name: Sonatype +dependencies: + - name: gluon + version: "0.1.1" + repository: "oci://registry.dso.mil/platform-one/big-bang/apps/library-charts/gluon" diff --git a/chart/charts/gluon-0.1.1.tgz b/chart/charts/gluon-0.1.1.tgz new file mode 100644 index 0000000000000000000000000000000000000000..b4a4878dae126348cdee9d80977a15121ba59f9f GIT binary patch literal 2691 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 literal 0 HcmV?d00001 diff --git a/chart/templates/tests/nexus-cypress-test.yaml b/chart/templates/tests/nexus-cypress-test.yaml new file mode 100644 index 0000000..3f4797b --- /dev/null +++ b/chart/templates/tests/nexus-cypress-test.yaml @@ -0,0 +1,23 @@ +{{- include "gluon.tests.cypress-configmap.overrides" (list . "nexus-test.cypress-configmap") }} +{{- define "nexus-test.cypress-configmap" }} +metadata: + labels: + app.kubernetes.io/name: {{ include "nexus.name" . }} + helm.sh/chart: {{ include "nexus.chart" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/managed-by: {{ .Release.Service }} + app.kubernetes.io/part-of: nexus-repository-manager + app.kubernetes.io/component: {{ include "nexus.name" . }} +{{- end }} +--- +{{- include "gluon.tests.cypress-runner.overrides" (list . "nexus-test.cypress-runner") -}} +{{- define "nexus-test.cypress-runner" -}} +metadata: + labels: + app.kubernetes.io/name: {{ include "nexus.name" . }} + helm.sh/chart: {{ include "nexus.chart" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/managed-by: {{ .Release.Service }} + app.kubernetes.io/part-of: nexus-repository-manager + app.kubernetes.io/component: {{ include "nexus.name" . }} +{{- end }} diff --git a/chart/tests/cypress/cypress.json b/chart/tests/cypress/cypress.json new file mode 100644 index 0000000..ff11846 --- /dev/null +++ b/chart/tests/cypress/cypress.json @@ -0,0 +1,7 @@ +{ + + "pluginsFile": false, + "supportFile": false, + "fixturesFolder": false + +} diff --git a/tests/cypress/integration/nexus-healthspec.js b/chart/tests/cypress/nexus-healthspec.js similarity index 100% rename from tests/cypress/integration/nexus-healthspec.js rename to chart/tests/cypress/nexus-healthspec.js diff --git a/chart/values.yaml b/chart/values.yaml index aadeaa3..5c5f88e 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -122,7 +122,8 @@ nexus: # hostnames: # - "example.com" # - "www.example.com" - imagePullSecrets: [] + imagePullSecrets: + - name: private-registry nameOverride: "" fullnameOverride: "" diff --git a/tests/README.md b/tests/README.md deleted file mode 100644 index d735775..0000000 --- a/tests/README.md +++ /dev/null @@ -1 +0,0 @@ -Cypress tests run headless calling the script cy-run.sh \ No newline at end of file diff --git a/tests/cypress.json b/tests/cypress.json deleted file mode 100644 index 43b18da..0000000 --- a/tests/cypress.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - - "pluginsFile": false, - "supportFile": false, - "fixturesFolder": false, - "env": { - "nexus_url": "nexus.bigbang.dev" - - } -} diff --git a/tests/main-test-gateway.yaml b/tests/main-test-gateway.yaml deleted file mode 100644 index 1c7d7d1..0000000 --- a/tests/main-test-gateway.yaml +++ /dev/null @@ -1,26 +0,0 @@ -apiVersion: networking.istio.io/v1beta1 -kind: Gateway -metadata: - name: main - namespace: istio-system -spec: - selector: - istio: ingressgateway - servers: - - hosts: - - '*' - port: - name: http - number: 80 - protocol: HTTP - tls: - httpsRedirect: true - - hosts: - - '*.bigbang.dev' - port: - name: https - number: 443 - protocol: HTTPS - tls: - credentialName: wildcard-cert - mode: SIMPLE diff --git a/tests/test-values.yml b/tests/test-values.yml index b09ad18..ec0aba3 100644 --- a/tests/test-values.yml +++ b/tests/test-values.yml @@ -1,8 +1,8 @@ - -istio: +bbtests: + enabled: true + cypress: + artifacts: true + envs: + cypress_nexus_url: "http://{{ template "nexus.fullname" . }}:8081" +networkPolicies: enabled: true -nexus: - imagePullSecrets: - - name: private-registry-mil - - -- GitLab From 8ceabf3d7d725627fad85e01b1027fa1a8f3e1b4 Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Tue, 8 Jun 2021 09:29:22 -0600 Subject: [PATCH 02/33] helm-tests 2 --- tests/test-values.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/test-values.yml b/tests/test-values.yml index ec0aba3..8f3635b 100644 --- a/tests/test-values.yml +++ b/tests/test-values.yml @@ -3,6 +3,9 @@ bbtests: cypress: artifacts: true envs: - cypress_nexus_url: "http://{{ template "nexus.fullname" . }}:8081" + cypress_url: "http://nexus-nexus:8081" + cypress_user: "admin" + cypress_password: "admin" + cypress_newpassword: "new_admin_password" networkPolicies: - enabled: true + enabled: true \ No newline at end of file -- GitLab From e67b23a27c3545ea49a741e4812be5bb166e3586 Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Tue, 8 Jun 2021 09:29:53 -0600 Subject: [PATCH 03/33] helm-tests 3 --- tests/test-values.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/test-values.yml b/tests/test-values.yml index 8f3635b..e31cbac 100644 --- a/tests/test-values.yml +++ b/tests/test-values.yml @@ -3,9 +3,6 @@ bbtests: cypress: artifacts: true envs: - cypress_url: "http://nexus-nexus:8081" - cypress_user: "admin" - cypress_password: "admin" - cypress_newpassword: "new_admin_password" + cypress_nexus_url: "http://nexus-nexus:8081" networkPolicies: enabled: true \ No newline at end of file -- GitLab From c6ff7c27e21cd9a70b0af5dfea50d80dd502affe Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Tue, 8 Jun 2021 09:45:50 -0600 Subject: [PATCH 04/33] service url update --- tests/test-values.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-values.yml b/tests/test-values.yml index e31cbac..666e6dd 100644 --- a/tests/test-values.yml +++ b/tests/test-values.yml @@ -3,6 +3,6 @@ bbtests: cypress: artifacts: true envs: - cypress_nexus_url: "http://nexus-nexus:8081" + cypress_nexus_url: "http://nexus-nexus-repository-manager:8081" networkPolicies: enabled: true \ No newline at end of file -- GitLab From 4210eb7b56820bfe9e33711ae318caf329db2be0 Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Tue, 8 Jun 2021 11:20:44 -0600 Subject: [PATCH 05/33] cypress update --- chart/templates/bigbang/secret.yaml | 6 +++++- chart/tests/cypress/nexus-healthspec.js | 10 ++++++++++ chart/values.yaml | 1 + tests/test-values.yml | 5 +++++ 4 files changed, 21 insertions(+), 1 deletion(-) diff --git a/chart/templates/bigbang/secret.yaml b/chart/templates/bigbang/secret.yaml index 6195fea..2a81ca5 100644 --- a/chart/templates/bigbang/secret.yaml +++ b/chart/templates/bigbang/secret.yaml @@ -12,7 +12,11 @@ metadata: {{- end }} {{- end }} data: - admin.password: {{ randAlphaNum 12 | b64enc | quote }} + {{- if .Values.secret.setAdminPassword }} + admin.password: {{ .Values.secret.setAdminPassword | b64enc | quote }} + {{- else }} + admin.password: {{ randAlphaNum 10 | b64enc | quote }} + {{- end }} admin.username: YWRtaW4K {{- end}} {{- end}} diff --git a/chart/tests/cypress/nexus-healthspec.js b/chart/tests/cypress/nexus-healthspec.js index dbaa644..80a5097 100644 --- a/chart/tests/cypress/nexus-healthspec.js +++ b/chart/tests/cypress/nexus-healthspec.js @@ -1,5 +1,15 @@ describe('Basic prometheus', function() { it('Visits the prometheus sign in page', function() { cy.visit(Cypress.env('nexus_url')) + cy.get('input[name="username"]').type(Cypress.env('nexus_user')) + cy.get('input[name="password"]').type(Cypress.env('nexus_pass')) + cy.contains("Sign in").click() + cy.contains("Next").click() + cy.get('input[name="password"]').type(Cypress.env('nexus_pass_new')) + cy.get('input[name="nx-password-1265-input-E1"]').type(Cypress.env('nexus_pass_new')) + cy.contains("Next").click() + cy.get('input[id="radio-1276-inputE1"]').click() + cy.contains("Next").click() + cy.contains("Finish").click() }) }) diff --git a/chart/values.yaml b/chart/values.yaml index 5c5f88e..33cc31a 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -212,6 +212,7 @@ secret: mountPath: /nexus-data/admin.password subPath: admin.password readOnly: true + setAdminPassword: "" serviceAccount: # Specifies whether a service account should be created diff --git a/tests/test-values.yml b/tests/test-values.yml index 666e6dd..ac373de 100644 --- a/tests/test-values.yml +++ b/tests/test-values.yml @@ -1,8 +1,13 @@ +secret: + setAdminPassword: "Password123!" bbtests: enabled: true cypress: artifacts: true envs: cypress_nexus_url: "http://nexus-nexus-repository-manager:8081" + cypress_nexus_user: "admin" + cypress_nexus_pass: "Password123!" + cypress_nexus_pass_new: "new_admin_password" networkPolicies: enabled: true \ No newline at end of file -- GitLab From 5c40a924db063ee742deb10d151b34d21b1a92c3 Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Tue, 8 Jun 2021 11:27:05 -0600 Subject: [PATCH 06/33] cypress --- chart/tests/cypress/nexus-healthspec.js | 1 + 1 file changed, 1 insertion(+) diff --git a/chart/tests/cypress/nexus-healthspec.js b/chart/tests/cypress/nexus-healthspec.js index 80a5097..774205b 100644 --- a/chart/tests/cypress/nexus-healthspec.js +++ b/chart/tests/cypress/nexus-healthspec.js @@ -1,6 +1,7 @@ describe('Basic prometheus', function() { it('Visits the prometheus sign in page', function() { cy.visit(Cypress.env('nexus_url')) + cy.contains("Sign in").click() cy.get('input[name="username"]').type(Cypress.env('nexus_user')) cy.get('input[name="password"]').type(Cypress.env('nexus_pass')) cy.contains("Sign in").click() -- GitLab From 5c98f849e7d05e1c7a212164d1689ddaa4bbfa36 Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Tue, 8 Jun 2021 11:39:07 -0600 Subject: [PATCH 07/33] cypress np --- .../networkpolicies/helm-test-allow.yaml | 19 +++++++++++++++++++ chart/tests/cypress/nexus-healthspec.js | 6 +++--- 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 chart/templates/bigbang/networkpolicies/helm-test-allow.yaml diff --git a/chart/templates/bigbang/networkpolicies/helm-test-allow.yaml b/chart/templates/bigbang/networkpolicies/helm-test-allow.yaml new file mode 100644 index 0000000..319b034 --- /dev/null +++ b/chart/templates/bigbang/networkpolicies/helm-test-allow.yaml @@ -0,0 +1,19 @@ +{{- $bbtests := .Values.bbtests | default dict -}} +{{- $enabled := (hasKey $bbtests "enabled") -}} +{{- if $enabled }} +{{- if and .Values.networkPolicies.enabled .Values.bbtests.enabled }} +apiVersion: networking.k8s.io/v1 +kind: NetworkPolicy +metadata: + name: allow-helm-test-egress + namespace: {{ .Release.Namespace }} +spec: + podSelector: + matchLabels: + helm-test: enabled + policyTypes: + - Egress + egress: + - {} +{{- end }} +{{- end }} diff --git a/chart/tests/cypress/nexus-healthspec.js b/chart/tests/cypress/nexus-healthspec.js index 774205b..3fdd929 100644 --- a/chart/tests/cypress/nexus-healthspec.js +++ b/chart/tests/cypress/nexus-healthspec.js @@ -1,10 +1,10 @@ -describe('Basic prometheus', function() { - it('Visits the prometheus sign in page', function() { +describe('Basic Nexus', function() { + it('Visits the Nexus sign in page', function() { cy.visit(Cypress.env('nexus_url')) cy.contains("Sign in").click() cy.get('input[name="username"]').type(Cypress.env('nexus_user')) cy.get('input[name="password"]').type(Cypress.env('nexus_pass')) - cy.contains("Sign in").click() + cy.get('a[id="button-1169"]').click() cy.contains("Next").click() cy.get('input[name="password"]').type(Cypress.env('nexus_pass_new')) cy.get('input[name="nx-password-1265-input-E1"]').type(Cypress.env('nexus_pass_new')) -- GitLab From 11f09a1b99b097864945f1f7cd7d94c8f6e64b4f Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Tue, 8 Jun 2021 11:47:55 -0600 Subject: [PATCH 08/33] cypress --- chart/tests/cypress/nexus-healthspec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/tests/cypress/nexus-healthspec.js b/chart/tests/cypress/nexus-healthspec.js index 3fdd929..4030bb0 100644 --- a/chart/tests/cypress/nexus-healthspec.js +++ b/chart/tests/cypress/nexus-healthspec.js @@ -7,7 +7,7 @@ describe('Basic Nexus', function() { cy.get('a[id="button-1169"]').click() cy.contains("Next").click() cy.get('input[name="password"]').type(Cypress.env('nexus_pass_new')) - cy.get('input[name="nx-password-1265-input-E1"]').type(Cypress.env('nexus_pass_new')) + cy.get('input[name="nx-password-1192-inputE1"]').type(Cypress.env('nexus_pass_new')) cy.contains("Next").click() cy.get('input[id="radio-1276-inputE1"]').click() cy.contains("Next").click() -- GitLab From f6e12fd06e96d73f1cbce69de55ba8a53feaef5a Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Tue, 8 Jun 2021 11:58:04 -0600 Subject: [PATCH 09/33] cypress --- chart/tests/cypress/nexus-healthspec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chart/tests/cypress/nexus-healthspec.js b/chart/tests/cypress/nexus-healthspec.js index 4030bb0..e7c88ff 100644 --- a/chart/tests/cypress/nexus-healthspec.js +++ b/chart/tests/cypress/nexus-healthspec.js @@ -7,9 +7,9 @@ describe('Basic Nexus', function() { cy.get('a[id="button-1169"]').click() cy.contains("Next").click() cy.get('input[name="password"]').type(Cypress.env('nexus_pass_new')) - cy.get('input[name="nx-password-1192-inputE1"]').type(Cypress.env('nexus_pass_new')) + cy.get('input[name*="nx-password"]').type(Cypress.env('nexus_pass_new')) cy.contains("Next").click() - cy.get('input[id="radio-1276-inputE1"]').click() + cy.contains("Disable anonymous access").click() cy.contains("Next").click() cy.contains("Finish").click() }) -- GitLab From 5b9870d6286a19aaea3e5b4e87630bd7640139fc Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Tue, 8 Jun 2021 12:35:41 -0600 Subject: [PATCH 10/33] cypess --- chart/tests/cypress/nexus-healthspec.js | 2 +- tests/test-values.yml | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/chart/tests/cypress/nexus-healthspec.js b/chart/tests/cypress/nexus-healthspec.js index e7c88ff..357817c 100644 --- a/chart/tests/cypress/nexus-healthspec.js +++ b/chart/tests/cypress/nexus-healthspec.js @@ -4,7 +4,7 @@ describe('Basic Nexus', function() { cy.contains("Sign in").click() cy.get('input[name="username"]').type(Cypress.env('nexus_user')) cy.get('input[name="password"]').type(Cypress.env('nexus_pass')) - cy.get('a[id="button-1169"]').click() + cy.get('a[id*="button"]').should('have.value', 'Next').click() cy.contains("Next").click() cy.get('input[name="password"]').type(Cypress.env('nexus_pass_new')) cy.get('input[name*="nx-password"]').type(Cypress.env('nexus_pass_new')) diff --git a/tests/test-values.yml b/tests/test-values.yml index ac373de..eb53b74 100644 --- a/tests/test-values.yml +++ b/tests/test-values.yml @@ -9,5 +9,17 @@ bbtests: cypress_nexus_user: "admin" cypress_nexus_pass: "Password123!" cypress_nexus_pass_new: "new_admin_password" + networkPolicies: + enabled: true + +nexus: + docker: + enabled: true + registries: + - host: nexus-registry.bigbang.dev + port: 5000 + # secretName: registrySecret + +istio: enabled: true \ No newline at end of file -- GitLab From 5b4bcfa07831db8d4c30e645a63235079b027bdf Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Tue, 8 Jun 2021 12:36:29 -0600 Subject: [PATCH 11/33] cypess --- tests/test-values.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/tests/test-values.yml b/tests/test-values.yml index eb53b74..709b5b5 100644 --- a/tests/test-values.yml +++ b/tests/test-values.yml @@ -12,14 +12,3 @@ bbtests: networkPolicies: enabled: true - -nexus: - docker: - enabled: true - registries: - - host: nexus-registry.bigbang.dev - port: 5000 - # secretName: registrySecret - -istio: - enabled: true \ No newline at end of file -- GitLab From 04788b1805c1e7416e67b6dcfd2e7d03fa90e99d Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Tue, 8 Jun 2021 14:38:23 -0600 Subject: [PATCH 12/33] cypress --- chart/tests/cypress/nexus-healthspec.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chart/tests/cypress/nexus-healthspec.js b/chart/tests/cypress/nexus-healthspec.js index 357817c..e0abefa 100644 --- a/chart/tests/cypress/nexus-healthspec.js +++ b/chart/tests/cypress/nexus-healthspec.js @@ -1,14 +1,15 @@ describe('Basic Nexus', function() { - it('Visits the Nexus sign in page', function() { + it('Visit the Nexus sign in page', function() { cy.visit(Cypress.env('nexus_url')) cy.contains("Sign in").click() cy.get('input[name="username"]').type(Cypress.env('nexus_user')) cy.get('input[name="password"]').type(Cypress.env('nexus_pass')) - cy.get('a[id*="button"]').should('have.value', 'Next').click() + cy.get('a[id="button-1169"]').click() cy.contains("Next").click() cy.get('input[name="password"]').type(Cypress.env('nexus_pass_new')) cy.get('input[name*="nx-password"]').type(Cypress.env('nexus_pass_new')) cy.contains("Next").click() + cy.get('a[id*="button"]').should('have.value', 'Next').click() cy.contains("Disable anonymous access").click() cy.contains("Next").click() cy.contains("Finish").click() -- GitLab From 5ac31127cd2b2b036c02c742a8088d89d94d1975 Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Tue, 8 Jun 2021 14:44:41 -0600 Subject: [PATCH 13/33] cypress --- chart/tests/cypress/nexus-healthspec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/tests/cypress/nexus-healthspec.js b/chart/tests/cypress/nexus-healthspec.js index e0abefa..b703100 100644 --- a/chart/tests/cypress/nexus-healthspec.js +++ b/chart/tests/cypress/nexus-healthspec.js @@ -8,8 +8,8 @@ describe('Basic Nexus', function() { cy.contains("Next").click() cy.get('input[name="password"]').type(Cypress.env('nexus_pass_new')) cy.get('input[name*="nx-password"]').type(Cypress.env('nexus_pass_new')) + cy.wait(5000) cy.contains("Next").click() - cy.get('a[id*="button"]').should('have.value', 'Next').click() cy.contains("Disable anonymous access").click() cy.contains("Next").click() cy.contains("Finish").click() -- GitLab From 391c49f441e9c9342ea7c05cce8e4bef1be6702b Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Tue, 8 Jun 2021 14:52:32 -0600 Subject: [PATCH 14/33] cypress --- chart/tests/cypress/nexus-healthspec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/tests/cypress/nexus-healthspec.js b/chart/tests/cypress/nexus-healthspec.js index b703100..c1b8074 100644 --- a/chart/tests/cypress/nexus-healthspec.js +++ b/chart/tests/cypress/nexus-healthspec.js @@ -9,7 +9,7 @@ describe('Basic Nexus', function() { cy.get('input[name="password"]').type(Cypress.env('nexus_pass_new')) cy.get('input[name*="nx-password"]').type(Cypress.env('nexus_pass_new')) cy.wait(5000) - cy.contains("Next").click() + cy.contains("Next").click({ force: true }) cy.contains("Disable anonymous access").click() cy.contains("Next").click() cy.contains("Finish").click() -- GitLab From f5ca1a1b62e9bc0260cea1cff943c09d49cce0f6 Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Tue, 8 Jun 2021 14:58:25 -0600 Subject: [PATCH 15/33] cypress --- chart/tests/cypress/nexus-healthspec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chart/tests/cypress/nexus-healthspec.js b/chart/tests/cypress/nexus-healthspec.js index c1b8074..e3f1a8f 100644 --- a/chart/tests/cypress/nexus-healthspec.js +++ b/chart/tests/cypress/nexus-healthspec.js @@ -10,8 +10,8 @@ describe('Basic Nexus', function() { cy.get('input[name*="nx-password"]').type(Cypress.env('nexus_pass_new')) cy.wait(5000) cy.contains("Next").click({ force: true }) - cy.contains("Disable anonymous access").click() - cy.contains("Next").click() + cy.contains("Disable anonymous access").click({ force: true }) + cy.contains("Next").click({ force: true }) cy.contains("Finish").click() }) }) -- GitLab From ace5e065416c1ecf22abbcb1cbc8b8afb2ddb0e5 Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Tue, 8 Jun 2021 21:28:36 +0000 Subject: [PATCH 16/33] bump --- chart/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/Chart.yaml b/chart/Chart.yaml index 72d5305..078e4ff 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: nexus-repository-manager -version: 29.1.0-bb.1 +version: 29.1.0-bb.2 appVersion: 3.29.0 description: Sonatype Nexus Repository Manager - Universal Binary repository type: application -- GitLab From 99aad4a490620cf3508500a2ba47a44a16cf8e41 Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Tue, 8 Jun 2021 21:31:44 +0000 Subject: [PATCH 17/33] Update CHANGELOG.md --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4dc68c6..cd76094 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1,11 @@ # Changelog +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +--- +## [29.1.0-bb.2] - 2021-06-08 +### Modified +- Modified CI tests to use new library and infrastructure + +### Added +- Network policy for helm-tests to save artifacts -- GitLab From 4820521c5ffc7a7f043c1476c357bab473d9a8bd Mon Sep 17 00:00:00 2001 From: Micah Nagel Date: Tue, 8 Jun 2021 16:05:04 -0600 Subject: [PATCH 18/33] don't dump data --- chart/templates/NOTES.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chart/templates/NOTES.txt b/chart/templates/NOTES.txt index 026bdc7..ae0df1b 100644 --- a/chart/templates/NOTES.txt +++ b/chart/templates/NOTES.txt @@ -1,7 +1,7 @@ 1. Get the application URL by running these commands: {{- if .Values.ingress.enabled }} - http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $.Values.ingress.hostRepo }}{{ . }} - http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $.Values.ingress.hostDocker }}{{ . }} + http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $.Values.ingress.hostRepo }} + http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $.Values.ingress.hostDocker }} {{- else if contains "NodePort" .Values.service.serviceType }} export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "nexus.fullname" . }}) export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") -- GitLab From 54565415e3d81e58afee6cd79a8e849a48820521 Mon Sep 17 00:00:00 2001 From: Micah Nagel Date: Tue, 8 Jun 2021 16:12:56 -0600 Subject: [PATCH 19/33] ingress off by default --- chart/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/values.yaml b/chart/values.yaml index 33cc31a..4e25681 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -39,7 +39,7 @@ sso: # -- End of BigBang Additions ingress: - enabled: true + enabled: false annotations: {kubernetes.io/ingress.class: nginx} # kubernetes.io/ingress.class: nginx # kubernetes.io/tls-acme: "true" -- GitLab From 8eccb0b9d6b58c5a64c6a6443e41d052fd7e876d Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Tue, 8 Jun 2021 16:17:36 -0600 Subject: [PATCH 20/33] server-status --- chart/tests/cypress/nexus-healthspec.js | 1 + tests/test-values.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/chart/tests/cypress/nexus-healthspec.js b/chart/tests/cypress/nexus-healthspec.js index e3f1a8f..6447edb 100644 --- a/chart/tests/cypress/nexus-healthspec.js +++ b/chart/tests/cypress/nexus-healthspec.js @@ -13,5 +13,6 @@ describe('Basic Nexus', function() { cy.contains("Disable anonymous access").click({ force: true }) cy.contains("Next").click({ force: true }) cy.contains("Finish").click() + cy.visit("Cypress.env('nexus_url')/#admin/support/status") }) }) diff --git a/tests/test-values.yml b/tests/test-values.yml index 709b5b5..ab6e542 100644 --- a/tests/test-values.yml +++ b/tests/test-values.yml @@ -11,4 +11,4 @@ bbtests: cypress_nexus_pass_new: "new_admin_password" networkPolicies: - enabled: true + enabled: true \ No newline at end of file -- GitLab From 1bf77ff83f5489573d3a37e748b6465d4e7fbc97 Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Tue, 8 Jun 2021 16:23:48 -0600 Subject: [PATCH 21/33] cypress --- chart/tests/cypress/nexus-healthspec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/tests/cypress/nexus-healthspec.js b/chart/tests/cypress/nexus-healthspec.js index 6447edb..c49d055 100644 --- a/chart/tests/cypress/nexus-healthspec.js +++ b/chart/tests/cypress/nexus-healthspec.js @@ -13,6 +13,6 @@ describe('Basic Nexus', function() { cy.contains("Disable anonymous access").click({ force: true }) cy.contains("Next").click({ force: true }) cy.contains("Finish").click() - cy.visit("Cypress.env('nexus_url')/#admin/support/status") + cy.visit(`Cypress.env('nexus_url')/#admin/support/status`) }) }) -- GitLab From c18d554bf10ba6de64e115352affe579c1474536 Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Tue, 8 Jun 2021 16:24:32 -0600 Subject: [PATCH 22/33] cypress again --- chart/tests/cypress/nexus-healthspec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/tests/cypress/nexus-healthspec.js b/chart/tests/cypress/nexus-healthspec.js index c49d055..5ac556b 100644 --- a/chart/tests/cypress/nexus-healthspec.js +++ b/chart/tests/cypress/nexus-healthspec.js @@ -13,6 +13,6 @@ describe('Basic Nexus', function() { cy.contains("Disable anonymous access").click({ force: true }) cy.contains("Next").click({ force: true }) cy.contains("Finish").click() - cy.visit(`Cypress.env('nexus_url')/#admin/support/status`) + cy.visit(`${Cypress.env('nexus_url')}/#admin/support/status`) }) }) -- GitLab From 02ac687cedd7298ee0d9e6aeca0a968543abaf36 Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Tue, 8 Jun 2021 16:30:39 -0600 Subject: [PATCH 23/33] cypress again --- chart/tests/cypress/nexus-healthspec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chart/tests/cypress/nexus-healthspec.js b/chart/tests/cypress/nexus-healthspec.js index 5ac556b..1ba5420 100644 --- a/chart/tests/cypress/nexus-healthspec.js +++ b/chart/tests/cypress/nexus-healthspec.js @@ -8,11 +8,12 @@ describe('Basic Nexus', function() { cy.contains("Next").click() cy.get('input[name="password"]').type(Cypress.env('nexus_pass_new')) cy.get('input[name*="nx-password"]').type(Cypress.env('nexus_pass_new')) - cy.wait(5000) cy.contains("Next").click({ force: true }) cy.contains("Disable anonymous access").click({ force: true }) cy.contains("Next").click({ force: true }) cy.contains("Finish").click() cy.visit(`${Cypress.env('nexus_url')}/#admin/support/status`) + cy.scrollTo('bottom') + cy.wait(5000) }) }) -- GitLab From 19505d076f61db4fa7a8cb4eea5f72c54a933c4d Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Tue, 8 Jun 2021 16:35:54 -0600 Subject: [PATCH 24/33] cypress again --- chart/tests/cypress/nexus-healthspec.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/chart/tests/cypress/nexus-healthspec.js b/chart/tests/cypress/nexus-healthspec.js index 1ba5420..cf12058 100644 --- a/chart/tests/cypress/nexus-healthspec.js +++ b/chart/tests/cypress/nexus-healthspec.js @@ -13,7 +13,5 @@ describe('Basic Nexus', function() { cy.contains("Next").click({ force: true }) cy.contains("Finish").click() cy.visit(`${Cypress.env('nexus_url')}/#admin/support/status`) - cy.scrollTo('bottom') - cy.wait(5000) }) }) -- GitLab From a4367c6e4d1adb56c1dd10b510e1e0ab4048e20d Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Wed, 9 Jun 2021 14:24:02 +0000 Subject: [PATCH 25/33] Update test-values.yml --- tests/test-values.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tests/test-values.yml b/tests/test-values.yml index ab6e542..db9200d 100644 --- a/tests/test-values.yml +++ b/tests/test-values.yml @@ -1,5 +1,5 @@ -secret: - setAdminPassword: "Password123!" +#secret: + #setAdminPassword: "Password123!" bbtests: enabled: true cypress: @@ -7,8 +7,14 @@ bbtests: envs: cypress_nexus_url: "http://nexus-nexus-repository-manager:8081" cypress_nexus_user: "admin" - cypress_nexus_pass: "Password123!" + #cypress_nexus_pass: "Password123!" cypress_nexus_pass_new: "new_admin_password" + secretEnvs: + - name: cypress_nexus_pass + valueFrom: + secretKeyRef: + name: nexus-repository-manager-secret + key: admin.password networkPolicies: - enabled: true \ No newline at end of file + enabled: true -- GitLab From fdf873d2b030c3b1c0c1c3635d2d896dddc36594 Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Wed, 9 Jun 2021 14:31:39 +0000 Subject: [PATCH 26/33] Update secret.yaml --- chart/templates/bigbang/secret.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/chart/templates/bigbang/secret.yaml b/chart/templates/bigbang/secret.yaml index 2a81ca5..8ebeabb 100644 --- a/chart/templates/bigbang/secret.yaml +++ b/chart/templates/bigbang/secret.yaml @@ -12,11 +12,7 @@ metadata: {{- end }} {{- end }} data: - {{- if .Values.secret.setAdminPassword }} - admin.password: {{ .Values.secret.setAdminPassword | b64enc | quote }} - {{- else }} admin.password: {{ randAlphaNum 10 | b64enc | quote }} - {{- end }} admin.username: YWRtaW4K {{- end}} {{- end}} -- GitLab From a8a23f9092762450d177ad5ce587e0d09d951564 Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Wed, 9 Jun 2021 14:32:05 +0000 Subject: [PATCH 27/33] Update values.yaml --- chart/values.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/chart/values.yaml b/chart/values.yaml index 4e25681..e3995bd 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -212,7 +212,6 @@ secret: mountPath: /nexus-data/admin.password subPath: admin.password readOnly: true - setAdminPassword: "" serviceAccount: # Specifies whether a service account should be created -- GitLab From 0219ce607c195011841ca5bf413a461219b61959 Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Wed, 9 Jun 2021 14:32:37 +0000 Subject: [PATCH 28/33] Update test-values.yml --- tests/test-values.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/test-values.yml b/tests/test-values.yml index db9200d..4493791 100644 --- a/tests/test-values.yml +++ b/tests/test-values.yml @@ -1,5 +1,3 @@ -#secret: - #setAdminPassword: "Password123!" bbtests: enabled: true cypress: @@ -7,7 +5,6 @@ bbtests: envs: cypress_nexus_url: "http://nexus-nexus-repository-manager:8081" cypress_nexus_user: "admin" - #cypress_nexus_pass: "Password123!" cypress_nexus_pass_new: "new_admin_password" secretEnvs: - name: cypress_nexus_pass -- GitLab From 51231f3de6bf1e74287f07835140bdd1e158302a Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Wed, 9 Jun 2021 14:35:29 +0000 Subject: [PATCH 29/33] Update secret.yaml --- chart/templates/bigbang/secret.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/templates/bigbang/secret.yaml b/chart/templates/bigbang/secret.yaml index 8ebeabb..6195fea 100644 --- a/chart/templates/bigbang/secret.yaml +++ b/chart/templates/bigbang/secret.yaml @@ -12,7 +12,7 @@ metadata: {{- end }} {{- end }} data: - admin.password: {{ randAlphaNum 10 | b64enc | quote }} + admin.password: {{ randAlphaNum 12 | b64enc | quote }} admin.username: YWRtaW4K {{- end}} {{- end}} -- GitLab From 7fadccdd7e3b379f4c3dc06bcd38a8772e273dc6 Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Thu, 10 Jun 2021 15:55:06 +0000 Subject: [PATCH 30/33] Update CHANGELOG.md --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cbb51d7..1e04781 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [29.1.0-bb.3] - 2021-06-08 +### Modified +- Modified CI tests to use new library and infrastructure + +### Added +- Network policy for helm-tests to save artifacts + ## [29.1.0-bb.2] # Added * default-deny-all network policy -- GitLab From bf89fe628fe6757b8817fa3e1061aa14ec1aa0a4 Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Thu, 10 Jun 2021 15:55:23 +0000 Subject: [PATCH 31/33] Update Chart.yaml --- chart/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/Chart.yaml b/chart/Chart.yaml index 078e4ff..ed5e087 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: nexus-repository-manager -version: 29.1.0-bb.2 +version: 29.1.0-bb.3 appVersion: 3.29.0 description: Sonatype Nexus Repository Manager - Universal Binary repository type: application -- GitLab From b67b0a8f7e500c41695a2d0001ab35a929beb3f6 Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Thu, 10 Jun 2021 16:02:27 +0000 Subject: [PATCH 32/33] Add new file --- .../networkpolicies/namespace-allow.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 chart/templates/bigbang/networkpolicies/namespace-allow.yaml diff --git a/chart/templates/bigbang/networkpolicies/namespace-allow.yaml b/chart/templates/bigbang/networkpolicies/namespace-allow.yaml new file mode 100644 index 0000000..97a841c --- /dev/null +++ b/chart/templates/bigbang/networkpolicies/namespace-allow.yaml @@ -0,0 +1,18 @@ +{{- if .Values.networkPolicies.enabled }} +apiVersion: networking.k8s.io/v1 +kind: NetworkPolicy +metadata: + name: allow-in-ns + namespace: {{ .Release.Namespace }} +spec: + podSelector: {} + policyTypes: + - Ingress + - Egress + ingress: + - from: + - podSelector: {} + egress: + - to: + - podSelector: {} +{{- end }} -- GitLab From ff8a5394e13504b10028d1438f1f2a19855ff35e Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Thu, 10 Jun 2021 10:16:36 -0600 Subject: [PATCH 33/33] cypress fix --- chart/tests/cypress/nexus-healthspec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/tests/cypress/nexus-healthspec.js b/chart/tests/cypress/nexus-healthspec.js index cf12058..6bcbd75 100644 --- a/chart/tests/cypress/nexus-healthspec.js +++ b/chart/tests/cypress/nexus-healthspec.js @@ -4,7 +4,7 @@ describe('Basic Nexus', function() { cy.contains("Sign in").click() cy.get('input[name="username"]').type(Cypress.env('nexus_user')) cy.get('input[name="password"]').type(Cypress.env('nexus_pass')) - cy.get('a[id="button-1169"]').click() + cy.get('a[class="x-btn x-unselectable x-box-item x-toolbar-item x-btn-nx-primary-small"]').click() cy.contains("Next").click() cy.get('input[name="password"]').type(Cypress.env('nexus_pass_new')) cy.get('input[name*="nx-password"]').type(Cypress.env('nexus_pass_new')) -- GitLab