Giter VIP home page Giter VIP logo

catfactsapi's Introduction

catfactsAPI

Tests for cat facts app's API - Sporty interview assignment. Implemented for this assignment - tests 1, 2, 5.

Test 1 - Get request for cat facts:
We want to write an automation that will send a get request to
"https://cat-fact.herokuapp.com at the endpoint for cat facts. E.g
we would like to perform the equivalent action to putting the endpoint
address - "https://cat-fact.herokuapp.com/facts?animal_type=cat"
in the address bar.
Expected result: a response with a json body that has cat facts.
Test 2 - Get request without authentication:
--------------------------------------------------------------------------
We perform the former test without the authentication.
Expected result: A message saying that we need to sign in.
Test 3 - Get request for my user:
--------------------------------------------------------------------------
Similarly to the former test, we would like to perform user
authentication and send a get request that is equivalent to:
"https://cat-fact.herokuapp.com/users/me".
Expected result: A json with details about my user.
** NOTE: This was not implemented since I didn't have enough time to
build a google authentication mechanism. **
Test 4 - Get request for a different user than the one authenticated.
--------------------------------------------------------------------------
We authenticate with a google account but request a different user
in the URL.
Expected result: A message saying we don't have access or an error
message.
** NOTE: This was not implemented since I didn't have enough time to
build a google authentication mechanism. **
Test 5 - Post request.
--------------------------------------------------------------------------
We send a request with a json in its body from port 3333 in our
client.
Expected result: An error message or a response id of type 4xx.

catfactsapi's People

Contributors

ccathlete avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.