Sha256: cc1023c58df3c553525a87a8a51e10231e0f2f0f6961fff62552b3a955d56156

Contents?: true

Size: 734 Bytes

Versions: 304

Compression:

Stored size: 734 Bytes

Contents

require 'spec_helper'

describe Puppet::Type.type(:file), " when manipulating file contexts" do
  include PuppetSpec::Files

  before :each do

    @file = Puppet::Type::File.new(
      :name => make_absolute("/tmp/foo"),
      :ensure => "file",
      :seluser => "user_u",
      :selrole => "role_r",
      :seltype => "type_t")
  end

  it "should use :seluser to get/set an SELinux user file context attribute" do
    expect(@file[:seluser]).to eq("user_u")
  end

  it "should use :selrole to get/set an SELinux role file context attribute" do
    expect(@file[:selrole]).to eq("role_r")
  end

  it "should use :seltype to get/set an SELinux user file context attribute" do
    expect(@file[:seltype]).to eq("type_t")
  end
end

Version data entries

304 entries across 304 versions & 1 rubygems

Version Path
puppet-8.3.0 spec/unit/other/selinux_spec.rb
puppet-8.3.0-x86-mingw32 spec/unit/other/selinux_spec.rb
puppet-8.3.0-x64-mingw32 spec/unit/other/selinux_spec.rb
puppet-8.3.0-universal-darwin spec/unit/other/selinux_spec.rb
puppet-8.4.0 spec/unit/other/selinux_spec.rb
puppet-8.4.0-x86-mingw32 spec/unit/other/selinux_spec.rb
puppet-8.4.0-x64-mingw32 spec/unit/other/selinux_spec.rb
puppet-8.4.0-universal-darwin spec/unit/other/selinux_spec.rb
puppet-7.28.0 spec/unit/other/selinux_spec.rb
puppet-7.28.0-x86-mingw32 spec/unit/other/selinux_spec.rb
puppet-7.28.0-x64-mingw32 spec/unit/other/selinux_spec.rb
puppet-7.28.0-universal-darwin spec/unit/other/selinux_spec.rb
puppet-8.3.1 spec/unit/other/selinux_spec.rb
puppet-8.3.1-x86-mingw32 spec/unit/other/selinux_spec.rb
puppet-8.3.1-x64-mingw32 spec/unit/other/selinux_spec.rb
puppet-8.3.1-universal-darwin spec/unit/other/selinux_spec.rb
puppet-7.27.0 spec/unit/other/selinux_spec.rb
puppet-7.27.0-x86-mingw32 spec/unit/other/selinux_spec.rb
puppet-7.27.0-x64-mingw32 spec/unit/other/selinux_spec.rb
puppet-7.27.0-universal-darwin spec/unit/other/selinux_spec.rb