Skip to content

Commit

Permalink
fix: restore necessary deleted files
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAure committed Jan 21, 2025
1 parent 3223727 commit 17e1506
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2021, 2024 IBM Corporation and others.
* Copyright (c) 2021, 2025 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -91,7 +91,7 @@ public class ProgrammaticImageTest {
new ImageFromDockerfile().withDockerfileFromBuilder(builder -> builder.from(postgresql.asCanonicalNameString())//
.copy("/docker-entrypoint-initdb.d/initDB.sql", "/docker-entrypoint-initdb.d/initDB.sql")
.build())
.withFileFromFile("/docker-entrypoint-initdb.d/initDB.sql", new File("lib/LibertyFATTestFiles/postgres/scripts/initDB.sql"), 644))
.withFileFromFile("/docker-entrypoint-initdb.d/initDB.sql", new File("lib/LibertyFATTestFiles/postgres/initDB.sql"), 644))
.withExposedPorts(POSTGRE_PORT)
.withEnv("POSTGRES_DB", POSTGRES_DB)
.withEnv("POSTGRES_USER", POSTGRES_USER)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
DROP TABLE IF EXISTS testtable;

-- Create table
CREATE TABLE testtable (
PersonID int,
LastName varchar(255),
FirstName varchar(255),
City varchar(255)
);

-- Insert test data
INSERT INTO testtable (PersonID, LastName, FirstName, City) VALUES (1, 'Doe', 'John', 'Rochester');

0 comments on commit 17e1506

Please sign in to comment.