-
Notifications
You must be signed in to change notification settings - Fork 1
Running OpenRasta's Tests
Each module may contain unit tests that are run automatically when you build OpenRasta from the command-line.
The Core module contains integration tests that initialize an instance of HttpListener and run the tests in-process. As the tests make use of http.sys, you need to ensure that you are running a version of windows that supports this component: Windows Server 2003, XP SP2, Vista, Server 2008 and Windows 7 are supported.
For the tests to run, you need to permission the tests to open the http.sys listener on the correct port, 6687.
On the 6.x kernels, you need to open a command prompt with Administrator rights.
First, you need to enable the listening on your ip address.
c:\> netsh http add iplisten 0.0.0.0
Then you need to authorize the correct port for http.sys.
c:\> netsh http add urlacl url=http://+:6687/ user=''DOMAIN\user''
where DOMAIN\user is the username you will be running the tests from (usually, your own username).
If you still find that access is being denied to the HttpListener then use the following to check the details of the urlacl are correct.
netsh http show urlacl
On WindowsXP, you need to use the httpcfg.exe
util.
– Download the HttpCfgAcl.zip file from Dominick Baier's site.
– Extract the zip and run the executable in !HttpCfgAcl/bin/Debug/HttpCfgAcl.exe
– select option ’’’a’’’
– When prompted for Account Name, type your username in the form DOMAIN\username (or if you’re not on a domain, MACHINENAME\username)
– Press enter to generate the SID. The tool will copy it in the clipboard
– Open a command prompt, and type @c:\> httpcfg set urlacl /u http://+:6687 /a @’’SID’’ where SID is the content that was copied in the clipboard (so don’t type SID, right click and select ’’Paste’’
And you should be all set.