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

Version Path
kubes-0.9.3 spec/kubes/dsl/network_policy_spec.rb
kubes-0.9.2 spec/kubes/dsl/network_policy_spec.rb
kubes-0.9.1 spec/kubes/dsl/network_policy_spec.rb
kubes-0.9.0 spec/kubes/dsl/network_policy_spec.rb
kubes-0.8.10 spec/kubes/dsl/network_policy_spec.rb
kubes-0.8.9 spec/kubes/dsl/network_policy_spec.rb
kubes-0.8.8 spec/kubes/dsl/network_policy_spec.rb
kubes-0.8.7 spec/kubes/dsl/network_policy_spec.rb
kubes-0.8.6 spec/kubes/dsl/network_policy_spec.rb
kubes-0.8.5 spec/kubes/dsl/network_policy_spec.rb
kubes-0.8.4 spec/kubes/dsl/network_policy_spec.rb
kubes-0.8.3 spec/kubes/dsl/network_policy_spec.rb
kubes-0.8.2 spec/kubes/dsl/network_policy_spec.rb
kubes-0.8.1 spec/kubes/dsl/network_policy_spec.rb
kubes-0.8.0 spec/kubes/dsl/network_policy_spec.rb
kubes-0.7.10 spec/kubes/dsl/network_policy_spec.rb
kubes-0.7.9 spec/kubes/dsl/network_policy_spec.rb
kubes-0.7.8 spec/kubes/dsl/network_policy_spec.rb
kubes-0.7.7 spec/kubes/dsl/network_policy_spec.rb
kubes-0.7.6 spec/kubes/dsl/network_policy_spec.rb