Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Most options listed in the documentation are missing in the actual code #159

Closed
yathi opened this issue Sep 14, 2016 · 2 comments
Closed

Comments

@yathi
Copy link
Contributor

yathi commented Sep 14, 2016

I tried to launch a bees attack with some headers using the command:

bees attack -u 'myurl' -n 50 -H "content-type: application/json ; authorization: mykey"

I got the following response from Bees:

Usage:
bees COMMAND [options]

Bees with Machine Guns

A utility for arming (creating) many bees (small EC2 instances) to attack
(load test) targets (web applications).

commands:
up Start a batch of load testing servers.
attack Begin the attack on a specific url.
down Shutdown and deactivate the load testing servers.
report Report the status of the load testing servers.

bees: error: no such option: -H

Then I looked at the commands provided with bees --help and it is a small subset of what the documentation seems to suggest. If the code does not do what the documentation suggests, should it be in the documentation?

The output of bees --help :

Usage:
bees COMMAND [options]

Bees with Machine Guns

A utility for arming (creating) many bees (small EC2 instances) to attack
(load test) targets (web applications).

commands:
  up      Start a batch of load testing servers.
  attack  Begin the attack on a specific url.
  down    Shutdown and deactivate the load testing servers.
  report  Report the status of the load testing servers.


Options:
  -h, --help            show this help message and exit

  up:
    In order to spin up new servers you will need to specify at least the
    -k command, which is the name of the EC2 keypair to use for creating
    and connecting to the new servers. The bees will expect to find a .pem
    file with this name in ~/.ssh/.

    -k KEY, --key=KEY   The ssh key pair name to use to connect to the new
                        servers.
    -s SERVERS, --servers=SERVERS
                        The number of servers to start (default: 5).
    -g GROUP, --group=GROUP
                        The security group to run the instances under
                        (default: default).
    -z ZONE, --zone=ZONE
                        The availability zone to start the instances in
                        (default: us-east-1d).
    -i INSTANCE, --instance=INSTANCE
                        The instance-id to use for each server from (default:
                        ami-ff17fb96).
    -l LOGIN, --login=LOGIN
                        The ssh username name to use to connect to the new
                        servers (default: newsapps).

  attack:
    Beginning an attack requires only that you specify the -u option with
    the URL you wish to target.

    -u URL, --url=URL   URL of the target to attack.
    -n NUMBER, --number=NUMBER
                        The number of total connections to make to the target
                        (default: 1000).
    -c CONCURRENT, --concurrent=CONCURRENT
                        The number of concurrent connections to make to the
                        target (default: 100).
@SafaTinaztepe
Copy link
Contributor

The version in pip is significantly outdated, as discussed over a year ago in this thread: #106

If we are having the same issue as a year ago, let's get the team to put together a stable release to send to PyPi. I think it's about time.

Team: contact me if there are any loose ends or features to be bolted down before a stable release is possible.

@yathi
Copy link
Contributor Author

yathi commented Sep 15, 2016

Thanks for the reply. I did go through the other issues and eventually managed to install the newer version. But it should not be this difficult. Atleast the documentation should mention the correct way to install. Instead it explicitly recommends the pip version which is apparently outdated.

@yathi yathi closed this as completed Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants