Skip to content

Player-FM/testdata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TestData

Some easily-manipulated test resource serves to help HTTP client developers simulate various conditions, including error conditions, in a deterministic way.

Installing

  1. git clone
  2. bin/make.sh
  3. ensure public web folder is pointing at web/

Docker

There's a Dockerfile here. If you have Docker installed, you can run the project with something like:

docker build -t testdata . && docker run -p 8765:8765 -it testdata

Then point to http://0.0.0.0:8765

File Serving

File serving example:

~220MB mp3 with no length info

http://testdata.player.fm/file.php?name=human&type=audio/mpeg&length=false

~220MB mp3 with wrong length info

http://testdata.player.fm/file.php?name=human&type=audio/mpeg&length=123456

~10MB mp3

http://testdata.player.fm/file.php?name=meta&type=audio/mpeg&length=123456

~10MB mp3 with variable bitrate

http://testdata.player.fm/file.php?name=metavbr&type=audio/mpeg&length=123456

~tiny mp3

http://testdata.player.fm/file.php?name=freakowild&type=audio/mpeg&length=123456

Find more filenames and file types (ogg etc) in the git repo (see bin/media.sh script for now)

Arguments

  • name (default: freakowild) - mp3 filename (see git repo for options)
  • length (default: true) - the response length header you want. "true" means guess actual length, "false" means no length or server's default.
  • predelay (default: 0) - a delay before sending
  • postdelay (default: 0) - a delay after sending
  • type (default: true - note this is broken in production now due to a pending Dreamhost issue) - the response content header you want. "true" means guess actual type, "false" means no type or server's default.

License

[Extracts from certain podcasts and feeds are included here, license is held by their original owners and included here under what is assumed to be fair use as this is an openly-licensed project intended for education and technical advancement.]

The MIT License (MIT)

Copyright (c) from 2014, Nuvomondo Ltd

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Some test RSS feeds

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •