Package gavo :: Package user :: Module validation
[frames] | no frames]

Module validation

source code

A cli-facing module providing functionality to "validate" one or more resource descriptors.

Validation means giving some prognosis as to whether RD will properly work within both the DC and the VO.

While validation is active there's base.VALIDATING=True. If RDs to anything expensive, they're advised to have something like:

       if getattr(base, "VALIDATING", False):
               (don't do the expensive thing)
Classes
  TestsCollector
a singleton that collects use cases to run.
Functions
 
outputDependentMessage(aString)
an output function for errhandle.raiseAndCatch.
source code
 
outputError(rdId, message, verbose=False) source code
 
outputWarning(rdId, message, verbose=False) source code
 
loadRD(rdId)
returns the RD identified by rdId.
source code
 
isIVOPublished(svc)
returns true if svc has a publication facing the VO.
source code
 
validateServices(rd, args)
outputs to stdout various diagnostics about the services on rd.
source code
 
validateRST(rd, args)
outputs diagnostics on RST formatting problems.
source code
 
validateRowmakers(rd, args)
tries to build all rowmakers mentioned in the RD and bails out if one is bad.
source code
 
validateOtherCode(rd, args)
tries to compile other pieces of code in an RD and bails out if one is bad.
source code
 
validateTables(rd, args)
does some sanity checks on the (top-level) tables within rd.
source code
 
validateOne(rdId, args)
outputs to stdout various information on the RD identified by rdId.
source code
 
validateAll(args)
validates all accessible RDs.
source code
 
parseCommandLine() source code
 
main() source code
Function Details

outputDependentMessage(aString)

source code 

an output function for errhandle.raiseAndCatch.

It is used here to indent dependent error messages.

loadRD(rdId)

source code 

returns the RD identified by rdId.

If that fails, diagnostics are printed and None is returned.