@@ -404,6 +404,26 @@ func TestMutationsDisableSDKRetriesAndUseExpectedScope(t *testing.T) {
404404 return clients .DeleteProfile (ctx , "project_123" , "profile_123" )
405405 },
406406 },
407+ "proxy create" : {
408+ method : http .MethodPost ,
409+ path : "/proxies" ,
410+ projectID : "project_123" ,
411+ call : func (ctx context.Context , clients Clients ) error {
412+ _ , err := clients .CreateProxy (ctx , "project_123" , kernel.ProxyNewParams {
413+ Name : kernel .String ("Proxy" ),
414+ Type : kernel .ProxyNewParamsTypeDatacenter ,
415+ })
416+ return err
417+ },
418+ },
419+ "proxy delete" : {
420+ method : http .MethodDelete ,
421+ path : "/proxies/proxy_123" ,
422+ projectID : "project_123" ,
423+ call : func (ctx context.Context , clients Clients ) error {
424+ return clients .DeleteProxy (ctx , "project_123" , "proxy_123" )
425+ },
426+ },
407427 "browser pool create" : {
408428 method : http .MethodPost ,
409429 path : "/browser_pools" ,
@@ -553,6 +573,14 @@ func TestClientsDoNotExposeProfileArchiveMethods(t *testing.T) {
553573 }
554574}
555575
576+ func TestClientsDoNotExposeProxyHealthCheck (t * testing.T ) {
577+ t .Parallel ()
578+
579+ if _ , ok := reflect .TypeOf (Clients {}).MethodByName ("CheckProxy" ); ok {
580+ t .Fatal ("Clients exposes runtime proxy health check" )
581+ }
582+ }
583+
556584func appListPage (id string ) string {
557585 return `[{"id":"` + id + `","app_name":"demo","version":"v1","region":"aws.us-east-1a","deployment":"deployment-1","actions":[],"env_vars":{}}]`
558586}
0 commit comments