@@ -137,3 +137,23 @@ def test_07_xrootd_fetch_from_auth_cache(self):
137
137
origin_file = os .path .join (getcfg ("OriginRootdir" ), getcfg ("OriginAuthExport" ).lstrip ("/" ), name )
138
138
chechskum_match = files .checksum_files_match (origin_file , dest_file )
139
139
self .assert_ (chechskum_match , 'Cache and download file have same contents' )
140
+
141
+ def test_08_https_fetch_from_auth_cache (self ):
142
+ core .skip_ok_unless_installed ('globus-proxy-utils' , 'gfal2-plugin-http' , 'gfal2-util' ,
143
+ 'gfal2-plugin-file' , by_dependency = True )
144
+ self .skip_bad_unless (core .state ['proxy.valid' ], 'requires a proxy cert' )
145
+ name , contents = self .testfiles [3 ]
146
+ path = os .path .join (getcfg ("OriginAuthExport" ), name )
147
+ dest_file = '/tmp/testfileHTTPsFromAuthCache'
148
+ uid = pwd .getpwnam (core .options .username )[2 ]
149
+ usercert = '/tmp/x509up_u%d' % uid
150
+ userkey = '/tmp/x509up_u%d' % uid
151
+ result , _ , _ = \
152
+ core .check_system (["gfal-copy" , "-vf" ,
153
+ "--cert" , usercert , "--key" , userkey ,
154
+ "https://%s:%d%s" % (core .get_hostname (),getcfg ("CacheHTTPSPort" ), path ),
155
+ "file://%s" % dest_file ],
156
+ "Checking xrootd copy from Authenticated cache" , user = True )
157
+ origin_file = os .path .join (getcfg ("OriginRootdir" ), getcfg ("OriginAuthExport" ).lstrip ("/" ), name )
158
+ chechskum_match = files .checksum_files_match (origin_file , dest_file )
159
+ self .assert_ (chechskum_match , 'Cache and download file have same contents' )
0 commit comments