Skip to content

Commit

Permalink
SALTO-6154: Using ts-node for cred_store scripts (#6136)
Browse files Browse the repository at this point in the history
  • Loading branch information
yelly authored Jun 30, 2024
1 parent 93b5f88 commit b03c3ac
Show file tree
Hide file tree
Showing 12 changed files with 69 additions and 32 deletions.
10 changes: 10 additions & 0 deletions packages/confluence-adapter/e2e_test/cred_store
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env ts-node

const { cli } = require('@salto-io/e2e-credentials-store')
const adapter = require('./credentials_store/adapter').default

cli.main({
adapters: {
confluence: adapter,
},
})
6 changes: 0 additions & 6 deletions packages/confluence-adapter/e2e_test/creds_store

This file was deleted.

10 changes: 7 additions & 3 deletions packages/google-workspace-adapter/e2e_test/cred_store
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/env node
require('@salto-io/e2e-credentials-store').cli.main({
#!/usr/bin/env ts-node

const { cli } = require('@salto-io/e2e-credentials-store')
const adapter = require('./credentials_store/adapter').default

cli.main({
adapters: {
'google-workspace': require('../dist/e2e_test/credentials_store/adapter').default,
'google-workspace': adapter,
},
})
12 changes: 8 additions & 4 deletions packages/jira-adapter/e2e_test/cred_store
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/usr/bin/env node
require('@salto-io/e2e-credentials-store').cli.main({
#!/usr/bin/env ts-node

const { cli } = require('@salto-io/e2e-credentials-store')
const adapter = require('./credentials_store/adapter').default

cli.main({
adapters: {
jira: require('../dist/e2e_test/credentials_store/adapter').default,
jira_datacenter: require('../dist/e2e_test/credentials_store/adapter').default,
jira: adapter,
jira_datacenter: adapter,
},
})
10 changes: 7 additions & 3 deletions packages/netsuite-adapter/e2e_test/cred_store
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/env node
require('@salto-io/e2e-credentials-store').cli.main({
#!/usr/bin/env ts-node

const { cli } = require('@salto-io/e2e-credentials-store')
const adapter = require('./credentials_store/adapter').default

cli.main({
adapters: {
netsuite: require('../dist/e2e_test/credentials_store/adapter').default,
netsuite: adapter,
},
})
10 changes: 7 additions & 3 deletions packages/okta-adapter/e2e_test/cred_store
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/env node
require('@salto-io/e2e-credentials-store').cli.main({
#!/usr/bin/env ts-node

const { cli } = require('@salto-io/e2e-credentials-store')
const adapter = require('./credentials_store/adapter').default

cli.main({
adapters: {
okta: require('../dist/e2e_test/credentials_store/adapter').default,
okta: adapter,
},
})
10 changes: 7 additions & 3 deletions packages/salesforce-adapter/e2e_test/cred_store
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/env node
require('@salto-io/e2e-credentials-store').cli.main({
#!/usr/bin/env ts-node

const { cli } = require('@salto-io/e2e-credentials-store')
const adapter = require('./credentials_store/adapter').default

cli.main({
adapters: {
salesforce: require('../dist/e2e_test/credentials_store/adapter').default,
salesforce: adapter,
},
})
10 changes: 7 additions & 3 deletions packages/stripe-adapter/e2e_test/cred_store
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/env node
require('@salto-io/e2e-credentials-store').cli.main({
#!/usr/bin/env ts-node

const { cli } = require('@salto-io/e2e-credentials-store')
const adapter = require('./credentials_store/adapter').default

cli.main({
adapters: {
stripe: require('../dist/e2e_test/credentials_store/adapter').default,
stripe: adapter,
},
})
10 changes: 7 additions & 3 deletions packages/zendesk-adapter/e2e_test/cred_store
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/env node
require('@salto-io/e2e-credentials-store').cli.main({
#!/usr/bin/env ts-node

const { cli } = require('@salto-io/e2e-credentials-store')
const adapter = require('./credentials_store/adapter').default

cli.main({
adapters: {
zendesk: require('../dist/e2e_test/credentials_store/adapter').default,
zendesk: adapter,
},
})
10 changes: 7 additions & 3 deletions packages/zuora-billing-adapter/e2e_test/cred_store
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/env node
require('@salto-io/e2e-credentials-store').cli.main({
#!/usr/bin/env ts-node

const { cli } = require('@salto-io/e2e-credentials-store')
const adapter = require('./credentials_store/adapter').default

cli.main({
adapters: {
zuora_billing: require('../dist/e2e_test/credentials_store/adapter').default,
zuora_billing: adapter,
},
})
3 changes: 2 additions & 1 deletion salto.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
{
"name": "jamf-adapter",
"path": "packages/jamf-adapter",
}
},
],
"settings": {
"files.exclude": {
Expand All @@ -162,6 +162,7 @@
"createable",
"creds",
"customizer",
"datacenter",
"datasource",
"DATETIME",
"ducktype",
Expand Down

0 comments on commit b03c3ac

Please sign in to comment.