Module Expr Str Import alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad Str Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Str NameLoad Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Str Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str NameLoad Str NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str decorator_list decorator_list Call AttributeLoad NameLoad attr Str
N/A N/A 
Unit tests for the Deis registry app.

Run the tests with "./manage.py test registry"
 N/A unittest N/A N/A unittest mock N/A N/A N/A ImportError N/A N/A mock django.conf settings rest_framework.exceptions PermissionDenied registry.dockerclient DockerClient registry.dockerclient strip_prefix DockerClientTest N/A N/A unittest TestCase N/A N/A Test that the client makes appropriate Docker engine API calls. setUp N/A N/A self N/A N/A N/A N/A N/A settings REGISTRY_HOST N/A settings REGISTRY_PORT N/A localhost 5000 N/A test_publish_release N/A N/A self mock_client N/A N/A N/A N/A self client N/A DockerClient N/A N/A N/A N/A self client publish_release ozzy/embryo:git-f2a8020 N/A POWERED_BY Deis ozzy/embryo:v4 True N/A N/A N/A self assertTrue N/A N/A N/A N/A self client client pull called N/A N/A N/A self assertTrue N/A N/A N/A N/A self client client tag called N/A N/A N/A self assertTrue N/A N/A N/A N/A self client client build called N/A N/A N/A self assertTrue N/A N/A N/A N/A self client client push called N/A N/A N/A N/A self client publish_release ozzy/embryo:git-f2a8020 N/A POWERED_BY Deis quay.io/ozzy/embryo:v4 True N/A docker_push N/A N/A N/A self client client push N/A N/A N/A docker_push assert_called_with localhost:5000/ozzy/embryo tag v4 insecure_registry True stream True N/A N/A N/A self assertRaises PermissionDenied N/A N/A N/A N/A N/A self client publish_release deis/controller:v1.11.1 N/A deis/controller:v1.11.1 True N/A N/A N/A self assertRaises PermissionDenied N/A N/A N/A N/A N/A self client publish_release localhost:5000/deis/controller:v1.11.1 N/A deis/controller:v1.11.1 True N/A test_build N/A N/A self mock_client N/A N/A N/A N/A self client N/A DockerClient N/A N/A N/A N/A self client build ozzy/embryo:git-f3a8020 N/A POWERED_BY Deis ozzy/embryo v4 N/A docker_build N/A N/A N/A self client client build N/A N/A N/A self assertTrue N/A docker_build called N/A args N/A rm tag stream True localhost:5000/ozzy/embryo:v4 True N/A kwargs N/A N/A docker_build call_args N/A 1 N/A N/A N/A self assertDictContainsSubset args kwargs N/A f N/A kwargs N/A fileobj N/A N/A N/A self assertEqual N/A N/A f read FROM ozzy/embryo:git-f3a8020
ENV POWERED_BY="Deis" N/A N/A N/A self assertRaises PermissionDenied N/A N/A N/A N/A N/A self client build deis/controller:v1.11.1 N/A deis/controller v1.11.1 N/A N/A N/A self assertRaises PermissionDenied N/A N/A N/A N/A N/A self client build localhost:5000/deis/controller:v1.11.1 N/A deis/controller v1.11.1 N/A test_pull N/A N/A self mock_client N/A N/A N/A N/A self client N/A DockerClient N/A N/A N/A N/A self client pull alpine 3.2 N/A docker_pull N/A N/A N/A self client client pull N/A N/A N/A docker_pull assert_called_once_with alpine tag 3.2 insecure_registry True stream True N/A N/A N/A self assertRaises PermissionDenied N/A N/A N/A N/A N/A self client pull deis/controller v1.11.1 N/A N/A N/A self assertRaises PermissionDenied N/A N/A N/A N/A N/A self client pull localhost:5000/deis/controller v1.11.1 N/A test_push N/A N/A self mock_client N/A N/A N/A N/A self client N/A DockerClient N/A N/A N/A N/A self client push ozzy/embryo v4 N/A docker_push N/A N/A N/A self client client push N/A N/A N/A docker_push assert_called_once_with ozzy/embryo tag v4 insecure_registry True stream True N/A test_tag N/A N/A self mock_client N/A N/A N/A N/A self client N/A DockerClient N/A N/A N/A N/A self client tag ozzy/embryo:git-f2a8020 ozzy/embryo v4 N/A docker_tag N/A N/A N/A self client client tag N/A N/A N/A docker_tag assert_called_once_with ozzy/embryo:git-f2a8020 ozzy/embryo tag v4 force True N/A N/A N/A self assertRaises PermissionDenied N/A N/A N/A N/A N/A self client tag deis/controller:v1.11.1 deis/controller v1.11.1 N/A N/A N/A self assertRaises PermissionDenied N/A N/A N/A N/A N/A self client tag localhost:5000/deis/controller:v1.11.1 deis/controller v1.11.1 N/A test_strip_prefix N/A N/A self mock_client N/A N/A N/A N/A N/A self assertEqual N/A strip_prefix quay.io/boris/riotsugar boris/riotsugar N/A N/A N/A self assertEqual N/A strip_prefix 127.0.0.1:5000/boris/galaxians boris/galaxians N/A N/A N/A self assertEqual N/A strip_prefix boris/jacksonhead boris/jacksonhead N/A N/A N/A self assertEqual N/A strip_prefix :8888/boris/pink boris/pink N/A N/A N/A N/A mock patch docker.Client