end
newproperty(:ctdir) do
+ desc <<-PUPPETCODE
+ Matches a packet that is flowing in the specified direction.
+ If this flag is not specified at all, matches packets in both directions.
+ Values can be:
+
+ * REPLY
+ * ORIGINAL
+ PUPPETCODE
+
newvalues(:REPLY, :ORIGINAL)
end
end
end
+ describe ':ctdir' do
+ it 'accepts value as a string - REPLY' do
+ resource[:ctdir] = :REPLY
+ expect(resource[:ctdir]).to be :REPLY
+ end
+
+ it 'accepts value as a string - ORIGINAL' do
+ resource[:ctdir] = :ORIGINAL
+ expect(resource[:ctdir]).to be :ORIGINAL
+ end
+ end
+
describe ':burst' do
it 'accepts numeric values' do
resource[:burst] = 12