From 8f6a0a77f9979024110c3f916df56389815a4219 Mon Sep 17 00:00:00 2001 From: Faiyaz Ahmed Date: Thu, 8 Jan 2009 22:06:51 +0000 Subject: [PATCH] Initial commmit. --- cmdline/testUser.sh | 8 +++--- rspec/planetlab.xsd | 61 ++++++++++++++++++++++++++++++++++++++++++ rspec/rspecvalidate.py | 19 +++++++++++++ 3 files changed, 84 insertions(+), 4 deletions(-) create mode 100644 rspec/planetlab.xsd create mode 100644 rspec/rspecvalidate.py diff --git a/cmdline/testUser.sh b/cmdline/testUser.sh index 59b909c7..f1aa80a1 100755 --- a/cmdline/testUser.sh +++ b/cmdline/testUser.sh @@ -6,7 +6,7 @@ # The following lines use a test account. The account has a first name of "test" # and a last name of "account". The private key should be in the file test.pkey -USERNAME=test +USERNAME=${USERNAME-`whoami`} PARENT_HRN=planetlab.us.pl USER_HRN=$PARENT_HRN.account_test @@ -18,9 +18,9 @@ USER_HRN=$PARENT_HRN.account_test # The following lines use Tony Mack's planetlab account on a live PLC # database (tony: copy your private key to tmack.pkey in the current directory) -USERNAME=tmack -PARENT_HRN=planetlab.us.princeton -USER_HRN=$PARENT_HRN.Mack_Tony +#USERNAME=tmack +#PARENT_HRN=planetlab.us.princeton +#USER_HRN=$PARENT_HRN.Mack_Tony PRIVKEY_FN=$USERNAME.pkey CRED_FN=$USERNAME.cred diff --git a/rspec/planetlab.xsd b/rspec/planetlab.xsd new file mode 100644 index 00000000..6be14cbf --- /dev/null +++ b/rspec/planetlab.xsd @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/rspec/rspecvalidate.py b/rspec/rspecvalidate.py new file mode 100644 index 00000000..8a0a4887 --- /dev/null +++ b/rspec/rspecvalidate.py @@ -0,0 +1,19 @@ +#!/usr/bin/python + +# $HeadURL$ +# $Id$ + +# +# Validate RSPEC hiearchy, values, types, and names using supplied xsd. +# +# Faiyaz Ahmed +# +# Copyright 2009 Princeton University +# http://www.planet-lab.org +# + +import sys +from xml.dom import minidom + + +# parse -- 2.47.0