require_relative '../../base_data'

module Openstack
  module Services
    module Identity
      class Data
        class KeystoneV3 < ::Openstack::Services::BaseData
          def projects
            # TODO(lsmola) test that not enabled tenat is not throwing refresh exception
            # TOD(lsmola) test that tenant without admin user assigned is not throwing refresh
            # exception
            [{:name => "cloud_admin", :enabled => true, :__domain_name => "admin_domain"},
             {:name => "EmsRefreshSpec-Project", :enabled => true, :__domain_name => "admin_domain"},
             {:name => "EmsRefreshSpec-Project2", :enabled => true, :__domain_name => "admin_domain"},
             {:name => "EmsRefreshSpec-Project-No-Admin-Role", :enabled => true, :__domain_name => "admin_domain"}]
          end

          def roles
            %w(admin heat_stack_owner SwiftOperator)
          end
        end
      end
    end
  end
end
