#    Copyright 2015 Mirantis, Inc.
#
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
#    not use this file except in compliance with the License. You may obtain
#    a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.
require 'spec_helper'

describe 'lma_logging_analytics::kibana' do
    let(:facts) do
        {:kernel => 'Linux', :operatingsystem => 'Ubuntu',
         :concat_basedir => '/foo'}
    end

    it { should compile }
end

#    Copyright 2015 Mirantis, Inc.
#
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
#    not use this file except in compliance with the License. You may obtain
#    a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.
require 'spec_helper'

describe 'lma_logging_analytics::kibana' do
    let(:facts) do
        {:kernel => 'Linux', :operatingsystem => 'Ubuntu',
         :concat_basedir => '/foo'}
    end

    it { should create_file('/opt/kibana')}
    it { should create_file('/opt/kibana/config.js')}
    it { should create_file('/opt/kibana/app/dashboards/logs.json')}
    it { should create_file('/opt/kibana/app/dashboards/notifications.json')}
    it { should create_elasticsearch__template('kibana')}
    it { should create_lma_logging_analytics__kibana_dashboard('logs')}
    it { should create_lma_logging_analytics__kibana_dashboard('notifications')}
    it { should create_class('nginx')}
end

Update Puppet tests for Kibana class
Update Puppet tests for Kibana class

The 'should compile' directive is too dependant of local environment,
and failed with Facter option conflicts, let's replace it by more
specific tests.

Change-Id: I01156525c10f71e9b9f66481d15db2181ef99730
