Skip to content
This repository has been archived by the owner on Dec 13, 2019. It is now read-only.

Commit

Permalink
Remove postgresql custom connector (#2585)
Browse files Browse the repository at this point in the history
  • Loading branch information
snario committed Nov 6, 2019
1 parent e9aa4ad commit c5e0f97
Show file tree
Hide file tree
Showing 19 changed files with 11 additions and 618 deletions.
9 changes: 0 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,6 @@ jobs:
run-tests:
docker:
- image: circleci/node:10.15.3
environment:
POSTGRES_HOST: 127.0.0.1
POSTGRES_USER: postgres
POSTGRES_DATABASE: postgres
POSTGRES_PORT: 5432

- image: circleci/postgres:9.6.15-alpine
environment:
POSTGRES_USER: postgres

steps:
- <<: *restore_code
Expand Down
8 changes: 1 addition & 7 deletions packages/node/.env.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,4 @@ FIREBASE_DEV_SERVER_PORT=9999
FIREBASE_MESSAGING_SERVER_KEY="messageKey"
FIREBASE_STORE_SERVER_KEY="storeKey"
FIREBASE_STORE_PREFIX_KEY="dev-store"
GANACHE_PORT="8545"
POSTGRES_USER="postgres"
POSTGRES_HOST="localhost"
POSTGRES_DATABASE="postgres"
POSTGRES_PASSWORD=""
POSTGRES_PORT=5432
POSTGRES_STORE_KEY="dev"
GANACHE_PORT="8545"
1 change: 0 additions & 1 deletion packages/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"@counterfactual/apps": "0.1.14",
"@counterfactual/firebase-server": "0.0.5",
"@counterfactual/local-ganache-server": "0.0.10",
"@counterfactual/postgresql-node-connector": "0.0.8",
"@types/chai": "4.2.4",
"@types/dotenv-safe": "5.0.4",
"ganache-core": "2.8.0",
Expand Down
3 changes: 0 additions & 3 deletions packages/node/test/integration/connext-issue.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,6 @@ describe("Can update and install multiple apps simultaneously", () => {
* - Validating a signature with expected signer 0xFFF but recovered 0xAAA
* - cannot find agreement with target hash 0xCCC
* - hanging on client or node
*
* These errors were successfully reproduced by connext in the `test-bot-farm`
* script, both with the postgres store and the memory store.
*/

it("should be able to redeem a pregenerated linked payment while simultaneously receiving a direct transfer", async done => {
Expand Down

This file was deleted.

28 changes: 0 additions & 28 deletions packages/node/test/integration/setup.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { CF_PATH } from "@counterfactual/local-ganache-server";
import { PostgresServiceFactory } from "@counterfactual/postgresql-node-connector";
import { Node as NodeTypes } from "@counterfactual/types";
import { Wallet } from "ethers";
import {
Expand Down Expand Up @@ -30,33 +29,6 @@ export interface SetupContext {
[nodeName: string]: NodeContext;
}

export async function setupWithMemoryMessagingAndPostgresStore(
global: any,
nodeCPresent: boolean = false,
newExtendedPrvKeys: boolean = false
): Promise<SetupContext> {
const memoryMessagingService = new MemoryMessagingService();

const postgresServiceFactory = new PostgresServiceFactory({
type: "postgres",
database: process.env.POSTGRES_DATABASE!,
username: process.env.POSTGRES_USER!,
host: process.env.POSTGRES_HOST!,
password: process.env.POSTGRES_PASSWORD!,
port: Number(process.env.POSTGRES_PORT!)
});

await postgresServiceFactory.connectDb();

return setup(
global,
nodeCPresent,
newExtendedPrvKeys,
memoryMessagingService,
postgresServiceFactory
);
}

export async function setup(
global: any,
nodeCPresent: boolean = false,
Expand Down
67 changes: 0 additions & 67 deletions packages/node/test/integration/uninstall-with-postgres.spec.ts

This file was deleted.

6 changes: 0 additions & 6 deletions packages/postgresql-node-connector/.env.defaults

This file was deleted.

5 changes: 0 additions & 5 deletions packages/postgresql-node-connector/.env.schema

This file was deleted.

5 changes: 0 additions & 5 deletions packages/postgresql-node-connector/README.md

This file was deleted.

8 changes: 0 additions & 8 deletions packages/postgresql-node-connector/jest.config.js

This file was deleted.

34 changes: 0 additions & 34 deletions packages/postgresql-node-connector/package.json

This file was deleted.

22 changes: 0 additions & 22 deletions packages/postgresql-node-connector/rollup.config.js

This file was deleted.

10 changes: 0 additions & 10 deletions packages/postgresql-node-connector/src/entity/NodeRecord.ts

This file was deleted.

0 comments on commit c5e0f97

Please sign in to comment.