Skip to content

server: split test code into sub-packages and files#107135

Merged
craig[bot] merged 2 commits intocockroachdb:masterfrom
knz:20230719-server-refactor
Jul 19, 2023
Merged

server: split test code into sub-packages and files#107135
craig[bot] merged 2 commits intocockroachdb:masterfrom
knz:20230719-server-refactor

Conversation

@knz
Copy link
Copy Markdown
Contributor

@knz knz commented Jul 18, 2023

Epic: CRDB-18499
Informs #76378.

New sub-packages:

  • storage_api: unit tests for API endpoints specific
    to the KV/storage layer.

  • application_api: unit tests for API endpoints valid for
    application servers, including for secondary tenants.

  • privchecker: SQL authorization interface for API handlers.
    (previously: adminPrivilegeChecker)

  • authserver: HTTP/RPC authentication code.
    (previously: authenticationServer)

  • srverrors: error objects suitable for return from API handlers.

  • srvtestutils: common helpers for test code.

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@knz knz force-pushed the 20230719-server-refactor branch from 723ab3b to d18e3f3 Compare July 19, 2023 10:03
@knz knz marked this pull request as ready for review July 19, 2023 10:04
@knz knz requested review from a team as code owners July 19, 2023 10:04
@knz knz requested review from a team July 19, 2023 10:04
@knz knz requested a review from a team as a code owner July 19, 2023 10:04
@knz knz requested a review from a team July 19, 2023 10:04
@knz knz requested review from a team as code owners July 19, 2023 10:04
@knz knz requested review from abarganier, bananabrick, herkolategan and renatolabs and removed request for a team July 19, 2023 10:04
New sub-packages:

- `storage_api`: unit tests for API endpoints specific
  to the KV/storage layer.

- `application_api`: unit tests for API endpoints valid for
  application servers, including for secondary tenants.

- `privchecker`: SQL authorization interface for API handlers.
  (previously: `adminPrivilegeChecker`)

- `authserver`: HTTP/RPC authentication code.
  (previously: `authenticationServer`)

- `srverrors`: error objects suitable for return from API handlers.

- `srvtestutils`: common helpers for test code.

Release note: None
@knz knz force-pushed the 20230719-server-refactor branch from d18e3f3 to c5e3cf4 Compare July 19, 2023 10:43
craig bot pushed a commit that referenced this pull request Jul 19, 2023
106928: jobsccl: remove some uses of TODOTestTenantDisabled, simplify test code r=yuzefovich a=knz

First commits from #107135.

Epic: CRDB-18499
Informs #76378.

107113: dev: perform `chmod` in `/tmp`, not `/artifacts` r=rail a=rickystewart

This avoids an error in case your `artifacts` directory has some restrictive permissions. There's no functional difference here, we just copy to `/tmp` and do the `chmod` there before copying to the final destination directory.

[Internal discussion](https://cockroachlabs.slack.com/archives/C019A8NANH0/p1689598801368169)

Epic: none
Release note: None

Co-authored-by: Raphael 'kena' Poss <knz@thaumogen.net>
Co-authored-by: Ricky Stewart <ricky@cockroachlabs.com>
@craig craig bot merged commit c5e3cf4 into cockroachdb:master Jul 19, 2023
@knz knz deleted the 20230719-server-refactor branch August 10, 2023 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants