File: openstack_extras_auth_file_spec.rb

package info (click to toggle)
puppet-module-openstack-extras 25.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 492 kB
  • sloc: ruby: 844; sh: 62; python: 36; makefile: 10
file content (24 lines) | stat: -rw-r--r-- 515 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require 'spec_helper_acceptance'

describe 'openstack_extras::auth_file' do

  context 'default parameters' do

    it 'should work with no errors' do
      pp= <<-EOS
        class { 'openstack_extras::auth_file':
          password => 'secret',
        }
      EOS


      # Run it twice and test for idempotency
      apply_manifest(pp, :catch_failures => true)
      apply_manifest(pp, :catch_changes => true)
    end

    describe file('/root/openrc') do
      it  { is_expected.to be_file }
    end
  end
end