Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jul 19, 2023

Conversation

knz
Copy link
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
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 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 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 herkolategan, renatolabs, abarganier and bananabrick 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 <[email protected]>
Co-authored-by: Ricky Stewart <[email protected]>
@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