Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

Commit 8932d2b

Browse files
author
Olivier Gambier
committed
Enhance doc + fix test
Docker-DCO-1.1-Signed-off-by: Olivier Gambier <[email protected]> (github: dmp42)
1 parent 538c26b commit 8932d2b

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

ADVANCED.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Note the bugsnag "stage" will be set to the specified configuration "flavor".
3333
This encapsulate your registry inside the new-relic agent.
3434

3535
You need to write a new-relic ini file, then use the following environment variables:
36+
3637
* `NEW_RELIC_INI` to point to your ini file
3738
* `NEW_RELIC_STAGE` to specify what stage you want
3839

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@
77
* enhanced style checking
88
* enhanced testing
99
* uniformized various gunicorn start stances
10+
* enhanced/cleaned-up debugging
11+
* removed unused endpoints and code
12+
* improved documentation
13+
* more complete CORS support (as en extra)
1014

15+
## 0.8.1
16+
17+
* security fixes (path traversing prevention and token validation)
1118

1219
## 0.8.0
1320

tests/base.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
# -*- coding: utf-8 -*-
22

3-
import docker_registry.run as run
4-
53
import hashlib
64
import os
75
import random
86
import string
97
import unittest
108

119
from docker_registry.core import compat
10+
import docker_registry.wsgi as wsgi
1211

1312
data_dir = os.path.join(os.path.dirname(__file__), "data")
1413

@@ -17,8 +16,8 @@ class TestCase(unittest.TestCase):
1716

1817
def __init__(self, *args, **kwargs):
1918
unittest.TestCase.__init__(self, *args, **kwargs)
20-
run.app.testing = True
21-
self.http_client = run.app.test_client()
19+
wsgi.app.testing = True
20+
self.http_client = wsgi.app.test_client()
2221
# Override the method so we can set headers for every single call
2322
orig_open = self.http_client.open
2423

0 commit comments

Comments
 (0)