@@ -61,6 +61,7 @@ def test_uploading_index(self):
6161 index_content
6262 )
6363 self .assertIn ("<a href=\" ../\" title=\" ../\" >../</a>" , index_content )
64+ self .assertNotIn (PROD_INFO_SUFFIX , index_content )
6465
6566 indedx_obj = test_bucket .Object (COMMONS_ROOT_INDEX )
6667 index_content = str (indedx_obj .get ()["Body" ].read (), "utf-8" )
@@ -71,6 +72,7 @@ def test_uploading_index(self):
7172 index_content
7273 )
7374 self .assertNotIn ("<a href=\" ../\" title=\" ../\" >../</a>" , index_content )
75+ self .assertNotIn (PROD_INFO_SUFFIX , index_content )
7476
7577 def test_overlap_upload_index (self ):
7678 test_zip = os .path .join (os .getcwd (), "tests/input/commons-client-4.5.6.zip" )
@@ -99,6 +101,7 @@ def test_overlap_upload_index(self):
99101 "<a href=\" maven-metadata.xml\" title=\" maven-metadata.xml\" >maven-metadata.xml</a>" ,
100102 index_content )
101103 self .assertIn ("<a href=\" ../\" title=\" ../\" >../</a>" , index_content )
104+ self .assertNotIn (PROD_INFO_SUFFIX , index_content )
102105
103106 indedx_obj = test_bucket .Object (COMMONS_LOGGING_INDEX )
104107 index_content = str (indedx_obj .get ()["Body" ].read (), "utf-8" )
@@ -107,6 +110,7 @@ def test_overlap_upload_index(self):
107110 "<a href=\" maven-metadata.xml\" title=\" maven-metadata.xml\" >maven-metadata.xml</a>" ,
108111 index_content )
109112 self .assertIn ("<a href=\" ../\" title=\" ../\" >../</a>" , index_content )
113+ self .assertNotIn (PROD_INFO_SUFFIX , index_content )
110114
111115 indedx_obj = test_bucket .Object (COMMONS_ROOT_INDEX )
112116 index_content = str (indedx_obj .get ()["Body" ].read (), "utf-8" )
@@ -117,6 +121,7 @@ def test_overlap_upload_index(self):
117121 index_content
118122 )
119123 self .assertNotIn ("<a href=\" ../\" title=\" ../\" >../</a>" , index_content )
124+ self .assertNotIn (PROD_INFO_SUFFIX , index_content )
120125
121126 def test_upload_index_with_short_prefix (self ):
122127 self .__test_upload_index_with_prefix (SHORT_TEST_PREFIX )
@@ -165,6 +170,7 @@ def __test_upload_index_with_prefix(self, prefix: str):
165170 index_content
166171 )
167172 self .assertIn ("<a href=\" ../\" title=\" ../\" >../</a>" , index_content )
173+ self .assertNotIn (PROD_INFO_SUFFIX , index_content )
168174
169175 indedx_obj = test_bucket .Object (os .path .join (prefix_ , COMMONS_ROOT_INDEX ))
170176 index_content = str (indedx_obj .get ()["Body" ].read (), "utf-8" )
@@ -175,6 +181,7 @@ def __test_upload_index_with_prefix(self, prefix: str):
175181 index_content
176182 )
177183 self .assertNotIn ("<a href=\" ../\" title=\" ../\" >../</a>" , index_content )
184+ self .assertNotIn (PROD_INFO_SUFFIX , index_content )
178185
179186 def test_deletion_index (self ):
180187 self .__prepare_content ()
@@ -214,6 +221,7 @@ def test_deletion_index(self):
214221 "<a href=\" maven-metadata.xml\" title=\" maven-metadata.xml\" >maven-metadata.xml</a>" ,
215222 index_content )
216223 self .assertNotIn ("<a href=\" 4.5.6/\" title=\" 4.5.6/\" >4.5.6/</a>" , index_content )
224+ self .assertNotIn (PROD_INFO_SUFFIX , index_content )
217225
218226 indedx_obj = test_bucket .Object (COMMONS_ROOT_INDEX )
219227 index_content = str (indedx_obj .get ()["Body" ].read (), "utf-8" )
@@ -224,6 +232,7 @@ def test_deletion_index(self):
224232 index_content
225233 )
226234 self .assertNotIn ("<a href=\" ../\" title=\" ../\" >../</a>" , index_content )
235+ self .assertNotIn (PROD_INFO_SUFFIX , index_content )
227236
228237 product_459 = "commons-client-4.5.9"
229238 test_zip = os .path .join (os .getcwd (), "tests/input/commons-client-4.5.9.zip" )
@@ -282,6 +291,7 @@ def __test_deletion_index_with_prefix(self, prefix: str):
282291 "<a href=\" maven-metadata.xml\" title=\" maven-metadata.xml\" >maven-metadata.xml</a>" ,
283292 index_content )
284293 self .assertNotIn ("<a href=\" 4.5.6/\" title=\" 4.5.6/\" >4.5.6/</a>" , index_content )
294+ self .assertNotIn (PROD_INFO_SUFFIX , index_content )
285295
286296 indedx_obj = test_bucket .Object (os .path .join (prefix_ , COMMONS_ROOT_INDEX ))
287297 index_content = str (indedx_obj .get ()["Body" ].read (), "utf-8" )
@@ -292,6 +302,7 @@ def __test_deletion_index_with_prefix(self, prefix: str):
292302 index_content
293303 )
294304 self .assertNotIn ("<a href=\" ../\" title=\" ../\" >../</a>" , index_content )
305+ self .assertNotIn (PROD_INFO_SUFFIX , index_content )
295306
296307 test_zip = os .path .join (os .getcwd (), "tests/input/commons-client-4.5.9.zip" )
297308 handle_maven_del (
0 commit comments