@@ -419,71 +419,3 @@ func TestGetActiveActivePrivateLink(t *testing.T) {
419419 })
420420 }
421421}
422-
423- //func TestCreatePrivateLink(t *testing.T) {
424- // expected := 114019
425- // server := httptest.NewServer(
426- // testServer(
427- // "key",
428- // "secret",
429- // postRequest(
430- // t,
431- // "/subscriptions/114019/private-link",
432- // `{
433- // "alias": "test",
434- // "principal": "123456789012"
435- // "shareName": "testshare"
436- // "type": "aws-account"
437- // }`,
438- // `{
439- // "taskId": "abcd-efgh-ijkl-mnop",
440- // "commandType": "privateLinkCreateRequest",
441- // "status": "received",
442- // "description": "Task request received and is being queued for processing.",
443- // "timestamp": "2025-09-18T15:56:00Z",
444- // "links": [
445- // {
446- // "rel": "task",
447- // "href": "https://api-staging.qa.redislabs.com/v1/tasks/abcd-efgh-ijkl-mnop",
448- // "title": "getTaskStatusUpdates",
449- // "type": "GET"
450- // }
451- // ]
452- // }`,
453- // ),
454- // getRequest(
455- // t,
456- // "/tasks/abcd-efgh-ijkl-mnop",
457- // fmt.Sprintf(`{
458- // "taskId": "abcd-efgh-ijkl-mnop",
459- // "commandType": "privateLinkCreateRequest",
460- // "status": "processing-completed",
461- // "description": "Request processing completed successfully.",
462- // "timestamp": "2025-09-18T15:56:10Z",
463- // "response": {
464- // "resourceId": %[1]d
465- // },
466- // "links": [
467- // {
468- // "href": "https://api-staging.qa.redislabs.com/v1/tasks/502fc31f-fd44-4cb0-a429-07882309a971",
469- // "rel": "self",
470- // "type": "GET"
471- // }
472- // ]
473- // }`, expected),
474- // ),
475- // ),
476- // )
477- //
478- // subject, err := clientFromTestServer(server, "key", "secret")
479- // require.NoError(t, err)
480- //
481- // actual, err := subject.PrivateLink.CreatePrivateLink(context.TODO(), 114019, pl.CreatePrivateLink{
482- // ShareName: redis.String("testshare"),
483- // Principal: redis.String("12345679012"),
484- // PrincipalType: redis.String("aws-account"),
485- // PrincipalAlias: redis.String("test"),
486- // })
487- // require.NoError(t, err)
488- // assert.Equal(t, expected, actual)
489- //}
0 commit comments