Skip to content

Commit b70b8a4

Browse files
author
Darren Gipson
committed
attempting to correctly reference the hash within the array of instances
1 parent 34c8d8f commit b70b8a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/classes/datadog_agent_integrations_snmp_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@
7171
expect(yaml).to include('init_config')
7272
expect(yaml['init_config']).to include('ignore_nonincreasing_oid')
7373
expect(yaml).to include('instances')
74-
expect(yaml['instances']['tags']).to include('optional_tag_1')
74+
expect(yaml['instances'][0]).to include('tags')
75+
expect(yaml['instances'][0]['tags']).to include('optional_tag_1')
7576
end
7677
end
7778
end

0 commit comments

Comments
 (0)