Skip to content

Commit

Permalink
chore(e2e): Extend yum lock timeout for failing deploy scripts (#943)
Browse files Browse the repository at this point in the history
* chore(e2e): Extend yum lock t/o for failing deploy scripts

* trigger validation

* restore rpm install
  • Loading branch information
rthorn-nr authored Jul 13, 2023
1 parent 0dbe2ba commit 882ddc4
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 19 deletions.
10 changes: 5 additions & 5 deletions test/definitions/apm/dotNet/linux/linux2-aspnetcore5.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"resources": [
{
"id": "linux2host1",
"id": "host1",
"provider": "aws",
"type": "ec2",
"size": "t3.micro",
Expand All @@ -19,7 +19,7 @@
{
"id": "aspnetcore",
"destinations": [
"linux2host1"
"host1"
],
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/linux/dotNet/install/rhel/roles",
Expand All @@ -28,7 +28,7 @@
{
"id": "apache1",
"destinations": [
"linux2host1"
"host1"
],
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/linux/apache/install/rhel/roles",
Expand All @@ -37,7 +37,7 @@
{
"id": "dotnet1",
"destinations": [
"linux2host1"
"host1"
],
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/linux/apache/deploy-application/dotNet/rhel/roles",
Expand All @@ -49,7 +49,7 @@
{
"id": "dotnet2",
"destinations": [
"linux2host1"
"host1"
],
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/linux/apache/deploy-application/dotNet/rhel/roles",
Expand Down
12 changes: 6 additions & 6 deletions test/definitions/smoke/linux2-aspnetcore5.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"resources": [
{
"id": "linux2host1",
"id": "smokehost1",
"provider": "aws",
"type": "ec2",
"size": "t3.micro",
Expand All @@ -19,7 +19,7 @@
{
"id": "aspnetcore",
"destinations": [
"linux2host1"
"smokehost1"
],
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/linux/dotNet/install/rhel/roles",
Expand All @@ -28,7 +28,7 @@
{
"id": "apache1",
"destinations": [
"linux2host1"
"smokehost1"
],
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/linux/apache/install/rhel/roles",
Expand All @@ -37,7 +37,7 @@
{
"id": "dotnet1",
"destinations": [
"linux2host1"
"smokehost1"
],
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/linux/apache/deploy-application/dotNet/rhel/roles",
Expand All @@ -51,7 +51,7 @@
{
"id": "dotnet2",
"destinations": [
"linux2host1"
"smokehost1"
],
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/linux/apache/deploy-application/dotNet/rhel/roles",
Expand All @@ -66,7 +66,7 @@
{
"id": "cli1",
"resource_ids": [
"linux2host1"
"smokehost1"
],
"provider": "newrelic",
"source_repository": "https://github.com/newrelic/open-install-library.git",
Expand Down
2 changes: 1 addition & 1 deletion test/definitions/smoke/mysql-rhel.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
---

- name: Update packages
shell: yum update -y
ansible.builtin.yum:
name: '*'
state: latest
lock_timeout: 180
become: true

- name: Install depends
shell: yum install libicu unzip -y
become: true
- name: Install dependencies
ansible.builtin.yum:
name:
- libicu
- unzip
state: latest
lock_timeout: 180
become: true
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
ansible.builtin.yum:
name: https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
state: present
lock_timeout: 180
become: true

- name: Install .NET SDK 7.0 and ASP.NET Core 7.0 runtime
Expand All @@ -16,4 +17,5 @@
- dotnet-sdk-7.0
- aspnetcore-runtime-7.0
state: latest
lock_timeout: 180
become: true
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
become: true

- name: Add MySQL Repository
yum:
ansible.builtin.yum:
name: "{{ mysql_rpm_file }}"
state: present
lock_timeout: 180
Expand All @@ -41,8 +41,11 @@
shell: "rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022"
become: true

- name: Install the MySQL
shell: "yum install mysql-community-server -y"
- name: Install MySQL
ansible.builtin.yum:
name: mysql-community-server
state: present
lock_timeout: 180
become: true

- name: Install systemctl
Expand Down

0 comments on commit 882ddc4

Please sign in to comment.