npedidos / rest-api

NPedidos es una aplicación que permite la gestión simple de pedidos de menús de comidas, por fechas.
MIT License
8 stars 16 forks source link

Crear test básico para la clase SettingService #9

Open nmarulo opened 1 year ago

nmarulo commented 1 year ago

Usar como ejemplo el test de la clase FoodDishService.

thexahmed00 commented 1 year ago

i would like to work on this issue @nmarulo can you assign me

nmarulo commented 1 year ago

Hello @thexahmed00 👋 Of course.

As a clarification, remember that the FoodDishServiceTest and FoodDishServiceTestUtil classes must be used as references.

nmarulo commented 1 year ago

@thexahmed00 please confirm if you are still interested in working on this assignment, thank you.

thexahmed00 commented 1 year ago

I was busy with production issue i am on it by tomorrow i will snd a PR

nmarulo commented 1 year ago

@thexahmed00 ok, don't worry 👍 I usually give a week to make the issue, but since you didn't answer anything after assigning the issue, that's why I asked.

nmarulo commented 1 year ago

@thexahmed00 If you run the application in normal mode, you need to have a database configured. README.en.md#run If you only run the test, it is not necessary.

thexahmed00 commented 1 year ago

@nmarulo api doc how to access

nmarulo commented 1 year ago

@thexahmed00 To access the application you must first fill the database with test records, by executing: RUN db-seed Then, in the login table, valid login users are created. This information is used to authenticate (/auth/login) with the local server and generate a JWT token that must be sent in all requests.

nmarulo commented 1 year ago

although, if you mean the swagger api doc or using swagger web, just use a user and password from the user table.

thexahmed00 commented 1 year ago

@nmarulo Sorry bro Not able to understand codebase you can assign to Others

nmarulo commented 1 year ago

@thexahmed00 no problem, thank you very much. 🤝

Still, if it is not too much trouble, I would like to know what you have had difficulties with, that would help me to improve the documentation, I know very well that, the current one, is not very clear.

In case you want to give it a last chance, in this issues #19 there are issues that are the same and that other people have done.