Skip to content

Commit

Permalink
Fix nonregression tests (#982)
Browse files Browse the repository at this point in the history
* chore(e2e): Update ubuntu 16 AMIs

* chore(e2e): Fix ubuntu 16 host collisions

* chore(e2e): Fix invalid resource ID

* chore(e2e): Rename ubuntu16 resource ids

* chore(e2e): Update manual ubuntu16 AMI

* chore(e2e): Avoid id collision
  • Loading branch information
rthorn-nr authored Oct 20, 2023
1 parent fcabf76 commit 3459db4
Show file tree
Hide file tree
Showing 8 changed files with 151 additions and 138 deletions.
10 changes: 6 additions & 4 deletions test/definitions-eu/apm/java/deb10-sysd-jboss.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"resources": [
{
"id": "jboss",
"id": "deb10-jboss",
"provider": "aws",
"type": "ec2",
"size": "t3.micro",
Expand All @@ -21,15 +21,17 @@
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/linux/jboss/systemd/install/linux/roles",
"port": 6001,
"destinations": ["jboss"]
"destinations": [
"deb10-jboss"
]
}
],
"instrumentations": {
"resources": [
{
"id": "jbossRecipe",
"resource_ids": [
"jboss"
"deb10-jboss"
],
"provider": "newrelic",
"source_repository": "https://github.com/newrelic/open-install-library.git",
Expand All @@ -42,7 +44,7 @@
{
"id": "recipeValidation",
"resource_ids": [
"jboss"
"deb10-jboss"
],
"provider": "newrelic",
"source_repository": "https://github.com/newrelic/open-install-library.git",
Expand Down
48 changes: 25 additions & 23 deletions test/definitions-eu/infra-agent/debians/ubuntu16-infra.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,31 @@
"Department": "product",
"Product": "virtuoso"
},

"resources": [{
"id": "host1",
"provider": "aws",
"type": "ec2",
"size": "t3.nano",
"ami_name": "ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-????????",
"user_name": "ubuntu"
}],

"resources": [
{
"id": "ubuntu16-infra-eu",
"provider": "aws",
"type": "ec2",
"size": "t3.nano",
"ami_name": "ubuntu-pro-server/images/hvm-ssd/ubuntu-xenial-16.04-amd64-pro-server-????????",
"user_name": "ubuntu"
}
],
"instrumentations": {
"resources": [
{
"id": "nr_infra",
"resource_ids": ["host1"],
"provider": "newrelic",
"source_repository": "https://github.com/newrelic/open-install-library",
"deploy_script_path": "test/deploy/linux/newrelic-cli/install/roles",
"params": {
"local_recipes": true,
"validate_output": "Infrastructure Agent\\s+\\(installed\\)"
}
}
]
}
{
"id": "nr_infra",
"resource_ids": [
"ubuntu16-infra-eu"
],
"provider": "newrelic",
"source_repository": "https://github.com/newrelic/open-install-library",
"deploy_script_path": "test/deploy/linux/newrelic-cli/install/roles",
"params": {
"local_recipes": true,
"validate_output": "Infrastructure Agent\\s+\\(installed\\)"
}
}
]
}
}
50 changes: 26 additions & 24 deletions test/definitions-eu/otel/debians/ubuntu16-otel.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,32 @@
"Department": "product",
"Product": "virtuoso"
},

"resources": [{
"id": "host1",
"provider": "aws",
"type": "ec2",
"size": "t3.nano",
"ami_name": "ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-????????",
"user_name": "ubuntu"
}],

"resources": [
{
"id": "ubuntu16-otel-eu",
"provider": "aws",
"type": "ec2",
"size": "t3.nano",
"ami_name": "ubuntu-pro-server/images/hvm-ssd/ubuntu-xenial-16.04-amd64-pro-server-????????",
"user_name": "ubuntu"
}
],
"instrumentations": {
"resources": [
{
"id": "nr_infra_otel",
"resource_ids": ["host1"],
"provider": "newrelic",
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/otel/debian.yml",
"validate_output": "New Relic OpenTelemetry Collector\\s+\\(installed\\)",
"recipe_targeted": "newrelic-opentelemetry-collector"
}
}
]
}
{
"id": "nr_otel",
"resource_ids": [
"ubuntu16-otel-eu"
],
"provider": "newrelic",
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/otel/debian.yml",
"validate_output": "New Relic OpenTelemetry Collector\\s+\\(installed\\)",
"recipe_targeted": "newrelic-opentelemetry-collector"
}
}
]
}
}
50 changes: 26 additions & 24 deletions test/definitions-eu/super-agent/debians/ubuntu16-super-agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,32 @@
"Department": "product",
"Product": "virtuoso"
},

"resources": [{
"id": "host1",
"provider": "aws",
"type": "ec2",
"size": "t3.nano",
"ami_name": "ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-????????",
"user_name": "ubuntu"
}],

"resources": [
{
"id": "ubuntu16-super-eu",
"provider": "aws",
"type": "ec2",
"size": "t3.nano",
"ami_name": "ubuntu-pro-server/images/hvm-ssd/ubuntu-xenial-16.04-amd64-pro-server-????????",
"user_name": "ubuntu"
}
],
"instrumentations": {
"resources": [
{
"id": "nr_super_agent",
"resource_ids": ["host1"],
"provider": "newrelic",
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/debian.yml",
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
"recipe_targeted": "super-agent"
}
}
]
}
{
"id": "nr_super_agent",
"resource_ids": [
"ubuntu16-super-eu"
],
"provider": "newrelic",
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/debian.yml",
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
"recipe_targeted": "super-agent"
}
}
]
}
}
50 changes: 26 additions & 24 deletions test/definitions/otel/debians/ubuntu16-otel.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,32 @@
"Department": "product",
"Product": "virtuoso"
},

"resources": [{
"id": "host1",
"provider": "aws",
"type": "ec2",
"size": "t3.nano",
"ami_name": "ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-????????",
"user_name": "ubuntu"
}],

"resources": [
{
"id": "ubuntu16-otel",
"provider": "aws",
"type": "ec2",
"size": "t3.nano",
"ami_name": "ubuntu-pro-server/images/hvm-ssd/ubuntu-xenial-16.04-amd64-pro-server-????????",
"user_name": "ubuntu"
}
],
"instrumentations": {
"resources": [
{
"id": "nr_infra_otel",
"resource_ids": ["host1"],
"provider": "newrelic",
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/otel/debian.yml",
"validate_output": "New Relic OpenTelemetry Collector\\s+\\(installed\\)",
"recipe_targeted": "newrelic-opentelemetry-collector"
}
}
]
}
{
"id": "nr_otel",
"resource_ids": [
"ubuntu16-otel"
],
"provider": "newrelic",
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/otel/debian.yml",
"validate_output": "New Relic OpenTelemetry Collector\\s+\\(installed\\)",
"recipe_targeted": "newrelic-opentelemetry-collector"
}
}
]
}
}
10 changes: 5 additions & 5 deletions test/definitions/smoke/rhl2-sysd-jboss.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"resources": [
{
"id": "jboss",
"id": "rhel-jboss",
"provider": "aws",
"type": "ec2",
"size": "t3.micro",
Expand All @@ -22,7 +22,7 @@
"deploy_script_path": "test/deploy/linux/jboss/systemd/install/linux/roles",
"port": 6001,
"destinations": [
"jboss"
"rhel-jboss"
]
}
],
Expand All @@ -31,7 +31,7 @@
{
"id": "jbossRecipe",
"resource_ids": [
"jboss"
"rhel-jboss"
],
"provider": "newrelic",
"source_repository": "https://github.com/newrelic/open-install-library.git",
Expand All @@ -44,7 +44,7 @@
{
"id": "recipeValidation",
"resource_ids": [
"jboss"
"rhel-jboss"
],
"provider": "newrelic",
"source_repository": "https://github.com/newrelic/open-install-library.git",
Expand All @@ -55,4 +55,4 @@
}
]
}
}
}
50 changes: 26 additions & 24 deletions test/definitions/super-agent/debians/ubuntu16-super-agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,32 @@
"Department": "product",
"Product": "virtuoso"
},

"resources": [{
"id": "host1",
"provider": "aws",
"type": "ec2",
"size": "t3.nano",
"ami_name": "ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-????????",
"user_name": "ubuntu"
}],

"resources": [
{
"id": "ubuntu16-super",
"provider": "aws",
"type": "ec2",
"size": "t3.nano",
"ami_name": "ubuntu-pro-server/images/hvm-ssd/ubuntu-xenial-16.04-amd64-pro-server-????????",
"user_name": "ubuntu"
}
],
"instrumentations": {
"resources": [
{
"id": "nr_super_agent",
"resource_ids": ["host1"],
"provider": "newrelic",
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/debian.yml",
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
"recipe_targeted": "super-agent"
}
}
]
}
{
"id": "nr_super_agent",
"resource_ids": [
"ubuntu16-super"
],
"provider": "newrelic",
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/super-agent/debian.yml",
"validate_output": "New Relic Super Agent\\s+\\(installed\\)",
"recipe_targeted": "super-agent"
}
}
]
}
}
21 changes: 11 additions & 10 deletions test/manual/definitions/infra-agent/ubuntu16-infra.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
"Department": "product",
"Product": "virtuoso"
},

"resources": [{
"id": "infraubuntu16",
"provider": "aws",
"type": "ec2",
"size": "t3.nano",
"ami_name": "ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-????????",
"user_name": "ubuntu"
}]
}
"resources": [
{
"id": "infraubuntu16",
"provider": "aws",
"type": "ec2",
"size": "t3.nano",
"ami_name": "ubuntu-pro-server/images/hvm-ssd/ubuntu-xenial-16.04-amd64-pro-server-????????",
"user_name": "ubuntu"
}
]
}

0 comments on commit 3459db4

Please sign in to comment.