Skip to content

Instantly share code, notes, and snippets.

@groovecoder
Created April 28, 2015 14:24
Show Gist options
  • Save groovecoder/3ad787912e5cb195c12d to your computer and use it in GitHub Desktop.
Save groovecoder/3ad787912e5cb195c12d to your computer and use it in GitHub Desktop.
........................................................................................S..........SS...............http_app_kuma: 2015-04-28 06:47:36,980 django.request:ERROR Internal Server Error: /en-US/test_exception/: /home/vagrant/src/vendor/src/django/django/core/handlers/base.py:231
Traceback (most recent call last):
File "/home/vagrant/src/vendor/src/django/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/vagrant/src/vendor/src/django/django/db/transaction.py", line 394, in inner
return func(*args, **kwargs)
File "/home/vagrant/src/kuma/core/tests/logging_urls.py", line 5, in exception_raiser
raise Exception('Raising exception to test logging.')
Exception: Raising exception to test logging.
.http_app_kuma: 2015-04-28 06:47:37,002 django.request:ERROR Internal Server Error: /en-US/test_exception/: /home/vagrant/src/vendor/src/django/django/core/handlers/base.py:231
Traceback (most recent call last):
File "/home/vagrant/src/vendor/src/django/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/vagrant/src/vendor/src/django/django/db/transaction.py", line 394, in inner
return func(*args, **kwargs)
File "/home/vagrant/src/kuma/core/tests/logging_urls.py", line 5, in exception_raiser
raise Exception('Raising exception to test logging.')
Exception: Raising exception to test logging.
..................................................................................................http_app_kuma: 2015-04-28 06:48:03,181 kuma.search.utils:ERROR Elasticsearch exception: (503, 'ERROR!!'): /home/vagrant/src/kuma/search/utils.py:76
http_app_kuma: 2015-04-28 06:48:03,257 kuma.search.utils:ERROR Elasticsearch exception: (503, 'ERROR!!'): /home/vagrant/src/kuma/search/utils.py:76
http_app_kuma: 2015-04-28 06:48:03,294 kuma.search.utils:ERROR Elasticsearch exception: TransportError(503, 'ERROR!!'): /home/vagrant/src/kuma/search/utils.py:76
http_app_kuma: 2015-04-28 06:48:03,340 kuma.search.utils:ERROR Elasticsearch exception: TransportError(503, 'ERROR!!'): /home/vagrant/src/kuma/search/utils.py:76
http_app_kuma: 2015-04-28 06:48:03,382 kuma.search.utils:ERROR Elasticsearch exception: TransportError(503, 'ERROR!!'): /home/vagrant/src/kuma/search/utils.py:76
......................................F...........F............/home/vagrant/src/vendor/src/django/django/template/defaulttags.py:63: UserWarning: A {% csrf_token %} was used in a template, but the context did not provide the value. This is usually caused by not using RequestContext.
warnings.warn("A {% csrf_token %} was used in a template, but the context did not provide the value. This is usually caused by not using RequestContext.")
.................F.E.F..FFFFF....FF.......F...................................S...S.....FF................................F...................................S............E.............S..............F.....S........S..S..FFFFFFFFF.........F........F....................................................................F...............F....................
======================================================================
ERROR: test_code_syntax_conversion (kuma.wiki.tests.test_content.ContentSectionToolTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_content.py", line 386, in test_code_syntax_conversion
.filter(CodeSyntaxFilter).serialize())
File "/home/vagrant/src/kuma/wiki/content.py", line 285, in serialize
return u"".join(self.serializer.serialize(stream))
File "/home/vagrant/src/vendor/src/html5lib/html5lib/serializer/htmlserializer.py", line 199, in serialize
for token in treewalker:
File "/home/vagrant/src/kuma/wiki/content.py", line 980, in __iter__
del attrs['function']
KeyError: 'function'
======================================================================
ERROR: Verify the tagged documents list view, even for duplicate tags
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_templates.py", line 709, in test_tag_list_duplicates
fr_tag.save()
File "/home/vagrant/src/vendor/src/django-taggit/taggit/models.py", line 76, in save
return super(TagBase, self).save(*args, **kwargs)
File "/home/vagrant/src/vendor/src/django/django/db/models/base.py", line 589, in save
force_update=force_update, update_fields=update_fields)
File "/home/vagrant/src/vendor/src/django/django/db/models/base.py", line 617, in save_base
updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
File "/home/vagrant/src/vendor/src/django/django/db/models/base.py", line 698, in _save_table
result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
File "/home/vagrant/src/vendor/src/django/django/db/models/base.py", line 731, in _do_insert
using=using, raw=raw)
File "/home/vagrant/src/vendor/src/django/django/db/models/manager.py", line 92, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/home/vagrant/src/vendor/src/django/django/db/models/query.py", line 921, in _insert
return query.get_compiler(using=using).execute_sql(return_id)
File "/home/vagrant/src/vendor/src/django/django/db/models/sql/compiler.py", line 920, in execute_sql
cursor.execute(sql, params)
File "/home/vagrant/src/vendor/src/django/django/db/backends/utils.py", line 65, in execute
return self.cursor.execute(sql, params)
File "/home/vagrant/src/vendor/src/django/django/db/utils.py", line 94, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/home/vagrant/src/vendor/src/django/django/db/backends/utils.py", line 65, in execute
return self.cursor.execute(sql, params)
File "/home/vagrant/src/vendor/src/django/django/db/backends/mysql/base.py", line 129, in execute
return self.cursor.execute(query, args)
File "/home/vagrant/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py", line 173, in execute
self.errorhandler(self, exc, value)
File "/home/vagrant/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
IntegrityError: (1062, "Duplicate entry 'CSS R\xc3\xa9f\xc3\xa9rence' for key 'name'")
======================================================================
FAIL: Successful Persona auth of a new user displays a success
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/users/tests/test_templates.py", line 210, in test_persona_auth_success_copy
verify_strings_in_response(expected_strings, response)
File "/home/vagrant/src/kuma/users/tests/__init__.py", line 60, in verify_strings_in_response
msg="Expected '%s' in content." % test_string)
AssertionError: Expected '<input name="username" maxlength="30" type="text" autofocus="autofocus" required="required" placeholder="Username" id="id_username" />' in content.
======================================================================
FAIL: Signing up with Persona creates a new Django User instance.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/users/tests/test_views.py", line 631, in test_persona_signup_create_django_user
eq_('!', testuser.password)
AssertionError: '!' != u'!DGG9LtUwJ3hTE6kOcyglN3XUhST890ZElDUj0nYX'
-------------------- >> begin captured logging << --------------------
requests.packages.urllib3.connectionpool: INFO: Starting new HTTPS connection (1): basket.mozilla.com
requests.packages.urllib3.connectionpool: DEBUG: "POST /news/subscribe/ HTTP/1.1" 200 None
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: Bug 925043 - Redesign TOC has a bunch of empty <code> tags in markup
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_content.py", line 547, in test_bug_925043
eq_(normalize_html(expected), normalize_html(result))
AssertionError: u'<li><a rel="internal" href="#Print">Mastering<code>print</code></a></li>' != u'Mastering<code>print</code>'
======================================================================
FAIL: test_dekiscript_macro_conversion (kuma.wiki.tests.test_content.ContentSectionToolTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_content.py", line 584, in test_dekiscript_macro_conversion
eq_(normalize_html(expected_lines[i]), normalize_html(result))
AssertionError: u'<span>Just a span</span>' != u'{{ Just a span }}'
======================================================================
FAIL: test_generate_toc (kuma.wiki.tests.test_content.ContentSectionToolTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_content.py", line 464, in test_generate_toc
eq_(normalize_html(expected), normalize_html(result))
AssertionError: u'<li><a rel="internal" href="#HTML">HTML</a><ol><li><a rel="internal" href="#HTML5_canvas_element">HTML5<code>canvas</code>element</a></li></ol></li><li><a rel="internal" href="#JavaScript">JavaScript</a><ol><li><a rel="internal" href="#WebGL">WebGL</a></li><li><a rel="internal" href="#Audio">Audio</a><ol><li><a rel="internal" href="#Audio-API">Audio API</a></li></ol></li></ol></li><li><a rel="internal" href="#CSS">CSS</a><ol><li><ol><li><a rel="internal" href="#CSS_transforms">CSS transforms</a></li></ol></li><li><a rel="internal" href="#Gradients">Gradients</a><ol><li><a rel="internal" href="#Scaling_backgrounds">Scaling backgrounds</a></li></ol></li></ol></li>' != u'HTMLHTML5<code>canvas</code>elementJavaScriptWebGLAudioAudio APICSSCSS transformsGradientsScaling backgrounds'
======================================================================
FAIL: test_generate_toc_h2 (kuma.wiki.tests.test_content.ContentSectionToolTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_content.py", line 492, in test_generate_toc_h2
eq_(normalize_html(expected), normalize_html(result))
AssertionError: u'<li><a rel="internal" href="#HTML">HTML</a></li><li><a rel="internal" href="#JavaScript">JavaScript</a></li><li><a rel="internal" href="#CSS">CSS</a></li>' != u'HTMLJavaScriptCSS'
======================================================================
FAIL: test_generate_toc_h3 (kuma.wiki.tests.test_content.ContentSectionToolTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_content.py", line 531, in test_generate_toc_h3
eq_(normalize_html(expected), normalize_html(result))
AssertionError: u'<li><a rel="internal" href="#HTML">HTML</a><ol><li><a rel="internal" href="#HTML5_canvas_element">HTML5<code>canvas</code>element</a></li></ol></li><li><a rel="internal" href="#JavaScript">JavaScript</a><ol><li><a rel="internal" href="#WebGL">WebGL</a></li><li><a rel="internal" href="#Audio">Audio</a></li></ol></li><li><a rel="internal" href="#CSS">CSS</a><ol><li><a rel="internal" href="#Gradients">Gradients</a></li></ol></li>' != u'HTMLHTML5<code>canvas</code>elementJavaScriptWebGLAudioCSSGradients'
======================================================================
FAIL: Any contents inside an <iframe> should be removed
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_content.py", line 827, in test_iframe_host_contents_filter
eq_(normalize_html(expected_src), normalize_html(result_src))
AssertionError: u'<iframe></iframe>' != u''
======================================================================
FAIL: test_iframe_host_filter (kuma.wiki.tests.test_content.ContentSectionToolTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_content.py", line 763, in test_iframe_host_filter
eq_(if1.length, 1)
AssertionError: 2 != 1
======================================================================
FAIL: test_incremented_section_ids (kuma.wiki.tests.test_content.ContentSectionToolTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_content.py", line 107, in test_incremented_section_ids
eq_(result_src, expected)
AssertionError: u'\n <h1 id="Header_One" class="header1">Header One</h1>\n Header One</h1>\n Header One</h1>\n Header Two</h1>\n <h1 id="someId" name="someId">Header Two</h1>\n ' != '\n <h1 class="header1" id="Header_One">Header One</h1>\n <h1 id="Header_One_2">Header One</h1>\n <h1 id="Header_One_3">Header One</h1>\n <h1 id="Header_Two">Header Two</h1>\n <h1 id="someId" name="someId">Header Two</h1>\n '
======================================================================
FAIL: test_link_annotation (kuma.wiki.tests.test_content.ContentSectionToolTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_content.py", line 916, in test_link_annotation
eq_(normalize_html(expected_line), normalize_html(result_line))
AssertionError: u'<li><a class="foobar" name="quux">A lack of href should not cause a problem.</a></li>' != u'<li><a name="quux" class="foobar">A lack of href should not cause a problem.</a></li>'
======================================================================
FAIL: test_section_ids (kuma.wiki.tests.test_content.ContentSectionToolTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_content.py", line 72, in test_section_ids
eq_(id, result_doc.find('.%s' % cls).attr('id'))
AssertionError: 'Constants' != 'This_title_does_not_match_the_name'
======================================================================
FAIL: Ensure build_json_data uses rendered HTML when available to extract
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_models.py", line 1872, in test_bug_982174
eq_(expected_sections, json_data['sections'])
AssertionError: [{'id': 'Section_1', 'title': 'Section 1'}, {'id': 'Section_3', 'title': 'Section 3'}] != []
======================================================================
FAIL: test_cached_content_fields (kuma.wiki.tests.test_models.DocumentParsingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_models.py", line 1843, in test_cached_content_fields
normalize_html(d.get_body_html()))
AssertionError: u'<h2 id="First">First</h2><p>This is a document</p><!-- --><!-- --><h2 id="Second">Second</h2><p>Another section</p><a href="/en-US/docs/document-with-sections">Existing link</a><a href="/en-US/docs/does-not-exist" class="new">New link</a>' != u'First<p>This is a document</p><!-- --><!-- -->Second<p>Another section</p><a href="/en-US/docs/document-with-sections">Existing link</a><a href="/en-US/docs/does-not-exist" class="new">New link</a>'
======================================================================
FAIL: A basic tree with two direct children and no sub-trees on
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_models.py", line 1169, in test_children_simple
eq_([d2, d3], d1.get_descendants())
AssertionError: [<Document: /en-US/docs/child (Child)>, <Document: /en-US/docs/another-child (Another child)>] != []
======================================================================
FAIL: HTTP GET to new revision URL based on another revision.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_templates.py", line 485, in test_new_revision_GET_based_on
eq_(doc('#id_content')[0].value, r.content)
AssertionError: '\r\n<div>The content here</div>' != '<div>The content here</div>'
======================================================================
FAIL: PUT API should handle text/html requests with complex HTML documents
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_views.py", line 3685, in test_put_complex_html
eq_(201, resp.status_code)
AssertionError: 201 != 400
======================================================================
FAIL: A PUT request with an if-match header throws a 412 Precondition
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_views.py", line 3738, in test_put_etag_conflict
eq_(205, resp.status_code)
AssertionError: 205 != 400
======================================================================
FAIL: PUT API should allow overwrite of existing document content
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_views.py", line 3495, in test_put_existing
eq_(205, resp.status_code)
AssertionError: 205 != 400
======================================================================
FAIL: PUT API should handle application/json requests
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_views.py", line 3640, in test_put_json
eq_(201, resp.status_code)
AssertionError: 201 != 400
======================================================================
FAIL: PUT API should allow creation of a document whose path would make it
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_views.py", line 3586, in test_put_new_child
eq_(404, resp.status_code)
AssertionError: 404 != 400
======================================================================
FAIL: PUT API should allow creation of a document whose path would place
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_views.py", line 3568, in test_put_new_root
eq_(201, resp.status_code)
AssertionError: 201 != 400
======================================================================
FAIL: PUT API should allow overwrite of a specific section of an existing
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_views.py", line 3527, in test_put_section_edit
eq_(205, resp.status_code)
AssertionError: 205 != 400
======================================================================
FAIL: PUT API should handle text/html requests
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_views.py", line 3657, in test_put_simple_html
eq_(201, resp.status_code)
AssertionError: 201 != 400
======================================================================
FAIL: Revisions modified by PUT API should track the auth key used
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_views.py", line 3709, in test_put_track_authkey
eq_(201, resp.status_code)
AssertionError: 201 != 400
======================================================================
FAIL: test_code_sample_iframe_embed (kuma.wiki.tests.test_views.CodeSampleViewTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/core/tests/__init__.py", line 64, in inner
return func(*args, **kwargs)
File "/home/vagrant/src/kuma/wiki/tests/test_views.py", line 3217, in test_code_sample_iframe_embed
eq_(if1.length, 1)
AssertionError: 2 != 1
======================================================================
FAIL: test_clone (kuma.wiki.tests.test_views.DocumentEditingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_views.py", line 1860, in test_clone
eq_(page.find('textarea[name=content]')[0].value, content)
AssertionError: '\r\n<p>Hello!</p>' != '<p>Hello!</p>'
======================================================================
FAIL: The document view shouldn't redirect to itself.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_views.py", line 83, in test_self_redirect_suppression
self.assertContains(response, html)
File "/home/vagrant/src/vendor/src/django/django/test/testcases.py", line 363, in assertContains
msg_prefix + "Couldn't find %s in response" % text_repr)
AssertionError: Couldn't find 'REDIRECT <a class="redirect" href="/en-US/docs/redirdoc">smoo</a>' in response
======================================================================
FAIL: test_toc_view (kuma.wiki.tests.test_views.ViewTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/src/kuma/wiki/tests/test_views.py", line 216, in test_toc_view
eq_(resp.content, '<ol><li><a href="#Head_2" rel="internal">Head 2</a>'
AssertionError: '<ol></a></a></ol>' != '<ol><li><a href="#Head_2" rel="internal">Head 2</a><ol><li><a href="#Head_3" rel="internal">Head 3</a></ol></li></ol>'
----------------------------------------------------------------------
Ran 630 tests in 178.719s
FAILED (SKIP=10, errors=2, failures=29)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment