Skip to content

re-enable tests#119

Merged
vroldanbet merged 2 commits intomainfrom
re-enable-tests
Jun 3, 2024
Merged

re-enable tests#119
vroldanbet merged 2 commits intomainfrom
re-enable-tests

Conversation

@vroldanbet
Copy link
Copy Markdown
Contributor

were removed under the
wrong assumption they were being
run elsewhere in CI

were removed under the
wrong assumption they were being
run elsewhere in CI
@alecmerdler alecmerdler mentioned this pull request Jun 3, 2024
@alecmerdler alecmerdler marked this pull request as ready for review June 3, 2024 20:07
@alecmerdler alecmerdler requested a review from a team June 3, 2024 20:07
Updates the unit tests so that async/await is not used with
the 'done' callback.

Also aligns the tests for the callback client to only use the
'done' callback-style tests rather than promises, which clarifies
the usage of the client.
Comment thread src/v1.test.ts
const client = NewClient(
generateTestToken('v1-namespace'),
'localhost:50051',
generateTestToken("v1-namespace"),

Check failure

Code scanning / CodeQL

Hard-coded credentials

The hard-coded value "v1-namespace" is used as [authorization header](1).
Comment thread src/v1.test.ts
const client = NewClient(
generateTestToken('v1-namespace-caveats'),
'localhost:50051',
generateTestToken("v1-namespace-caveats"),

Check failure

Code scanning / CodeQL

Hard-coded credentials

The hard-coded value "v1-namespace-caveats" is used as [authorization header](1).
Comment thread src/v1.test.ts
token = generateTestToken('v1-lookup');

beforeEach((done) => {
token = generateTestToken("v1-lookup");

Check failure

Code scanning / CodeQL

Hard-coded credentials

The hard-coded value "v1-lookup" is used as [authorization header](1).
Comment thread src/v1.test.ts
beforeEach(async () => {
token = generateTestToken('v1-experimental-service');
beforeEach((done) => {
token = generateTestToken("v1-experimental-service");

Check failure

Code scanning / CodeQL

Hard-coded credentials

The hard-coded value "v1-experimental-service" is used as [authorization header](1).
@vroldanbet vroldanbet merged commit 371fb3a into main Jun 3, 2024
@vroldanbet vroldanbet deleted the re-enable-tests branch June 3, 2024 20:49
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants