diff --git a/test/deploy/linux/kubernetes/minikube/roles/prepare/tasks/main.yml b/test/deploy/linux/kubernetes/minikube/roles/prepare/tasks/main.yml index c58e4ade..a695a590 100644 --- a/test/deploy/linux/kubernetes/minikube/roles/prepare/tasks/main.yml +++ b/test/deploy/linux/kubernetes/minikube/roles/prepare/tasks/main.yml @@ -56,7 +56,7 @@ - name: Configure minikube driver shell: 'minikube config set driver docker' when: is_minikube_installed.stdout|int == 0 - + - name: Start Minikube shell: 'minikube start --memory 8192 --cpus 4 --kubernetes-version=v1.26.1' @@ -70,3 +70,26 @@ - name: Get list of pods shell: 'kubectl get pods --all-namespaces' + +- name: Download the Helm binary + shell: 'wget https://get.helm.sh/helm-v3.8.0-linux-amd64.tar.gz' + become: true + +- name: Extract the Helm archive + shell: 'tar -xvf helm-v3.8.0-linux-amd64.tar.gz' + +# Adjust the permissions as needed +- name: Give all permissions to the Helm binary file + shell: | + chmod -R 777 /home/ec2-user/linux-amd64 + become: true + +- name: Move the Helm executable to a system directory + shell: mv linux-amd64/helm /usr/local/bin/ + become: true + +- name: Update the systems's PATH environmenta variable + shell: echo "export PATH=$:/usr/local/bin/" | sudo tee -a /etc/profile + +- name: Resolve path issues + shell: "echo export PATH=$PATH:/usr/bin/ >> ~/.bashrc" \ No newline at end of file diff --git a/test/deploy/onboarding-tests/roles/configure/tasks/main.yml b/test/deploy/onboarding-tests/roles/configure/tasks/main.yml deleted file mode 100755 index 8d294708..00000000 --- a/test/deploy/onboarding-tests/roles/configure/tasks/main.yml +++ /dev/null @@ -1,53 +0,0 @@ ---- -- debug: - msg: Tests E2E - -- name: Set test account email from Synthetic secrets - set_fact: - "test_email": "{{ test_email }}" - -- name: Set test account password from Synthetic secrets - set_fact: - "test_password": "{{ test_password }}" - -- name: Create directory - shell: "mkdir -p ~/tests && chmod 777 ~/tests" - -- name: Install Git on Linux - become: yes - yum: - name: git - state: present - -- name: Clone the Onboarding tests repository - git: - repo: https://github.com/newrelic/onboarding-e2e-tests.git - dest: ~/tests/onboarding-e2e-tests - -- name: Change directory for Onboarding tests - shell: "cd ~/tests/onboarding-e2e-tests && pwd" - -- name: Create env file - shell: "touch ~/tests/onboarding-e2e-tests/.env" - -- name: Store values in env file - shell: | - echo "ENV_SECRET_EMAIL='{{ test_email }}' \nENV_SECRET_PASSWORD='{{test_password }}'" >> ~/tests/onboarding-e2e-tests/.env - -- name: Write Permissions for repo - shell: "chmod 755 ~/tests/onboarding-e2e-tests" - -- name: npm install - shell: "npm install" - args: - chdir: ~/tests/onboarding-e2e-tests - -- name: Install Playwright - shell: "npx playwright@1.32.0 install --with-deps chromium" - args: - chdir: ~/tests/onboarding-e2e-tests - -- name: Test playwright scripts - shell: "npx playwright test --config=playwright.config.validations.js" - args: - chdir: ~/tests/onboarding-e2e-tests