Problem/Motivation

Non-public schema testing for Postgres appears to depend on the database configuration allowing on-the-fly schema creation or... something like that? Ensure the schema exists before testing it.

Steps to reproduce

Working on an issue that makes changes to code invoked by NonPublicSchemaTest::testIndex(). Went to re-create it locally and got:

Invalid schema name: 7 ERROR: schema "testing_fake" does not exist

Seems that there's something different about the pgsql server's configuration or whatever on CI vs. locally that allows for the non-standard schema name to be used on the fly.

Proposed resolution

Ensure the testing schema is present.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3411403

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bradjones1 created an issue. See original summary.

bradjones1’s picture

Status: Active » Needs review
bradjones1’s picture

I think this tracks to #1060476-110: Multiple issues when PostgreSQL is used with non-public schema - the CI pgsql environment has this schema already defined.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Since it's a test don't see any issue adding this line. And didn't seem to break anything leaning on that.

longwave’s picture

Version: 11.x-dev » 10.2.x-dev
Status: Reviewed & tested by the community » Fixed

Committed and pushed ebb73695b2 to 11.x and 285dc9cf53 to 10.2.x. Thanks!

  • longwave committed 285dc9cf on 10.2.x
    Issue #3411403 by bradjones1: pgsql module's NonPublicSchemaTest can...

  • longwave committed ebb73695 on 11.x
    Issue #3411403 by bradjones1: pgsql module's NonPublicSchemaTest can...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.