Skip to content

Commit

Permalink
added template test for 'enable-container-network-metrics'
Browse files Browse the repository at this point in the history
  • Loading branch information
JVecsei1 authored and geofffranks committed Aug 24, 2023
1 parent e04ccf8 commit d369135
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions spec/jobs/garden_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,24 @@
it 'sets the time-format' do
expect(rendered_template['server']['time-format']).to eql('unix-epoch')
end

it 'does not enable the container network metrics' do
expect(rendered_template['server']['enable-container-network-metrics']).to eql(nil)
end

context 'when container network metrics are enabled' do
let(:properties) {
{
'garden' => {
'enable_container_network_metrics' => true,
}
}
}

it 'sets the enable container network metrics to true' do
expect(rendered_template['server']['enable-container-network-metrics']).to eql(true)
end
end
end

context 'with a listen address' do
Expand Down

0 comments on commit d369135

Please sign in to comment.