consuldemocracy / consuldemocracy

Consul Democracy - Open Government and E-Participation Web Software

Home Page:https://consuldemocracy.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flaky spec: Tenants Create Tenant with subdomain

javierm opened this issue · comments

References

Failure

   1) Tenants Create Tenant with subdomain
     Failure/Error:
       raise TenantNotFound, <<~EXCEPTION_MESSAGE
         Could not set search path to schemas, they may be invalid: "#{tenant}" #{full_search_path}.
         Original error: #{exception.class}: #{exception}
       EXCEPTION_MESSAGE

     Apartment::TenantNotFound:
       Could not set search path to schemas, they may be invalid: "earth" "public", "shared_extensions".
       Original error: ActiveRecord::StatementInvalid: Could not find schema earth

    (...)

     # ActiveRecord::StatementInvalid:
     #   Could not find schema earth
     #   /home/runner/work/consul/consul/vendor/bundle/ruby/3.0.0/gems/ros-apartment-2.11.0/lib/apartment/adapters/postgresql_adapter.rb:75:in `connect_to_new'