testcases

package
v0.5.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package testcases contains testcases for server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunActivateAndDeactivateClientTest

func RunActivateAndDeactivateClientTest(
	t *testing.T,
	testClient v1connect.YorkieServiceClient,
)

RunActivateAndDeactivateClientTest runs the ActivateClient and DeactivateClient test.

func RunAdminChangePasswordTest added in v0.4.29

func RunAdminChangePasswordTest(
	t *testing.T,
	testAdminClient v1connect.AdminServiceClient,
)

RunAdminChangePasswordTest runs the admin change password user test.

func RunAdminCreateProjectTest

func RunAdminCreateProjectTest(
	t *testing.T,
	testAdminClient v1connect.AdminServiceClient,
	testAdminAuthInterceptor *admin.AuthInterceptor,
)

RunAdminCreateProjectTest runs the CreateProject test in admin.

func RunAdminDeleteAccountTest added in v0.4.29

func RunAdminDeleteAccountTest(
	t *testing.T,
	testAdminClient v1connect.AdminServiceClient,
)

RunAdminDeleteAccountTest runs the admin delete user test.

func RunAdminGetDocumentTest

func RunAdminGetDocumentTest(
	t *testing.T,
	testClient v1connect.YorkieServiceClient,
	testAdminClient v1connect.AdminServiceClient,
	testAdminAuthInterceptor *admin.AuthInterceptor,
)

RunAdminGetDocumentTest runs the GetDocument test in admin.

func RunAdminGetProjectTest

func RunAdminGetProjectTest(
	t *testing.T,
	testAdminClient v1connect.AdminServiceClient,
	testAdminAuthInterceptor *admin.AuthInterceptor,
)

RunAdminGetProjectTest runs the GetProject test in admin.

func RunAdminGetServerVersionTest added in v0.4.30

func RunAdminGetServerVersionTest(
	t *testing.T,
	testAdminClient v1connect.AdminServiceClient,
)

RunAdminGetServerVersionTest runs the GetServerVersion test in admin.

func RunAdminListChangesTest

func RunAdminListChangesTest(
	t *testing.T,
	testClient v1connect.YorkieServiceClient,
	testAdminClient v1connect.AdminServiceClient,
	testAdminAuthInterceptor *admin.AuthInterceptor,
)

RunAdminListChangesTest runs the ListChanges test in admin.

func RunAdminListDocumentsTest

func RunAdminListDocumentsTest(
	t *testing.T,
	testAdminClient v1connect.AdminServiceClient,
	testAdminAuthInterceptor *admin.AuthInterceptor,
)

RunAdminListDocumentsTest runs the ListDocuments test in admin.

func RunAdminListProjectsTest

func RunAdminListProjectsTest(
	t *testing.T,
	testAdminClient v1connect.AdminServiceClient,
	testAdminAuthInterceptor *admin.AuthInterceptor,
)

RunAdminListProjectsTest runs the ListProjects test in admin.

func RunAdminLoginTest

func RunAdminLoginTest(
	t *testing.T,
	testAdminClient v1connect.AdminServiceClient,
)

RunAdminLoginTest runs the Admin Login test.

func RunAdminSignUpTest

func RunAdminSignUpTest(
	t *testing.T,
	testAdminClient v1connect.AdminServiceClient,
)

RunAdminSignUpTest runs the SignUp test in admin.

func RunAdminUpdateProjectTest

func RunAdminUpdateProjectTest(
	t *testing.T,
	testAdminClient v1connect.AdminServiceClient,
	testAdminAuthInterceptor *admin.AuthInterceptor,
)

RunAdminUpdateProjectTest runs the UpdateProject test in admin.

func RunAttachAndDetachDocumentTest

func RunAttachAndDetachDocumentTest(
	t *testing.T,
	testClient v1connect.YorkieServiceClient,
)

RunAttachAndDetachDocumentTest runs the AttachDocument and DetachDocument test.

func RunAttachAndDetachRemovedDocumentTest

func RunAttachAndDetachRemovedDocumentTest(
	t *testing.T,
	testClient v1connect.YorkieServiceClient,
)

RunAttachAndDetachRemovedDocumentTest runs the AttachDocument and DetachDocument test on a removed document.

func RunPushPullChangeOnRemovedDocumentTest

func RunPushPullChangeOnRemovedDocumentTest(
	t *testing.T,
	testClient v1connect.YorkieServiceClient,
)

RunPushPullChangeOnRemovedDocumentTest runs the PushChange and PullChange test on a removed document.

func RunPushPullChangeTest

func RunPushPullChangeTest(
	t *testing.T,
	testClient v1connect.YorkieServiceClient,
)

RunPushPullChangeTest runs the PushChange and PullChange test.

func RunRemoveDocumentTest

func RunRemoveDocumentTest(
	t *testing.T,
	testClient v1connect.YorkieServiceClient,
)

RunRemoveDocumentTest runs the RemoveDocument test.

func RunRemoveDocumentWithInvalidClientStateTest

func RunRemoveDocumentWithInvalidClientStateTest(
	t *testing.T,
	testClient v1connect.YorkieServiceClient,
)

RunRemoveDocumentWithInvalidClientStateTest runs the RemoveDocument test with an invalid client state.

func RunWatchDocumentTest

func RunWatchDocumentTest(
	t *testing.T,
	testClient v1connect.YorkieServiceClient,
)

RunWatchDocumentTest runs the WatchDocument test.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL