diff --git a/subjects/forum/forum.audit.en.md b/subjects/forum/forum.audit.en.md index 09301b0c0..fb88882dd 100644 --- a/subjects/forum/forum.audit.en.md +++ b/subjects/forum/forum.audit.en.md @@ -1,10 +1,10 @@ #### Authentication -###### Is it asked in the register for an email and a password? +###### Are an email and a password asked for in the resgistration? -###### Does the project detects if the email or password are wrong? +###### Does the project detect if the email or password are wrong? -###### Does the project detects if the email or user name is already taken in the register? +###### Does the project detect if the email or user name is already taken in the registration? ##### Try to register as a new user in the forum. @@ -36,15 +36,15 @@ ###### Does the code contain at least one SELECT query? -##### Try registering in the forum, open the database with `sqlite3 ` and perform a query to select all the users (Example: SELECT * FROM users;). +##### Try registering in the forum, open the database with `sqlite3 ` and perform a query to select all the users (Example: SELECT \* FROM users;). ###### Does it present the user you created? -##### Try creating a post in the forum, open the database with `sqlite3 ` and perform a query to select all the users (Example: SELECT * FROM post;). +##### Try creating a post in the forum, open the database with `sqlite3 ` and perform a query to select all the users (Example: SELECT \* FROM post;). ###### Does it present the post you created? -##### Try creating a comment in the forum, open the database with `sqlite3 ` and perform a query to select all the users (Example: SELECT * FROM comment;). +##### Try creating a comment in the forum, open the database with `sqlite3 ` and perform a query to select all the users (Example: SELECT \* FROM comment;). ###### Does it present the comment you created? @@ -52,20 +52,24 @@ ###### Does the project have Dockerfiles? -##### Try to run the command `"docker image build [OPTINS] PATH | URL | -"` to build the image using using the project Dockerfiles and run the command `"docker images"` to see images. +##### Try to run the command `"docker image build [OPTINS] PATH | URL | -"` to build the image using using the project Dockerfiles and run the command `"docker images"` to see images. + ``` student$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE latest 85a65d66ca39 7 seconds ago 795MB ``` + ###### Does all images build as above? ##### Try running the command `"docker container run [OPTIONS] IMAGE [COMMAND] [ARG...]"` to start the containers using the images just created and run the command `"docker ps -a"` to see containers. + ``` student$ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES cc8f5dcf760f "./server" 6 seconds ago Up 6 seconds 0.0.0.0:8080->8080/tcp ascii-art-web ``` + ###### Is the docker containers running as above? ###### Does the project present no [unused object](https://docs.docker.com/config/pruning/)? @@ -73,54 +77,71 @@ cc8f5dcf760f "./server" 6 seconds ag #### Functional ##### Enter the forum as a non-registered user. + ###### Are you prohibited to create a post? ##### Enter the forum as a non-registered user. + ###### Are you prohibited to create a comment? ##### Enter the forum as a non-registered user and try to like a comment. + ###### Are you prohibited to like a post? ##### Enter the forum as a non-registered user and try to dislike a comment. + ###### Are you prohibited to dislike a comment? ##### Enter the forum as a registered user, go to a post and try to create a comment for it. + ###### Were you able to create the comment? ##### Enter the forum as a registered user, go to a post and try to create an empty comment for it. + ###### Were you prohibited to create the comment? ##### Enter the forum as a registered user and try to create a post. + ###### Were you able to create a post? ##### Enter the forum as a registered user and try to create an empty post. + ###### Were you prohibited to create the post? ##### Try creating a post as a registered user and try to choose a category for that post. + ###### Were you able to choose a category for that post? ##### Enter the forum as a registered user and try to like or dislike a post. + ###### Can you like or dislike the post? ##### Enter the forum as a registered user and try to like or dislike a comment. + ###### Can you like or dislike the comment? ##### Enter the forum as a registered user, try liking and disliking a post and then refresh the page. + ###### Does the number of likes/dislikes change? ##### Enter the forum as a registered user and try to like and then dislike the same post. + ###### Can you confirm that it is not possible that the post is liked and disliked at the same time? ##### Enter the forum as a registered user and try seeing all of your created posts. + ###### Does it present the expected posts? ##### Enter the forum as a registered user and try seeing all of your liked posts. + ###### Does it present the expected posts? ##### Navigate to a post of your choice and see its comments. + ###### Are all users (registered or not) able to see the number of likes and dislikes that comment has? ##### Try seeing all posts from one category using the filter. + ###### Are all posts displayed from that category? ###### Did the server behaved as expected?(did not crashed) @@ -133,7 +154,7 @@ cc8f5dcf760f "./server" 6 seconds ag ###### Does the project handle [HTTP status 500 - Internal Server Errors](https://www.restapitutorial.com/httpstatuscodes.html)? -###### Are the allowed packages being respected? +###### Are only the allowed packages being used? #### General