From 74eab4a698ef0be15826e135a8b7f21984c064bc Mon Sep 17 00:00:00 2001 From: NSSPKrishna Date: Mon, 12 Aug 2024 15:59:23 +0530 Subject: [PATCH] test: Super-agent's rhel updated flow --- .../super-agent/rhel/redhat7-super-agent.json | 61 +++++++++---------- 1 file changed, 30 insertions(+), 31 deletions(-) diff --git a/test/definitions/super-agent/rhel/redhat7-super-agent.json b/test/definitions/super-agent/rhel/redhat7-super-agent.json index b755da94..e8b04c1e 100644 --- a/test/definitions/super-agent/rhel/redhat7-super-agent.json +++ b/test/definitions/super-agent/rhel/redhat7-super-agent.json @@ -1,35 +1,34 @@ { - "global_tags": { - "owning_team": "virtuoso", - "Environment": "development", - "Department": "product", - "Product": "virtuoso" - }, + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + "resources": [ + { + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.micro", + "ami_name": "RHEL_HA-7.?_HVM-????????-x86_64-?-Hourly2-GP2" + } + ], + "instrumentations": { "resources": [ - { - "id": "host1", - "provider": "aws", - "type": "ec2", - "size": "t3.micro", - "ami_name": "RHEL_HA-7.?_HVM-????????-x86_64-?-Hourly2-GP2" + { + "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/rhel.yml", + "validate_output": "New Relic Super Agent\\s+\\(installed\\)", + "recipe_targeted": "super-agent", + "use_organization_id": true } - ], - "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/rhel.yml", - "validate_output": "New Relic Super Agent\\s+\\(installed\\)", - "recipe_targeted": "super-agent" - } - } - ] - } + } + ] + } }