From 27d2e40b7d324b2a1a67bba9e24abc15b392e23a Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Thu, 13 Oct 2011 13:34:23 -0700 Subject: [PATCH] Move fuzzer under s3tests/fuzz. This way, its unit tests are separate from s3tests/functional, and s3tests/functional is the thing that actually talks to an S3 implementation over the wire. To actually run the fuzzer, use ./virtualenv/bin/s3tests-fuzz-headers --- s3tests/fuzz/__init__.py | 0 s3tests/{fuzz_headers.py => fuzz/headers.py} | 2 +- s3tests/fuzz/test/__init__.py | 0 s3tests/{functional => fuzz/test}/test_fuzzer.py | 6 +++--- setup.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 s3tests/fuzz/__init__.py rename s3tests/{fuzz_headers.py => fuzz/headers.py} (99%) create mode 100644 s3tests/fuzz/test/__init__.py rename s3tests/{functional => fuzz/test}/test_fuzzer.py (99%) diff --git a/s3tests/fuzz/__init__.py b/s3tests/fuzz/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/s3tests/fuzz_headers.py b/s3tests/fuzz/headers.py similarity index 99% rename from s3tests/fuzz_headers.py rename to s3tests/fuzz/headers.py index e49713f..a491928 100644 --- a/s3tests/fuzz_headers.py +++ b/s3tests/fuzz/headers.py @@ -3,7 +3,7 @@ from boto.exception import BotoServerError from boto.s3.key import Key from httplib import BadStatusLine from optparse import OptionParser -from . import common +from .. import common import traceback import itertools diff --git a/s3tests/fuzz/test/__init__.py b/s3tests/fuzz/test/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/s3tests/functional/test_fuzzer.py b/s3tests/fuzz/test/test_fuzzer.py similarity index 99% rename from s3tests/functional/test_fuzzer.py rename to s3tests/fuzz/test/test_fuzzer.py index 717b1db..fc40800 100644 --- a/s3tests/functional/test_fuzzer.py +++ b/s3tests/fuzz/test/test_fuzzer.py @@ -1,17 +1,17 @@ -mport sys +import sys import itertools import nose import random import string import yaml -from s3tests.fuzz_headers import * +from ..headers import * from nose.tools import eq_ as eq from nose.tools import assert_true from nose.plugins.attrib import attr -from .utils import assert_raises +from ...functional.utils import assert_raises _decision_graph = {} diff --git a/setup.py b/setup.py index edcab1a..30a5df6 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ setup( 's3tests-generate-objects = s3tests.generate_objects:main', 's3tests-test-readwrite = s3tests.readwrite:main', 's3tests-test-roundtrip = s3tests.roundtrip:main', - 's3tests-fuzz-headers = s3tests.fuzz_headers:main', + 's3tests-fuzz-headers = s3tests.fuzz.headers:main', ], },