Skip to content

agrison/realworld-server-tester

Repository files navigation

Real world sample app backend implementation tester

This program goal is to test that a backend implementation of a real world sample app works as expected, by complying with the API spec.

Usage

git clone https://github.com/agrison/realworld-server-tester.git
cd realworld-server-tester
java -jar target/realworld-server-tester-0.1.0-SNAPSHOT-standalone.jar http://localhost:8080

Demo

asciicast

Building

You'll need Java and leiningen to build the app.

cd realworld-server-tester
lein uberjar
java -jar target/realworld-server-tester.jar URL

TODO

  • Login
    • correct login
    • invalid email
    • missing email
    • invalid password
    • missing password
  • Register
    • correct register
    • invalid email
    • missing email
    • already taken email
    • invalid username
    • missing username
    • already taken username
    • invalid password
    • missing password
  • Get Current User
    • correct call
    • invalid token
  • Update User
    • correct call
    • invalid token
    • invalid email
    • already taken email
    • invalid username
    • already taken username
    • invalid password
  • Get Profile
    • correct call
    • unknown username
  • Follow User
    • correct call
    • invalid token
  • Unfollow User
    • correct call
    • invalid token
  • List Articles
    • no filters
    • filter by tag
    • filter by author
    • filter by favorited
    • limit results
  • Feed Articles
    • correct call
    • correct call with limited results
    • invalid token
  • Get Article
    • correct call
    • unknown article
    • createdAt is iso8601
  • Create Article
    • correct call
    • invalid token
    • missing title – [X] blank title
    • already taken title (generates different slug) – [X] missing description – [X] blank description
    • missing body – [X] blank body
  • Update Article
    • correct call
    • invalid token – [X] blank title
    • already taken title (generates different slug) – [X] blank description
    • blank body
    • can't update article of another author
  • Delete Article
    • correct call
    • invalid token
    • unknown article
    • can't delete article of another author
  • Add Comments to an Article
    • correct call
    • invalid token
    • missing body
    • blank body
  • Get Comments from an Article
  • Delete Comment
    • correct call
    • invalid token
    • can't delete comment of another user
  • Favorite Article
    • correct call
    • invalid token
  • Unfavorite Article
    • correct call
    • invalid token
  • Get Tags

License

MIT

Author

Alexandre Grison

About

Realworld sample app backend tester

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published