mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
replaced port-ui-desktop with desktop to make it more speakable
This commit is contained in:
@@ -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)
|
||||
|
@@ -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
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user