Skip to content

serverccl: TestServerControllerLoginLogout misbehaves when pointed to a secondary tenant #110002

@knz

Description

@knz

Found while working on #110001.

Describe the problem

This test misbehaves when pointed to a secondary tenant; that is, the following sequence fails:

   client, _s.GetAuthenticatedHTTPClient(false, serverutils.SingleTenantSession)
   resp, _client.Post(s.AdminURL().WithPath("/logout").String(), "", nil)
   require.Equal(t, 200, resp.StatusCode)

The error is "expected 200, got 405" . It's strange and unexpected that /logout on a secondary tenant would return 405.

To Reproduce

Change the test as follows:

 srvserverutils.StartServerOnly(t, base.TestServerArgs{})
 s := srv.ApplicationLayer()

Epic CRDB-38970

Jira issue: CRDB-31212

Metadata

Metadata

Assignees

Labels

A-multitenancyRelated to multi-tenancyA-testingTesting tools and infrastructureA-webui-testingC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.T-db-serverv25.3.0-prerelease

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions