Skip to content

Commit

Permalink
Ensure e2e tests run against a live tenant
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck committed Aug 31, 2023
1 parent 9fd5767 commit 4e37522
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
8 changes: 3 additions & 5 deletions src/tools/auth0/handlers/emailProvider.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import DefaultHandler from './default';
import { Asset, Assets } from '../../../types';
import { PostProviderRequest } from 'auth0';

export const schema = { type: 'object' };

Expand Down Expand Up @@ -54,14 +55,11 @@ export default class EmailProviderHandler extends DefaultHandler {
}

if (existing.name) {
const provider = { name: emailProvider.name, enabled: emailProvider.enabled };
const updated = await this.client.emails.update(provider, emailProvider);
const updated = await this.client.emails.update(emailProvider);
this.updated += 1;
this.didUpdate(updated);
} else {
// TODO: credentials is required here.
const provider = { name: emailProvider.name, enabled: emailProvider.enabled, credentials: {} };
const created = await this.client.emails.configure(provider, emailProvider);
const created = await this.client.emails.configure(emailProvider as PostProviderRequest);
this.created += 1;
this.didCreate(created);
}
Expand Down
1 change: 0 additions & 1 deletion test/e2e/testdata/empty-tenant/tenant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ branding:
templates: []
prompts:
universal_login_experience: new
migrations: {}
actions: []
triggers: {}
organizations: []
Expand Down
1 change: 0 additions & 1 deletion test/e2e/testdata/lots-of-configuration/tenant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,6 @@ roles:
prompts:
universal_login_experience: new
identifier_first: true
migrations: {}
actions:
- name: My Custom Action
code: ./actions/My Custom Action/code.js
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ branding:
prompts:
customText: {}
universal_login_experience: new
migrations: {}
actions: []
triggers: {}
organizations: []
Expand Down

0 comments on commit 4e37522

Please sign in to comment.