@@ -56,7 +56,6 @@ def testParsing1(self):
56
56
'OSG_SPONSOR' : 'osg:100' ,
57
57
'OSG_SITE_INFO' : 'http://example/com/policy.html' ,
58
58
'OSG_CONTACT_NAME' : 'Admin Name' ,
59
- 'OSG_CONTACT_EMAIL' :
'[email protected] ' ,
60
59
'OSG_SITE_CITY' : 'Chicago' ,
61
60
'OSG_SITE_COUNTRY' : 'US' ,
62
61
'OSG_SITE_LONGITUDE' : '84.23' ,
@@ -91,7 +90,6 @@ def testParsing2(self):
91
90
'OSG_SPONSOR' : 'osg:50 usatlas:50' ,
92
91
'OSG_SITE_INFO' : 'http://example/com/policy.html' ,
93
92
'OSG_CONTACT_NAME' : 'Admin Name' ,
94
- 'OSG_CONTACT_EMAIL' :
'[email protected] ' ,
95
93
'OSG_SITE_CITY' : 'Chicago' ,
96
94
'OSG_SITE_COUNTRY' : 'US' ,
97
95
'OSG_SITE_LONGITUDE' : '-84.23' ,
@@ -126,7 +124,6 @@ def testParsing3(self):
126
124
'OSG_SPONSOR' : 'osg:50 usatlas:50' ,
127
125
'OSG_SITE_INFO' : 'http://example/com/policy.html' ,
128
126
'OSG_CONTACT_NAME' : 'Admin Name' ,
129
- 'OSG_CONTACT_EMAIL' :
'[email protected] ' ,
130
127
'OSG_SITE_CITY' : 'Chicago' ,
131
128
'OSG_SITE_COUNTRY' : 'US' ,
132
129
'OSG_SITE_LONGITUDE' : '-84.23' ,
@@ -160,7 +157,6 @@ def testMissingAttribute(self):
160
157
# ^ TODO OSG 3.5: add "resource" to this list
161
158
mandatory_on_ce = ['host_name' ,
162
159
'contact' ,
163
- 'email' ,
164
160
'city' ,
165
161
'country' ,
166
162
'longitude' ,
@@ -267,26 +263,6 @@ def testInvalidHostname(self):
267
263
self .assertFalse (settings .check_attributes (attributes ),
268
264
"Invalid hostname ignored" )
269
265
270
- def testInvalidEmail (self ):
271
- """
272
- Test the check_attributes with invalid email
273
- """
274
-
275
- config_file = get_test_config ("siteattributes/" \
276
- "invalid_email.ini" )
277
- configuration = configparser .SafeConfigParser ()
278
- configuration .read (config_file )
279
-
280
- settings = siteinformation .SiteInformation (logger = global_logger )
281
- try :
282
- settings .parse_configuration (configuration )
283
- except Exception as e :
284
- self .fail ("Received exception while parsing configuration: %s" % e )
285
-
286
- attributes = settings .get_attributes ()
287
- self .assertFalse (settings .check_attributes (attributes ),
288
- "Invalid email ignored" )
289
-
290
266
def testInvalidSponsor1 (self ):
291
267
"""
292
268
Test the check_attributes where the sponsor percentages
0 commit comments