replaced port-ui-desktop with desktop to make it more speakable

This commit is contained in:
2025-08-14 11:45:08 +02:00
parent 5e00deea19
commit 4a65a254ae
65 changed files with 72 additions and 72 deletions

View File

@@ -177,10 +177,10 @@ class TestCspFilters(unittest.TestCase):
def test_build_csp_header_frame_ancestors(self):
"""
frame-ancestors should include the wildcarded SLD+TLD when
'port-ui-desktop' is enabled, and omit it when disabled.
'desktop' is enabled, and omit it when disabled.
"""
# Ensure feature enabled and domain set
self.apps['app1']['features']['port-ui-desktop'] = True
self.apps['app1']['features']['desktop'] = True
# simulate a subdomain for the application
self.domains['web-app-port-ui'] = ['domain-example.com']
@@ -192,7 +192,7 @@ class TestCspFilters(unittest.TestCase):
)
# Now disable the feature and rebuild
self.apps['app1']['features']['port-ui-desktop'] = False
self.apps['app1']['features']['desktop'] = False
header_no = self.filter.build_csp_header(self.apps, 'app1', self.domains, web_protocol='https')
# Should no longer contain the wildcarded sld.tld
self.assertNotIn("*.domain-example.com", header_no)

View File

@@ -57,7 +57,7 @@ galaxy_info:
"applications": {
"portfolio": {
"features": {
"port-ui-desktop": True
"desktop": True
}
}
},
@@ -90,7 +90,7 @@ galaxy_info:
"applications": {
"portfolio": {
"features": {
"port-ui-desktop": True
"desktop": True
}
}
},