Skip to content

Commit 003aab4

Browse files
committed
doc(README.md): document workaround for test state resetting
1 parent 8bbbb10 commit 003aab4

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

_tests/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Deis Integration Tests
2+
3+
This directory contains [Ginkgo]/[Gomega] based integration tests, which exercise
4+
the Deis CLI to extensively test the platform.
5+
6+
# Resetting Cluster State
7+
8+
Periodically, tests may not clean up after themselves. While this is an ongoing issue,
9+
for which we're working on a permanent fix (possible in [this GH issue](https://github.com/deis/workflow/issues/125))),
10+
below are commands you can run to work around the failure:
11+
12+
```console
13+
$ kubectl exec -it deis-workflow-qoxhz -- sh
14+
/app # ./manage.py shell
15+
Python 2.7.10 (default, Aug 13 2015, 12:27:27)
16+
[GCC 4.9.2] on linux2
17+
>>> from django.contrib.auth import get_user_model
18+
>>> m = get_user_model()
19+
>>> m.objects.exclude(username='AnonymousUser').delete()
20+
>>> m.objects.all()
21+
```

0 commit comments

Comments
 (0)