aboutsummaryrefslogtreecommitdiff
path: root/vo/votest/tests/req_3.3.3.cl
blob: f3bf606a10812942cccc4be913f8392d83bbdbaf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#
#  Refer to a Resource by an 'anonymous' query.

# Set the test description string.
votest.descr = "Refer to a Resource by an 'anonymous' query."

print ("------------------------------------------------------------------")
print ("Req  3.3.3:  Users shall be able to refer to a VO Resource by the")
print ("	     'anonymous' result of a Registry query.")
print ("------------------------------------------------------------------")

fcache init


# Execute the test commands.
print ("")
print ("Process requests for all x-ray resources in our personal database. ")
print ("")
print ("")

# Search for the X-Ray resource.
regdb ("resolve", bandpass="x-ray")

if (regdb.svctype == "I") {
    getimg (regdb.alias, "dev$ypix", size=0.02)
} else if (regdb.svctype == "C") {
    getcat (regdb.alias, "dev$ypix", size=0.02)
} else {
    printf ("Unknown service type for '%s'\n", regdb.alias)
}