Skip to content

Commit 41c8a27

Browse files
committed
(DO NOT MERGE) infrastructure to stub out missing bits from Resource API
1 parent 4609f77 commit 41c8a27

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
RSpec.shared_examples 'a transport forwarder' do
2+
let(:url) do
3+
# some tempfile
4+
end
5+
6+
before(:each) do
7+
# write out config to URL
8+
# stub
9+
end
10+
11+
it('inherits from Puppet::ResourceApi::Transport::Forwarder') { expect(described_class.superclass).to eq Puppet::ResourceApi::Transport::Forwarder }
12+
end

lib/puppet/util/network_device/panos/device.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
require 'puppet/resource_api'
22
require 'puppet/util/network_device'
33

4+
module Puppet::ResourceApi::Transport
5+
class Forwarder # rubocop:disable Style/Documentation
6+
def initialize(url, config); end
7+
end
8+
end
9+
410
module Puppet::Util::NetworkDevice::Panos
511
class Device < Puppet::ResourceApi::Transport::Forwarder
612
end

0 commit comments

Comments
 (0)