I don't have a blog. When I have something to write, it pretty much ends up on Perlmonks. This is (as the title suggests) more story than meditation. Maybe what I've uncovered is obvious, maybe not. I just hope it will help someone out.
I'm developing for the Solaris (Sparc) OS. Mostly things are the same, but sometimes they aren't. When I was having problems getting https://localhost/ to work, I tried using openssl to get in:
No dice -- got an error right away. Eventually, I discovered thatopenssl s_client -connect localhost:443
worked instead. I'm sure someone can explain that -- I can't.openssl s_client -connect 10.1.1.161:443
Next, I was trying to run a test script to hit the local webserver. Since I'd already discovered localhost wouldn't do that, I was using the IP address, which worked fine until there was a re-direct, at which point things just died quietly (i.e., nothing obvious in the web logs).
So then I tried using a browser (with the IP address, not the name) to check that things worked, and discovered that Firefox complained that the SSL certificate I had installed on this (virtual) box didn't match the IP address I was trying to use. So I put the name of the host into my test script, and was finally able to log in.
So my test script is fairly simple: try to log in as a variety of different users, each with a different set of privileges, and confirm that the user can see the links that they're allowed to see, and if the link does exist, try to follow it, making sure that a valid page (HTTP code is 200) gets returned.
Since some of the links belong to packages that aren't installed yet, I expect some of them to fail, so that part of the code is inside a SKIP block. This worked fine when I ran the script from my Ubuntu box, hitting the Solaris box, but now I'm running from within Solaris, as soon as a non-existent page is requested, the test script dies, and I'm not sure why.
The links are in a table, so I've just commented those elements out, and now my test script is passing OK -- I guess I need to go back to the docs and read them again.
Sometimes development is maddening like that.
Update: I've started a SoPW question to follow up on my last point.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Stories from the front
by zentara (Cardinal) on Jan 03, 2009 at 14:34 UTC | |
by atcroft (Abbot) on Jan 03, 2009 at 15:05 UTC | |
by talexb (Chancellor) on Jan 03, 2009 at 16:08 UTC | |
by zentara (Cardinal) on Jan 03, 2009 at 18:13 UTC | |
|
Re: Stories from the front
by missingthepoint (Friar) on Jan 04, 2009 at 08:31 UTC | |
by talexb (Chancellor) on Jan 05, 2009 at 01:03 UTC | |
by mr_mischief (Monsignor) on Jan 05, 2009 at 14:52 UTC | |
by missingthepoint (Friar) on Jan 06, 2009 at 07:33 UTC |