Skip to content

Commit

Permalink
coverage: bosh_agent_util_spec.rb: Added some pending specs for uncov…
Browse files Browse the repository at this point in the history
…ered lines of code.

Related to commit #c38b3026f9512491ffcb70be7088b4d3e319fdc0 (for issue #491).
  • Loading branch information
Justin-W committed Dec 8, 2021
1 parent b0bb60d commit aca809f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/bosh_azure_cpi/spec/unit/utils/bosh_agent_util_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down Expand Up @@ -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

0 comments on commit aca809f

Please sign in to comment.