File tree 6 files changed +15
-12
lines changed
6 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 36
36
E2E_BASE_URL : ${{ github.event.deployment_status.environment_url }}
37
37
E2E_TOKEN : ${{ secrets.E2E_TOKEN }}
38
38
E2E_TOKEN_OLD : ${{ secrets.E2E_TOKEN_OLD }}
39
- E2E_USER_ID : ${{ secrets.E2E_USER_ID }}
40
- E2E_USER_ID_OLD : ${{ secrets.E2E_USER_ID_OLD }}
41
- E2E_WORKSPACE_ID : ${{ secrets.E2E_WORKSPACE_ID }}
42
39
QSTASH_TOKEN : ${{ secrets.QSTASH_TOKEN }}
43
40
QSTASH_CURRENT_SIGNING_KEY : ${{ secrets.QSTASH_CURRENT_SIGNING_KEY }}
44
41
NEXT_PUBLIC_NGROK_URL : ${{ github.event.deployment_status.environment_url }}
Original file line number Diff line number Diff line change @@ -7,7 +7,11 @@ import { createId } from "../utils";
7
7
import { includeTags } from "./include-tags" ;
8
8
import { propagateBulkLinkChanges } from "./propagate-bulk-link-changes" ;
9
9
import { updateLinksUsage } from "./update-links-usage" ;
10
- import { checkIfLinksHaveTags , checkIfLinksHaveWebhooks } from "./utils" ;
10
+ import {
11
+ checkIfLinksHaveTags ,
12
+ checkIfLinksHaveWebhooks ,
13
+ transformLink ,
14
+ } from "./utils" ;
11
15
12
16
export async function bulkCreateLinks ( {
13
17
links,
@@ -192,5 +196,5 @@ export async function bulkCreateLinks({
192
196
] ) ,
193
197
) ;
194
198
195
- return finalCreatedLinks ;
199
+ return finalCreatedLinks . map ( transformLink ) ;
196
200
}
Original file line number Diff line number Diff line change @@ -4,9 +4,6 @@ export const integrationTestEnv = z.object({
4
4
E2E_BASE_URL : z . string ( ) . url ( ) . min ( 1 ) ,
5
5
E2E_TOKEN : z . string ( ) . min ( 1 ) ,
6
6
E2E_TOKEN_OLD : z . string ( ) . min ( 1 ) ,
7
- E2E_USER_ID : z . string ( ) . min ( 1 ) ,
8
- E2E_USER_ID_OLD : z . string ( ) . min ( 1 ) ,
9
- E2E_WORKSPACE_ID : z . string ( ) . min ( 1 ) ,
10
7
CI : z . coerce
11
8
. string ( )
12
9
. default ( "false" )
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { type TaskContext } from "vitest";
3
3
import { z } from "zod" ;
4
4
import { env , integrationTestEnv } from "./env" ;
5
5
import { HttpClient } from "./http" ;
6
+ import { E2E_USER_ID , E2E_WORKSPACE_ID } from "./resource" ;
6
7
7
8
interface Resources {
8
9
user : Pick < User , "id" > ;
@@ -31,15 +32,15 @@ export class IntegrationHarnessOld {
31
32
32
33
async init ( ) {
33
34
const user = {
34
- id : this . env . E2E_USER_ID ,
35
+ id : E2E_USER_ID ,
35
36
} ;
36
37
37
38
const apiKey = {
38
39
token : this . env . E2E_TOKEN_OLD ,
39
40
} ;
40
41
41
42
const workspace = {
42
- id : this . env . E2E_WORKSPACE_ID ,
43
+ id : E2E_WORKSPACE_ID ,
43
44
slug : "acme" ,
44
45
name : "Acme, Inc." ,
45
46
} ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { type TaskContext } from "vitest";
3
3
import { z } from "zod" ;
4
4
import { HttpClient } from "../utils/http" ;
5
5
import { env , integrationTestEnv } from "./env" ;
6
+ import { E2E_USER_ID , E2E_WORKSPACE_ID } from "./resource" ;
6
7
7
8
interface Resources {
8
9
user : Pick < User , "id" > ;
@@ -31,15 +32,15 @@ export class IntegrationHarness {
31
32
32
33
async init ( ) {
33
34
const user = {
34
- id : this . env . E2E_USER_ID ,
35
+ id : E2E_USER_ID ,
35
36
} ;
36
37
37
38
const apiKey = {
38
39
token : this . env . E2E_TOKEN ,
39
40
} ;
40
41
41
42
const workspace = {
42
- id : this . env . E2E_WORKSPACE_ID ,
43
+ id : E2E_WORKSPACE_ID ,
43
44
slug : "acme" ,
44
45
name : "Acme, Inc." ,
45
46
webhookEnabled : true ,
Original file line number Diff line number Diff line change
1
+ export const E2E_USER_ID = "cludszk1h0000wmd2e0ea2b0p" ;
2
+ export const E2E_WORKSPACE_ID = "ws_clrei1gld0002vs9mzn93p8ik" ;
3
+
1
4
export const E2E_LINK = {
2
5
domain : "dub.sh" ,
3
6
url : "https://github.com/dubinc" ,
You can’t perform that action at this time.
0 commit comments