Skip to content

Commit

Permalink
Documenting how to run the docker-compose tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AgarFu committed Jul 31, 2017
1 parent c2f9d64 commit 1bedf6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -63,6 +63,10 @@ Currently the plugin does not support:

Use `make test` to run some simple tests.

### Testing with docker compose:
docker-compose -f docker-compose.tests.yml run yum-s3-iam test
docker-compose -f docker-compose.tests.yml down --volumes --rmi all

## License

Apache 2.0 license. See LICENSE.
Expand Down
18 changes: 0 additions & 18 deletions tests.py
Expand Up @@ -171,24 +171,6 @@ def test_urls(self):

class S3RepositoryTest(unittest.TestCase):

# class FakeRepo:
# def __init__(self):
# self.baseurl = 'https://s3.cn-north-1.amazonaws.com.cn/bar/path'
# self.name = 'test repo'
# self.region = 'cn-north-1'
# self.basecachedir = ''
# self.gpgcheck = False
# self.gpgkey = None
# self.key_id = None
# self.secret_key = None
# self.enablegroups = False
# self.delegated_role = None
# self.retries = 1
# self.backoff = None
# self.delay = 0
# self.mirrorlist = None
# self.proxy = None

def setUp(self):
self.orig_http_proxy = os.environ['http_proxy'] if 'http_proxy' in os.environ else None
os.environ['https_proxy'] = 'http://https_proxy_host:https_proxy_port'
Expand Down

0 comments on commit 1bedf6f

Please sign in to comment.