From aca809f593a1e28c24103bfde3dda7ca19770208 Mon Sep 17 00:00:00 2001 From: Justin Webster Date: Tue, 7 Dec 2021 16:55:39 -0800 Subject: [PATCH] coverage: bosh_agent_util_spec.rb: Added some pending specs for uncovered lines of code. Related to commit #c38b3026f9512491ffcb70be7088b4d3e319fdc0 (for issue #491). --- .../spec/unit/utils/bosh_agent_util_spec.rb | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/bosh_azure_cpi/spec/unit/utils/bosh_agent_util_spec.rb b/src/bosh_azure_cpi/spec/unit/utils/bosh_agent_util_spec.rb index d58703855..11d1df798 100644 --- a/src/bosh_azure_cpi/spec/unit/utils/bosh_agent_util_spec.rb +++ b/src/bosh_azure_cpi/spec/unit/utils/bosh_agent_util_spec.rb @@ -33,6 +33,24 @@ allow(config).to receive(:agent).and_return({'mbus' => 'http://u:p@somewhere'}) end + # TODO: coverage: need to implement the following specs to increase coverage + # The uncovered code seems to be related to commit #c38b3026f9512491ffcb70be7088b4d3e319fdc0 (for issue #491). + describe '#encoded_user_data' do # rubocop:disable RSpec/RepeatedExampleGroupBody + it 'should return correct value' + end + + # TODO: coverage: need to implement the following specs to increase coverage + # The uncovered code seems to be related to commit #c38b3026f9512491ffcb70be7088b4d3e319fdc0 (for issue #491). + describe '#encode_user_data' do # rubocop:disable RSpec/RepeatedExampleGroupBody + it 'should return correct value' + end + + # TODO: coverage: need to implement the following specs to increase coverage + # The uncovered code seems to be related to commit #c38b3026f9512491ffcb70be7088b4d3e319fdc0 (for issue #491). + describe '#meta_data_obj' do # rubocop:disable RSpec/RepeatedExampleGroupBody + it 'should return correct value' + end + describe '#user_data_obj' do context 'when using registry' do let(:uses_registry) { true } @@ -106,5 +124,11 @@ expect(user_data).to eq(expected_user_data) end end + + # TODO: coverage: need to implement the following specs to increase coverage + # The uncovered code seems to be related to commit #c38b3026f9512491ffcb70be7088b4d3e319fdc0 (for issue #491). + context 'when computer_name is specified' do + it 'should include the instance-id in the returned value' + end end end \ No newline at end of file