https://github.com/chairco/ruckus
https://github.com/chairco/ruckus
exercise flask restful-api robotframework
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/chairco/ruckus
- Owner: chairco
- Created: 2015-08-01T04:29:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-10-24T08:50:16.000Z (about 8 years ago)
- Last Synced: 2025-01-25T11:27:04.964Z (10 months ago)
- Topics: exercise, flask, restful-api, robotframework
- Language: Python
- Homepage:
- Size: 2.04 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RuckusTEST
Exercise
1. Use Groovy to implement a RESTful API web application.
http://ratpack.io or https://grails.org for RESTful API implementation, or any framework you want to use.
2. Use Robotframework (http://robotframework.org) to write a test case to search "Ruckus Wireless" on Google, and check if any result found.
3. Export a RESTful API endpoint to run the test case.
4. Use Gradle & Docker to package the application to container.
5. Send me the Docker container and prepare a readme file to teach me how to use.
# Introduction
This is the sample for Ruckus's Exercise.
Implement a REST server ahd be the endpoint to start the Google Search by Robotframework.
This application package into Docker's container
# Document
REST server default address is 0.0.0.0:5000
After deploy can use 2 command to check the server and REST server status:
+ http://docker_ip:port/
+ http://docker_ip:port/todo/api/v1.0/tasks
# Example
First download this image from
https://registry.hub.docker.com/u/chaircos/rest/
Second deploy and run the image on the container
MAX OS X sample:
##### 2.1 creareVM: boot2docker init
##### 2.2 startup: boot2docker start
##### 2.3 run image: run -d -p 80:5000 --name rests rest
##### 2.4 and execute curl command at client like curl -i http://docker_ip:80/todo/api/v1.0/robot
# How to Develop
git clone https://github.com/chairco/RuckusTEST.git
the tree will like below:
```
├── Dockerfile
├── GoogleDemo
│ ├── google_search.txt
│ ├── log.html
│ ├── output.xml
│ ├── report.html
├── README.md
├── mockflask.py
├── .gitignore
└── requirements.txt
```
##### 3.1. mockflask.py
REST Server, by flask web framework
##### 3.2. google_search.txt
robot script
##### 3.3. Dockfile
build the image need
##### 3.4. requirements
python packages