Sha256: 68226eaa685767cc3a575f4a8b98cb39ab60735a031f3271a776fc8f36100070

Contents?: true

Size: 755 Bytes

Versions: 44

Compression:

Stored size: 755 Bytes

Contents

#! /usr/bin/env ruby
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

44 entries across 44 versions & 1 rubygems

Version Path
puppet-6.4.0 spec/unit/other/selinux_spec.rb
puppet-6.4.0-x86-mingw32 spec/unit/other/selinux_spec.rb
puppet-6.4.0-x64-mingw32 spec/unit/other/selinux_spec.rb
puppet-6.4.0-universal-darwin spec/unit/other/selinux_spec.rb
puppet-6.0.7 spec/unit/other/selinux_spec.rb
puppet-6.0.7-x86-mingw32 spec/unit/other/selinux_spec.rb
puppet-6.0.7-x64-mingw32 spec/unit/other/selinux_spec.rb
puppet-6.0.7-universal-darwin spec/unit/other/selinux_spec.rb
puppet-6.3.0 spec/unit/other/selinux_spec.rb
puppet-6.3.0-x86-mingw32 spec/unit/other/selinux_spec.rb
puppet-6.3.0-x64-mingw32 spec/unit/other/selinux_spec.rb
puppet-6.3.0-universal-darwin spec/unit/other/selinux_spec.rb
puppet-6.2.0 spec/unit/other/selinux_spec.rb
puppet-6.2.0-x86-mingw32 spec/unit/other/selinux_spec.rb
puppet-6.2.0-x64-mingw32 spec/unit/other/selinux_spec.rb
puppet-6.2.0-universal-darwin spec/unit/other/selinux_spec.rb
puppet-6.0.5 spec/unit/other/selinux_spec.rb
puppet-6.0.5-x86-mingw32 spec/unit/other/selinux_spec.rb
puppet-6.0.5-x64-mingw32 spec/unit/other/selinux_spec.rb
puppet-6.0.5-universal-darwin spec/unit/other/selinux_spec.rb