Skip to content

Commit b890725

Browse files
Merge pull request #1016 from cloudfoundry/azure-polishing
Polishing for Azure App Insights testing & Rubocop
2 parents 8229200 + fd68ad3 commit b890725

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/java_buildpack/framework/azure_application_insights_agent.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ def compile
3333

3434
# (see JavaBuildpack::Component::BaseComponent#release)
3535
def release
36-
credentials = @application.services.find_service(FILTER, [CONNECTION_STRING, INSTRUMENTATION_KEY])['credentials']
36+
credentials = @application.services.find_service(FILTER, [CONNECTION_STRING,
37+
INSTRUMENTATION_KEY])['credentials']
3738

3839
if credentials.key?(CONNECTION_STRING)
3940
@droplet.java_opts.add_system_property('applicationinsights.connection.string',

spec/java_buildpack/framework/azure_application_insights_agent_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@
3434

3535
before do
3636
allow(services).to receive(:one_service?).with(/azure-application-insights/,
37-
'connection_string',
38-
'instrumentation_key')
37+
%w[connection_string instrumentation_key])
3938
.and_return(true)
4039
end
4140

0 commit comments

Comments
 (0)