5.2.6.2: It would be nice to be able to do some testing without having
to boot an AI client. Would it be possible (and sufficient) to
package up the aimanifest command, the aiuser account, and some sort
of aitest command that could run the script in the same sort of
environment (including the environment variables from 5.2.7) as
auto-install would? Seems like this would help you with development,
actually :-)
Having such a command could help testing to some level, but it wouldn't
entirely test all aspects.
1. A set of env variables can be mocked up by such an aitest command
to test that the script executes properly (but the values of the
environment
variables obviously won't be what they are when the script runs on real
clients).
2. For cases where the script calls additional commands, it would be
hard to test outside of the AI image its intended to run in. AI images
may differ from release to release wrt what commands are available in
them and the aiuser account as well, so an 'aitest' command run on the
server, or wherever, won't quite capture this aspect of validation.
I agree that it won't be perfect emulation, but it would seem to allow
one to get the major issues figured out before going to the real
environment so that hopefully there's less rebooting and groping
around required there.
I'm not so concerned about variance in the available commands, as I
expect we will arrive at a stable core definition before too long
(it's a product issue that needs to be addressed).
So if (1) is the predominant case we're validating against, I am not sure
we really need to provide a separate command to wrap around this
testing. We can package 'aimanifest' and the 'aiuser' account to be
installed on the server, and then simply provide a template ENV file
filled in with dummy values where a user can then use it to:
$ . ENV_file
$ export AIM_MANIFEST=/tmp/foo
$ export AIM_MANIFEST_LOG=/tmp/foo.log
$
$ su aiuser ./script
The latter two variables could actually be in the ENV file as well. And
also, the user could tweak the values in the ENV file to more closely
resemble clients they will ultimately run the script on. Do you think
this is sufficient over providing a wrapper command?
That's probably enough.
Dave
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss