minio / mint

Collection of tests to detect overall correctness of MinIO server.
Apache License 2.0
78 stars 50 forks source link

Test to fetch index.html #212

Closed krishnasrinivas closed 6 years ago

krishnasrinivas commented 6 years ago

Need a functional test to fetch index.html and other web-UI assets (logo, bundle.js etc)

krishnasrinivas commented 6 years ago

@shruthied this test is to ensure that minio server is serving all the files for browser access:

curl -H "User-Agent: Mozilla" localhost:9000/minio/chrome.png > /dev/null
curl -H "User-Agent: Mozilla" localhost:9000/minio/favicon.ico > /dev/null
curl -H "User-Agent: Mozilla" localhost:9000/minio/firefox.png > /dev/null
curl -H "User-Agent: Mozilla" localhost:9000/minio/index.html > /dev/null
curl -H "User-Agent: Mozilla" localhost:9000/minio/loader.css > /dev/null
curl -H "User-Agent: Mozilla" localhost:9000/minio/logo.svg > /dev/null
curl -H "User-Agent: Mozilla" localhost:9000/minio/safari.png > /dev/null

The above commands can be run in a bash script, for each curl request you can ensure that curl exits with 0 exit status. You can create a new directory run/core/browser-assets for these tests.

kannappanr commented 6 years ago

@krishnasrinivas This returns 0 even if Browser is turned off in config.json. Returns 7 if the server is not running. Should we check the contents also?

deekoder commented 6 years ago

@nitisht yes its an issue but since we have not fixed it, i think we can close and reopen later when we can work on them. Let me know what you think.

nitisht commented 6 years ago

agreed @deekoder . Closing this