Open nmatsui opened 1 year ago
pxr-ver-1.0/doc/導入ガイドライン/ビルド手順書/ビルド手順書_pxr-certification-authority-service_v1.1.pdfの「3.1 DBを作成する」に従ってSchemaとTableを構築しようとしたが、~/ddl/db/pxr-certification-authority-serviceというディレクトリは無く、createDB.sqlやcreateTable.sqlはリポジトリ内に存在しない。
~/ddl/db/pxr-certification-authority-service
postgresユーザーでpxr-ver-1.0/database/pxr-certification-authority-serviceのcreateTable.sqlを実行すると、postgresユーザーにスキーマとテーブルが作成されるため、ユニットテストが失敗する。 例)
error: password authentication failed for user "pxr_certification_authority_user"
$ psql -U postgres -d pxr_pod ---- pxr_pod=# CREATE USER pxr_certification_authority_user WITH PASSWORD 'pxr_password'; pxr_pod=# CREATE SCHEMA pxr_certification_authority AUTHORIZATION pxr_certification_authority_user;
pxr_certification_authority_user
$ psql -U pxr_certification_authority_user -d pxr_pod -f createTable.sql
現在の状況
pxr-ver-1.0/doc/導入ガイドライン/ビルド手順書/ビルド手順書_pxr-certification-authority-service_v1.1.pdfの「3.1 DBを作成する」に従ってSchemaとTableを構築しようとしたが、
~/ddl/db/pxr-certification-authority-service
というディレクトリは無く、createDB.sqlやcreateTable.sqlはリポジトリ内に存在しない。postgresユーザーでpxr-ver-1.0/database/pxr-certification-authority-serviceのcreateTable.sqlを実行すると、postgresユーザーにスキーマとテーブルが作成されるため、ユニットテストが失敗する。 例)
暫定対応
pxr_certification_authority_user
でpxr-ver-1.0/database/pxr-certification-authority-serviceのcreateTable.sqlを実行する。修正内容