Sha256: 720526bdd4675aeb9330f0cee27fceddb177a5ec5a9e406ac4eea5fd114c23a3
Contents?: true
Size: 462 Bytes
Versions: 23
Compression:
Stored size: 462 Bytes
Contents
describe Kubes::Compiler::Dsl::Syntax::NetworkPolicy do let(:evaluator) { described_class.new(options) } let(:options) { {path: fixture("syntax/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
23 entries across 23 versions & 1 rubygems