#1067 closed defect (fixed)

Storage Servers version is 0 on Welcome page

Reported by: freestorm Owned by: freestorm
Priority: major Milestone: 1.7.1
Component: code-frontend-web Version: 1.6.1
Keywords: easy Cc:
Launchpad Bug:

Description

Storage Server version is 0 for all nodes on the Welcome Page.

Attachments (1)

server_version_on_welcome_page.dpatch.txt (39.1 KB) - added by freestorm at 2010-06-05T20:34:29Z.

Download all attachments as: .zip

Change History (7)

comment:1 Changed at 2010-06-05T20:36:54Z by freestorm

I've looked to write a running test , but as far as I Now, the Welcome page in running test dosen't have "fake" storage server to verify version.

Fred

comment:2 follow-up: Changed at 2010-06-06T17:56:02Z by zooko

  • Owner changed from nobody to freestorm

Let's see, to test this we need to exercise the code that the patch changes -- render_service_row() -- and verify that it is emitting something other than 0 in the "version" slot in the ctx. Let's see, there are already pretty thorough tests of the web ui...

Hm, let's see test_web.py test_welcome() might do it, if there is already at least one server connected in that test. Why not see if you can add a requirement that the resulting HTML contains the right pattern of version?

comment:3 in reply to: ↑ 2 Changed at 2010-06-13T21:59:41Z by freestorm

Replying to zooko:

Let's see, to test this we need to exercise the code that the patch changes -- render_service_row() -- and verify that it is emitting something other than 0 in the "version" slot in the ctx. Let's see, there are already pretty thorough tests of the web ui...

Hm, let's see test_web.py test_welcome() might do it, if there is already at least one server connected in that test. Why not see if you can add a requirement that the resulting HTML contains the right pattern of version?

I can't check the server version with test_web.py test_welcome(), because the running test dosen't have a *fake* server node connected and the test fails.

You can view the test fail here

I copy the html code returned from the running test, you can view it here

Note: I've just changed the css link, so the page can correctly be viewed by humans

comment:4 Changed at 2010-07-08T16:43:44Z by terrell

  • Keywords test-needed added

I confirm this patch works as advertised and solves the issue.

comment:5 Changed at 2010-07-08T16:45:19Z by terrell

  • Component changed from unknown to code-frontend-web
  • Milestone changed from undecided to 1.7.1

comment:6 Changed at 2010-07-08T18:05:57Z by zooko

  • Keywords review-needed test-needed removed
  • Resolution set to fixed
  • Status changed from new to closed

fixed in 35ec8f6ac28a4b7b. thanks FreeStorm and terrell!

Note: See TracTickets for help on using tickets.