Sha256: 83ca2c1e74c6edb8177361968312f21653862c6533ce31b5476aa4e5a8f77c3c
Contents?: true
Size: 483 Bytes
Versions: 35
Compression:
Stored size: 483 Bytes
Contents
describe Kubes::Compiler::Dsl::Syntax::NetworkPolicy do let(:evaluator) { described_class.new(options) } let(:options) { {path: fixture("syntax/.kubes/resources/web/network_policy") } } context "network_policy" do it "run" do data = evaluator.run expect(data['kind']).to eq "NetworkPolicy" # fromMatchLabels from = data['spec']['ingress'].first['from'].first expect(from['podSelector']['matchLabels']['run']).to eq "tester" end end end
Version data entries
35 entries across 35 versions & 1 rubygems