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

chore: auth test #100

Merged
merged 38 commits into from
Nov 25, 2023
Merged

chore: auth test #100

merged 38 commits into from
Nov 25, 2023

Conversation

Danspb77
Copy link
Contributor

@Danspb77 Danspb77 commented Oct 30, 2023

  1. Create a specification for the POST method for authentication in "open.yaml."
  2. Add an authentication test in "auth.test.ts."
  3. Create test-data file "token.json" and place real test data there.
  4. Add a script in "insert-data.ts" to insert test data into the database (table: public.user_sessions).

openapi.yaml Outdated Show resolved Hide resolved
src/presentation/http/router/auth.test.ts Outdated Show resolved Hide resolved
test Outdated Show resolved Hide resolved
openapi.yaml Outdated Show resolved Hide resolved
src/presentation/http/router/auth.test.ts Outdated Show resolved Hide resolved
src/presentation/http/router/auth.test.ts Outdated Show resolved Hide resolved
test Outdated Show resolved Hide resolved
@Danspb77 Danspb77 changed the title create sample of test, without test data chore: auth test Oct 31, 2023
.gitignore Outdated Show resolved Hide resolved
notes.api.code-workspace Outdated Show resolved Hide resolved
src/presentation/http/router/auth.test.ts Outdated Show resolved Hide resolved
src/tests/test-data/tokens.json Outdated Show resolved Hide resolved
src/presentation/http/router/auth.test.ts Outdated Show resolved Hide resolved
src/presentation/http/router/auth.test.ts Outdated Show resolved Hide resolved
src/tests/test-data/tokens.json Outdated Show resolved Hide resolved
src/tests/test-data/tokens.json Outdated Show resolved Hide resolved
src/tests/utils/insert-data.ts Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
openapi.yaml Outdated Show resolved Hide resolved
@Danspb77 Danspb77 marked this pull request as ready for review November 8, 2023 15:44
package.json Outdated Show resolved Hide resolved
src/presentation/http/router/auth.test.ts Outdated Show resolved Hide resolved
src/presentation/http/router/auth.test.ts Outdated Show resolved Hide resolved
src/presentation/http/router/auth.test.ts Outdated Show resolved Hide resolved
src/presentation/http/router/auth.test.ts Outdated Show resolved Hide resolved
src/tests/test-data/notes.json Outdated Show resolved Hide resolved
src/tests/utils/insert-data.ts Outdated Show resolved Hide resolved
src/presentation/http/router/auth.test.ts Outdated Show resolved Hide resolved
src/tests/utils/insert-data.ts Outdated Show resolved Hide resolved
src/tests/utils/insert-data.ts Outdated Show resolved Hide resolved
@TatianaFomina TatianaFomina merged commit e4542a1 into main Nov 25, 2023
4 checks passed
@TatianaFomina TatianaFomina deleted the post-access-refresh-token-tests branch November 25, 2023 15:49
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.

6 participants