newsapps / beeswithmachineguns

A utility for arming (creating) many bees (micro EC2 instances) to attack (load test) targets (web applications).
http://apps.chicagotribune.com/
MIT License
6.44k stars 632 forks source link

[Feature Request] Allow specifying post_file via relative/absolute path #226

Open tylerbrandt opened 5 years ago

tylerbrandt commented 5 years ago

It's really cool that you can specify a file to use with post requests from the command line! However, currently, one can only specify the -p, --post_file param using a bare filename (no path) which must exist in the same directory in which you are running bees (due to the scp command which assumes that the destination of the file on the bee file system is ~/%(post_file)s). It would be more ergonomic to be able to specify a relative or absolute path to a file, and have that file read and sent to the bee swarm.

I think the line which needs to be changed is the one which tells ab where to find the file: https://github.com/newsapps/beeswithmachineguns/blob/4b8783dc36d327ad95b711db39054d64bd718344/beeswithmachineguns/bees.py#L447

radzhome commented 5 years ago

I started my own fork of this, don't think this is maintained anymore but I am maintaining this - https://github.com/radzhome/beeswithmachineguns2

Phara0h commented 5 years ago

I started my own fork of this, don't think this is maintained anymore but I am maintaining this - https://github.com/radzhome/beeswithmachineguns2

If you like this kind of open source work we are looking for people https://github.com/newsapps/beeswithmachineguns/issues/230