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

Version Path
kubes-0.5.1 spec/kubes/dsl/network_policy_spec.rb
kubes-0.5.0 spec/kubes/dsl/network_policy_spec.rb
kubes-0.4.7 spec/kubes/dsl/network_policy_spec.rb
kubes-0.4.6 spec/kubes/dsl/network_policy_spec.rb
kubes-0.4.5 spec/kubes/dsl/network_policy_spec.rb
kubes-0.4.4 spec/kubes/dsl/network_policy_spec.rb
kubes-0.4.3 spec/kubes/dsl/network_policy_spec.rb
kubes-0.4.2 spec/kubes/dsl/network_policy_spec.rb
kubes-0.4.1 spec/kubes/dsl/network_policy_spec.rb
kubes-0.4.0 spec/kubes/dsl/network_policy_spec.rb
kubes-0.3.5 spec/kubes/dsl/network_policy_spec.rb
kubes-0.3.4 spec/kubes/dsl/network_policy_spec.rb
kubes-0.3.3 spec/kubes/dsl/network_policy_spec.rb
kubes-0.3.2 spec/kubes/dsl/network_policy_spec.rb
kubes-0.3.1 spec/kubes/dsl/network_policy_spec.rb
kubes-0.3.0 spec/kubes/dsl/network_policy_spec.rb
kubes-0.2.6 spec/kubes/dsl/network_policy_spec.rb
kubes-0.2.5 spec/kubes/dsl/network_policy_spec.rb
kubes-0.2.4 spec/kubes/dsl/network_policy_spec.rb
kubes-0.2.3 spec/kubes/dsl/network_policy_spec.rb