-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
e2e tests for s3,snowflake,supabase and ethereum (#110)
e2e tests for s3,snowflake,supabase and ethereum
- Loading branch information
Showing
12 changed files
with
219 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
app_name: eth-smartcontracts-sample | ||
version: 1 | ||
connections: | ||
- config: !Ethereum | ||
provider: !Log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,3 @@ endpoints: | |
primary_key: | ||
- C_CUSTKEY | ||
- C_NAME | ||
|
||
api: | ||
app_grpc: | ||
host: "{{APP_HOST}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,3 @@ endpoints: | |
- name: zone_data | ||
path: /zone_data | ||
table_name: zone_data | ||
|
||
api: | ||
app_grpc: | ||
host: "{{APP_HOST}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { execSync } from 'child_process'; | ||
import path from 'path'; | ||
|
||
import { | ||
assertEndpointsWithRetry, initDozer, | ||
} from '../helper'; | ||
|
||
const TEST_PATH = './connectors/ethereum'; | ||
|
||
describe('Connectors: ethereum', async () => { | ||
beforeEach(async () => { | ||
const baseDir = path.join(__dirname, '../../'); | ||
const fullPath = path.join(baseDir, TEST_PATH); | ||
process.chdir(fullPath); | ||
|
||
console.log(`Current directory: ${process.cwd()}`); | ||
|
||
execSync('rm -rf .dozer && rm -f dozer.lock', { stdio: 'inherit' }); | ||
}); | ||
|
||
it('should run and return API endpoints', async () => { | ||
const dozer = await initDozer(); | ||
await assertEndpointsWithRetry(); | ||
dozer.kill(); | ||
console.log('Killed Dozer Ethereum'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { execSync } from 'child_process'; | ||
import path from 'path'; | ||
|
||
import { | ||
assertEndpointsWithRetry, initDozer, | ||
} from '../helper'; | ||
|
||
const TEST_PATH = './connectors/aws-s3'; | ||
|
||
describe('Connectors: aws-s3', async () => { | ||
beforeEach(async () => { | ||
const baseDir = path.join(__dirname, '../../'); | ||
const fullPath = path.join(baseDir, TEST_PATH); | ||
process.chdir(fullPath); | ||
|
||
console.log(`Current directory: ${process.cwd()}`); | ||
|
||
execSync('rm -rf .dozer && rm -f dozer.lock', { stdio: 'inherit' }); | ||
}); | ||
|
||
it('should run and return API endpoints', async () => { | ||
const dozer = await initDozer(); | ||
await assertEndpointsWithRetry(); | ||
dozer.kill(); | ||
console.log('Killed Dozer aws-s3'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { execSync } from 'child_process'; | ||
import path from 'path'; | ||
|
||
import { | ||
assertEndpointsWithRetry, initDozer, | ||
} from '../helper'; | ||
|
||
const TEST_PATH = './connectors/snowflake'; | ||
|
||
describe('Connectors: Snowflake', async () => { | ||
beforeEach(async () => { | ||
const baseDir = path.join(__dirname, '../../'); | ||
const fullPath = path.join(baseDir, TEST_PATH); | ||
process.chdir(fullPath); | ||
|
||
console.log(`Current directory: ${process.cwd()}`); | ||
|
||
execSync('rm -rf .dozer && rm -f dozer.lock', { stdio: 'inherit' }); | ||
}); | ||
|
||
it('should run and return API endpoints', async () => { | ||
const dozer = await initDozer(); | ||
await assertEndpointsWithRetry(); | ||
dozer.kill(); | ||
console.log('Killed Dozer Snowflake'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { execSync } from 'child_process'; | ||
import path from 'path'; | ||
|
||
import { | ||
assertEndpointsWithRetry, initDozer, | ||
} from '../helper'; | ||
|
||
const TEST_PATH = './connectors/supabase'; | ||
|
||
describe('Connectors: Supabase', async () => { | ||
beforeEach(async () => { | ||
const baseDir = path.join(__dirname, '../../'); | ||
const fullPath = path.join(baseDir, TEST_PATH); | ||
process.chdir(fullPath); | ||
|
||
console.log(`Current directory: ${process.cwd()}`); | ||
|
||
execSync('rm -rf .dozer && rm -f dozer.lock', { stdio: 'inherit' }); | ||
}); | ||
|
||
it('should run and return API endpoints', async () => { | ||
const dozer = await initDozer(); | ||
await assertEndpointsWithRetry(); | ||
dozer.kill(); | ||
console.log('Killed Dozer Supabase'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters