@@ -40,10 +40,10 @@ var (
40
40
IDEPublicPort : "23000" ,
41
41
InstanceID : "1943c611-a014-4f4d-bf5d-14ccf0123c60" ,
42
42
Ports : []PortInfo {
43
- {PortSpec : api.PortSpec {Port : 28080 , Target : 38080 , Url : "https://28080-c95fd41c-13d9-4d51-b282-e2be09de207f .test-domain.com/" , Visibility : api .PortVisibility_PORT_VISIBILITY_PUBLIC }},
43
+ {PortSpec : api.PortSpec {Port : 28080 , Target : 38080 , Url : "https://28080-regional-amaranth-smelt-9ba20cc1 .test-domain.com/" , Visibility : api .PortVisibility_PORT_VISIBILITY_PUBLIC }},
44
44
},
45
- URL : "https://c95fd41c-13d9-4d51-b282-e2be09de207f .test-domain.com/" ,
46
- WorkspaceID : "c95fd41c-13d9-4d51-b282-e2be09de207f " ,
45
+ URL : "https://regional-amaranth-smelt-9ba20cc1 .test-domain.com/" ,
46
+ WorkspaceID : "regional-amaranth-smelt-9ba20cc1 " ,
47
47
},
48
48
}
49
49
@@ -413,31 +413,31 @@ func TestRoutes(t *testing.T) {
413
413
},
414
414
{
415
415
Desc : "non-existent authorized GET /" ,
416
- Request : modifyRequest (httptest .NewRequest ("GET" , strings .ReplaceAll (workspaces [0 ].URL , "c95fd41c " , "00000000 " ), nil ),
416
+ Request : modifyRequest (httptest .NewRequest ("GET" , strings .ReplaceAll (workspaces [0 ].URL , "regional " , "blabla " ), nil ),
417
417
addHostHeader ,
418
418
addOwnerToken (workspaces [0 ].InstanceID , workspaces [0 ].Auth .OwnerToken ),
419
419
),
420
420
Expectation : Expectation {
421
421
Status : http .StatusFound ,
422
422
Header : http.Header {
423
423
"Content-Type" : {"text/html; charset=utf-8" },
424
- "Location" : {"https://test-domain.com/start/#00000000-13d9-4d51-b282-e2be09de207f " },
424
+ "Location" : {"https://test-domain.com/start/#blabla-amaranth-smelt-9ba20cc1 " },
425
425
},
426
- Body : ("<a href=\" https://test-domain.com/start/#00000000-13d9-4d51-b282-e2be09de207f \" >Found</a>.\n \n " ),
426
+ Body : ("<a href=\" https://test-domain.com/start/#blabla-amaranth-smelt-9ba20cc1 \" >Found</a>.\n \n " ),
427
427
},
428
428
},
429
429
{
430
430
Desc : "non-existent unauthorized GET /" ,
431
- Request : modifyRequest (httptest .NewRequest ("GET" , strings .ReplaceAll (workspaces [0 ].URL , "c95fd41c " , "00000000 " ), nil ),
431
+ Request : modifyRequest (httptest .NewRequest ("GET" , strings .ReplaceAll (workspaces [0 ].URL , "regional " , "blabla " ), nil ),
432
432
addHostHeader ,
433
433
),
434
434
Expectation : Expectation {
435
435
Status : http .StatusFound ,
436
436
Header : http.Header {
437
437
"Content-Type" : {"text/html; charset=utf-8" },
438
- "Location" : {"https://test-domain.com/start/#00000000-13d9-4d51-b282-e2be09de207f " },
438
+ "Location" : {"https://test-domain.com/start/#blabla-amaranth-smelt-9ba20cc1 " },
439
439
},
440
- Body : ("<a href=\" https://test-domain.com/start/#00000000-13d9-4d51-b282-e2be09de207f \" >Found</a>.\n \n " ),
440
+ Body : ("<a href=\" https://test-domain.com/start/#blabla-amaranth-smelt-9ba20cc1 \" >Found</a>.\n \n " ),
441
441
},
442
442
},
443
443
{
0 commit comments