Commit 7dfd07a1 authored by Romain Courteaud's avatar Romain Courteaud

Vifib fiber website is no maintained.

Move all the code inside vifib_fiber bt5.
parent aeffc80d
<registered_skin_selection>
<skin_folder_selection>
<skin_folder>erp5_free_fiber_request</skin_folder>
<skin_selection>Fiber,View</skin_selection>
</skin_folder_selection>
</registered_skin_selection>
\ No newline at end of file
36 37
\ No newline at end of file \ No newline at end of file
erp5_free_fiber_request | Fiber
erp5_free_fiber_request | View
\ No newline at end of file
erp5_free_fiber_request
\ No newline at end of file
104 105
\ No newline at end of file \ No newline at end of file
...@@ -7,7 +7,7 @@ acl_users/vifib_machine_authentication ...@@ -7,7 +7,7 @@ acl_users/vifib_machine_authentication
acl_users/vifib_shadow acl_users/vifib_shadow
currency_module/EUR currency_module/EUR
document_module/1 document_module/1
notification_message_module/vifib* notification_message_module/vifib_hosting_hosting_request
service_module/cpu_consumption service_module/cpu_consumption
service_module/memory_consumption service_module/memory_consumption
service_module/vifib_instance_cleanup service_module/vifib_instance_cleanup
......
110 111
\ No newline at end of file \ No newline at end of file
...@@ -6,7 +6,6 @@ web_page_module/vifib_payzen_return ...@@ -6,7 +6,6 @@ web_page_module/vifib_payzen_return
web_page_module/vifib_payzen_error web_page_module/vifib_payzen_error
web_site_module/cash web_site_module/cash
web_site_module/erpypi web_site_module/erpypi
web_site_module/fiber
web_site_module/hosting web_site_module/hosting
image_module/vifib.cloud image_module/vifib.cloud
image_module/vifib.rack image_module/vifib.rack
......
...@@ -18,7 +18,5 @@ web_site_module/cash ...@@ -18,7 +18,5 @@ web_site_module/cash
web_site_module/cash/** web_site_module/cash/**
web_site_module/erpypi web_site_module/erpypi
web_site_module/erpypi/** web_site_module/erpypi/**
web_site_module/fiber
web_site_module/fiber/**
web_site_module/hosting web_site_module/hosting
web_site_module/hosting/** web_site_module/hosting/**
\ No newline at end of file
<registered_skin_selection>
<skin_folder_selection>
<skin_folder>erp5_free_fiber_request</skin_folder>
<skin_selection>Fiber,View</skin_selection>
</skin_folder_selection>
<skin_folder_selection>
<skin_folder>erp5_jquery</skin_folder>
<skin_selection>Fiber</skin_selection>
</skin_folder_selection>
<skin_folder_selection>
<skin_folder>erp5_km_theme</skin_folder>
<skin_selection>Fiber</skin_selection>
</skin_folder_selection>
<skin_folder_selection>
<skin_folder>erp5_xhtml_style</skin_folder>
<skin_selection>Fiber</skin_selection>
</skin_folder_selection>
<skin_folder_selection>
<skin_folder>vifib_fiber_theme</skin_folder>
<skin_selection>Fiber</skin_selection>
</skin_folder_selection>
<skin_folder_selection>
<skin_folder>vifib_jauks_theme</skin_folder>
<skin_selection>Fiber</skin_selection>
</skin_folder_selection>
<skin_folder_selection>
<skin_folder>vifib_jauks_widget_library</skin_folder>
<skin_selection>Fiber</skin_selection>
</skin_folder_selection>
<skin_folder_selection>
<skin_folder>vifib_web</skin_folder>
<skin_selection>Fiber</skin_selection>
</skin_folder_selection>
</registered_skin_selection>
\ No newline at end of file
...@@ -6,6 +6,27 @@ ...@@ -6,6 +6,27 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
ViFiB
\ No newline at end of file
vifib_web
vifib_erp5
slapos_cloud
vifib_data_web
\ No newline at end of file
GPL
\ No newline at end of file
1
\ No newline at end of file
web_site_module/fiber
\ No newline at end of file
notification_message_module/vifib_fiber*
web_site_module/fiber
web_site_module/fiber/**
\ No newline at end of file
erp5_free_fiber_request | Fiber
erp5_free_fiber_request | View
erp5_jquery | Fiber
erp5_km_theme | Fiber
erp5_xhtml_style | Fiber
vifib_fiber_theme | Fiber
vifib_jauks_theme | Fiber
vifib_jauks_widget_library | Fiber
vifib_web | Fiber
\ No newline at end of file
erp5_free_fiber_request
vifib_fiber_theme
\ No newline at end of file
vifib_fiber
\ No newline at end of file
<registered_skin_selection> <registered_skin_selection>
<skin_folder_selection> <skin_folder_selection>
<skin_folder>erp5_jquery</skin_folder> <skin_folder>erp5_jquery</skin_folder>
<skin_selection>Hosting,Fiber,Cash</skin_selection> <skin_selection>Hosting,Cash</skin_selection>
</skin_folder_selection> </skin_folder_selection>
<skin_folder_selection> <skin_folder_selection>
<skin_folder>erp5_km_theme</skin_folder> <skin_folder>erp5_km_theme</skin_folder>
<skin_selection>Hosting,Fiber,Cash</skin_selection> <skin_selection>Hosting,Cash</skin_selection>
</skin_folder_selection> </skin_folder_selection>
<skin_folder_selection> <skin_folder_selection>
<skin_folder>erp5_xhtml_style</skin_folder> <skin_folder>erp5_xhtml_style</skin_folder>
<skin_selection>Hosting,Fiber,Cash</skin_selection> <skin_selection>Cash,Hosting</skin_selection>
</skin_folder_selection> </skin_folder_selection>
<skin_folder_selection> <skin_folder_selection>
<skin_folder>vifib_cash</skin_folder> <skin_folder>vifib_cash</skin_folder>
<skin_selection>Cash</skin_selection> <skin_selection>Cash</skin_selection>
</skin_folder_selection> </skin_folder_selection>
<skin_folder_selection>
<skin_folder>vifib_fiber_theme</skin_folder>
<skin_selection>Fiber</skin_selection>
</skin_folder_selection>
<skin_folder_selection> <skin_folder_selection>
<skin_folder>vifib_hosting</skin_folder> <skin_folder>vifib_hosting</skin_folder>
<skin_selection>Hosting</skin_selection> <skin_selection>Hosting</skin_selection>
...@@ -29,14 +25,14 @@ ...@@ -29,14 +25,14 @@
</skin_folder_selection> </skin_folder_selection>
<skin_folder_selection> <skin_folder_selection>
<skin_folder>vifib_jauks_theme</skin_folder> <skin_folder>vifib_jauks_theme</skin_folder>
<skin_selection>Hosting,Cash,Fiber</skin_selection> <skin_selection>Cash,Hosting</skin_selection>
</skin_folder_selection> </skin_folder_selection>
<skin_folder_selection> <skin_folder_selection>
<skin_folder>vifib_jauks_widget_library</skin_folder> <skin_folder>vifib_jauks_widget_library</skin_folder>
<skin_selection>Cash,Fiber,Hosting</skin_selection> <skin_selection>Cash,Hosting</skin_selection>
</skin_folder_selection> </skin_folder_selection>
<skin_folder_selection> <skin_folder_selection>
<skin_folder>vifib_web</skin_folder> <skin_folder>vifib_web</skin_folder>
<skin_selection>Hosting,View,Cash,Fiber</skin_selection> <skin_selection>Hosting,View,Cash</skin_selection>
</skin_folder_selection> </skin_folder_selection>
</registered_skin_selection> </registered_skin_selection>
\ No newline at end of file
...@@ -110,12 +110,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -110,12 +110,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
var created_at = new Date(Date.parse(data.created_at)),\n var created_at = new Date(Date.parse(data.created_at)),\n
now = new Date(),\n now = new Date(),\n
context = $(this);\n context = $(this);\n
// 5 minute for computer. 1 day for instance.\n // 5 minute for computer and instance.\n
if (/#access/.test(data.text) & /computer_module/.test(data[\'@document\']) & (now - created_at < 300000)) {\n if (/#access/.test(data.text) & /computer_module/.test(data[\'@document\']) & (now - created_at < 300000)) {\n
$(this).attr("class", "monitoring_ok")\n $(this).attr("class", "monitoring_ok")\n
.attr("title", data.text + " (" + created_at + ")" )\n .attr("title", data.text + " (" + created_at + ")" )\n
.attr("href", data[\'@document\']);\n .attr("href", data[\'@document\']);\n
} else if (/#access/.test(data.text) & /software_instance_module/.test(data[\'@document\']) & (now - created_at < 86400000)) {\n } else if (/#access/.test(data.text) & /software_instance_module/.test(data[\'@document\']) & (now - created_at < 300000)) {\n
$(this).attr("class", "monitoring_ok")\n $(this).attr("class", "monitoring_ok")\n
.attr("title", data.text + " (" + created_at + ")" )\n .attr("title", data.text + " (" + created_at + ")" )\n
.attr("href", data[\'@document\']);\n .attr("href", data[\'@document\']);\n
......
474 475
\ No newline at end of file \ No newline at end of file
erp5_jquery | Cash erp5_jquery | Cash
erp5_jquery | Fiber
erp5_jquery | Hosting erp5_jquery | Hosting
erp5_km_theme | Cash erp5_km_theme | Cash
erp5_km_theme | Fiber
erp5_km_theme | Hosting erp5_km_theme | Hosting
erp5_xhtml_style | Cash erp5_xhtml_style | Cash
erp5_xhtml_style | Fiber
erp5_xhtml_style | Hosting erp5_xhtml_style | Hosting
vifib_cash | Cash vifib_cash | Cash
vifib_fiber_theme | Fiber
vifib_hosting | Hosting vifib_hosting | Hosting
vifib_hosting_theme | Hosting vifib_hosting_theme | Hosting
vifib_jauks_theme | Cash vifib_jauks_theme | Cash
vifib_jauks_theme | Fiber
vifib_jauks_theme | Hosting vifib_jauks_theme | Hosting
vifib_jauks_widget_library | Cash vifib_jauks_widget_library | Cash
vifib_jauks_widget_library | Fiber
vifib_jauks_widget_library | Hosting vifib_jauks_widget_library | Hosting
vifib_web | Cash vifib_web | Cash
vifib_web | Fiber
vifib_web | Hosting vifib_web | Hosting
vifib_web | View vifib_web | View
\ No newline at end of file
vifib_cash vifib_cash
vifib_fiber_theme
vifib_hosting vifib_hosting
vifib_hosting_theme vifib_hosting_theme
vifib_jauks_theme vifib_jauks_theme
......
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2010 Nexedi SA and Contributors. All Rights Reserved.
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsibility of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# guarantees and support are strongly advised to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
import unittest
from DateTime import DateTime
from VifibSecurityMixin import testVifibSecurityMixin
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.ERP5Type.tests.backportUnittest import skip
class TestVifibFiberSubscription(testVifibSecurityMixin):
"""Class for test global registration processus"""
def createVifibDocumentList(self):
"""Create vifib document"""
#Add a valid vifib support
self.logMessage("Create Support")
module = self.portal.getDefaultModule("Organisation")
organisation = module.newContent(portal_type="Organisation",
reference="vifib-support")
self.markManualCreation(organisation)
organisation.validate()
#Install website
self.logMessage("Install Websites")
self.portal.portal_skins.vifib_web.WebSite_install()
#Add Proxy Role
workflow = self.portal.portal_workflow.document_conversion_interaction_workflow
sc_wf = getattr(workflow,"scripts")
python_script = sc_wf.get("updateContentMd5")
python_script.manage_proxy(roles=["Manager"])
def modifyFiberRequestState(self,transition_name,sequence,fiber_request=None):
"""
Calls the workflow for the fiber request
"""
if fiber_request is None:
fiber_request_url = sequence.get("fiber_request_url")
fiber_request = self.getPortal().restrictedTraverse(fiber_request_url)
#Do the workflow action
fiber_request.portal_workflow.doActionFor(fiber_request, transition_name)
def stepSetFiberSkin(self, sequence=None, sequence_list=None, **kw):
"""
Change current Skin
"""
request = self.app.REQUEST
self.getPortal().portal_skins.changeSkin("Fiber")
request.set('portal_skin', "Fiber")
def stepCallNewFiberRequestDialog(self, sequence=None, sequence_list=None, **kw):
"""Check access to the new free fiber request dialog"""
self.portal.WebSection_viewNewFreeFiberRequestDialog()
def stepCreateFiberRequest(self, sequence=None, sequence_list=None, **kw):
"""Create a free fiber request"""
#Create new request
self.portal.WebSection_newFreeFiberRequest(
dialog_id="WebSection_viewNewFreeFiberRequestDialog",
first_name="Test",
last_name="Vifib",
address_city="Cloud",
address_street_address="First",
address_zip_code=0000,
default_birthplace_address_city="Nexedi",
default_email_text="test.toto@vifib.test",
internet_service_provider="Free",
start_date=DateTime(),
telephone_text="0320707288")
def stepFindPendingFiberRequest(self, sequence=None, sequence_list=None, **kw):
"""Find pending request in sequence like in the workflow list"""
pending_request_list = self.portal.portal_catalog(
validation_state="pending",
portal_type="Free Fiber Request",
title="Test Vifib",
sort_on=[('creation_date','descending')])
#Set the last fiber request in the sequence
self.assertTrue(len(pending_request_list) > 0)
fiber_request = pending_request_list[0]
sequence.edit(fiber_request_url=fiber_request.getRelativeUrl())
def stepConfirmFiberRequest(self,sequence=None,sequence_list=None, **kw):
"""Confirm the fiber request present in sequence"""
fiber_request_url = sequence.get("fiber_request_url")
fiber_request = self.getPortal().restrictedTraverse(fiber_request_url)
fiber_request.setGender("mister")
self.modifyFiberRequestState("confirm_action",sequence,fiber_request)
self.assertEquals(fiber_request.getValidationState(), 'confirmed')
def stepRefuseFiberRequest(self,sequence=None,sequence_list=None, **kw):
"""Refuse the fiber request present in sequence"""
fiber_request_url = sequence.get("fiber_request_url")
fiber_request = self.getPortal().restrictedTraverse(fiber_request_url)
self.modifyFiberRequestState("refuse_action",sequence,fiber_request)
self.assertEquals(fiber_request.getValidationState(), 'refused')
def stepRetractFiberRequest(self,sequence=None,sequence_list=None, **kw):
"""Retract the fiber request present in sequence"""
fiber_request_url = sequence.get("fiber_request_url")
fiber_request = self.getPortal().restrictedTraverse(fiber_request_url)
self.modifyFiberRequestState("retract_action",sequence,fiber_request)
self.assertEquals(fiber_request.getValidationState(), 'retracted')
def stepContactFiberRequest(self,sequence=None,sequence_list=None, **kw):
"""Contact the fiber request present in sequence"""
fiber_request_url = sequence.get("fiber_request_url")
fiber_request = self.getPortal().restrictedTraverse(fiber_request_url)
self.modifyFiberRequestState("contact_action",sequence,fiber_request)
self.assertEquals(fiber_request.getValidationState(), 'contacted')
def stepAcceptFiberRequest(self,sequence=None,sequence_list=None, **kw):
"""Accept the fiber request present in sequence"""
fiber_request_url = sequence.get("fiber_request_url")
fiber_request = self.getPortal().restrictedTraverse(fiber_request_url)
self.modifyFiberRequestState("accept_action",sequence,fiber_request)
self.assertEquals(fiber_request.getValidationState(), 'accepted')
@skip('Not maintained')
def test_01_AnonymousCanCreateFiberRequest(self):
"""Anonymous Fiber Request creation"""
sequence_list = SequenceList()
sequence_string = 'stepSetFiberSkin \
stepLogout \
stepCallNewFiberRequestDialog \
stepCreateFiberRequest \
stepTic \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Not maintained')
def test_02_ManagerFindPendingFiberRequest(self):
"""Search request in pending list"""
sequence_list = SequenceList()
sequence_string = 'stepSetFiberSkin \
stepLogout \
stepCreateFiberRequest \
stepTic \
stepLoginAsManager \
stepFindPendingFiberRequest \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Not maintained')
def test_03_StaffCanConfirmPendingRequest(self):
"""Check confirmation of pending request"""
sequence_list = SequenceList()
sequence_string = 'stepSetFiberSkin \
stepLogout \
stepCreateFiberRequest \
stepTic \
stepLoginAsManager \
stepFindPendingFiberRequest \
stepConfirmFiberRequest \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Not maintained')
def test_04_StaffCanRefusePendingRequest(self):
"""Check we can refuse instead of confirm a request"""
sequence_list = SequenceList()
sequence_string = 'stepSetFiberSkin \
stepLogout \
stepCreateFiberRequest \
stepTic \
stepLoginAsManager \
stepFindPendingFiberRequest \
stepRefuseFiberRequest \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Not maintained')
def test_05_StaffCanContactConfirmedRequest(self):
"""Next the confirmation, we cantact the person"""
sequence_list = SequenceList()
sequence_string = 'stepSetFiberSkin \
stepLogout \
stepCreateFiberRequest \
stepTic \
stepLoginAsManager \
stepFindPendingFiberRequest \
stepConfirmFiberRequest \
stepContactFiberRequest \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Not maintained')
def test_06_StaffCanRetractConfirmedRequest(self):
"""Instead of contact a person, we can retract the request"""
sequence_list = SequenceList()
sequence_string = 'stepSetFiberSkin \
stepLogout \
stepCreateFiberRequest \
stepTic \
stepLoginAsManager \
stepFindPendingFiberRequest \
stepConfirmFiberRequest \
stepRetractFiberRequest \
stepTic \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Not maintained')
def test_07_StaffCanAcceptContactedRequest(self):
"""Contact was successfull, we accept the request"""
sequence_list = SequenceList()
sequence_string = 'stepSetFiberSkin \
stepLogout \
stepCreateFiberRequest \
stepTic \
stepLoginAsManager \
stepFindPendingFiberRequest \
stepConfirmFiberRequest \
stepContactFiberRequest \
stepAcceptFiberRequest \
stepTic \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Not maintained')
def test_08_StaffCanRetractContactedRequest(self):
"""Cantact was unsuccessfull, we retract the request"""
sequence_list = SequenceList()
sequence_string = 'stepSetFiberSkin \
stepLogout \
stepCreateFiberRequest \
stepTic \
stepLoginAsManager \
stepFindPendingFiberRequest \
stepConfirmFiberRequest \
stepContactFiberRequest \
stepRetractFiberRequest \
stepTic \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Not maintained')
def test_09_StaffCanRetractAcceptedRequest(self):
"""After accept a request, we are able to retract us."""
sequence_list = SequenceList()
sequence_string = 'stepSetFiberSkin \
stepLogout \
stepCreateFiberRequest \
stepTic \
stepLoginAsManager \
stepFindPendingFiberRequest \
stepConfirmFiberRequest \
stepContactFiberRequest \
stepAcceptFiberRequest \
stepRetractFiberRequest \
stepTic \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
class TestVifibFiberSecurityRules(testVifibSecurityMixin):
"""Test if security rules are correctly set"""
@skip('Test must be written')
def test_01_AnonymousCanAccessPublishedWebPage(self):
pass
def test_suite():
"""Define tests may be run"""
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestVifibFiberSubscription))
suite.addTest(unittest.makeSuite(TestVifibFiberSecurityRules))
return suite
...@@ -57,7 +57,6 @@ class TestVifibSkinSelection(testVifibMixin): ...@@ -57,7 +57,6 @@ class TestVifibSkinSelection(testVifibMixin):
[ [
'Cash', 'Cash',
'Download', 'Download',
'Fiber',
'Hosting', 'Hosting',
'KM', 'KM',
'Multiflex', 'Multiflex',
...@@ -202,112 +201,6 @@ activity ...@@ -202,112 +201,6 @@ activity
zpt_content zpt_content
zpt_control zpt_control
zpt_generic zpt_generic
"""
self.assertSameSkinSelection(skin_name, selection_string_list)
def test_04_Fiber_selection(self, quiet=0, run=run_all_test):
"""
Check the skin folder order
"""
if not run: return
skin_name = 'Fiber'
selection_string_list = \
"""
custom
vifib_upgrader
vifib_agent
vifib_base
vifib_core
vifib_fiber_theme
vifib_forge_release
vifib_jauks_theme
vifib_jauks_widget_library
vifib_open_trade
vifib_payzen
vifib_promise
vifib_simulation
vifib_slap
vifib_slapos_capacity
vifib_slapos_rest_api
vifib_software_pdm
vifib_test
vifib_web
vifib_web_ui_test
vifib_configurator
erp5_free_fiber_request
erp5_km
erp5_km_theme
erp5_knowledge_pad
erp5_simulation
erp5_dms_base
erp5_dms_web
erp5_accounting_l10n_fr
erp5_upgrader
erp5_access_tab
erp5_accounting
erp5_accounting_bbb
erp5_administration
erp5_base
erp5_bearer_token
erp5_commerce
erp5_commerce_widget_library
erp5_computer_immobilisation
erp5_configurator
erp5_configurator_wizard
erp5_content_translation
erp5_core
erp5_core_proxy_field_legacy
erp5_credential
erp5_credential_oauth2
erp5_crm
erp5_dhtml_style
erp5_discount_resource
erp5_dms
erp5_fckeditor
erp5_forge
erp5_forge_release
erp5_gadget
erp5_glossary
erp5_ingestion
erp5_ingestion_test
erp5_integration
erp5_invoicing
erp5_item
erp5_item_trade
erp5_jquery
erp5_ods_core
erp5_odt_core
erp5_ooo_import
erp5_open_trade
erp5_payzen_secure_payment
erp5_pdm
erp5_project
erp5_project_trade
erp5_rss_core
erp5_secure_payment
erp5_simplified_invoicing
erp5_software_pdm
erp5_system_event
erp5_tax_resource
erp5_toolbox
erp5_trade
erp5_ui_test
erp5_ui_test_core
erp5_vcs
erp5_web
erp5_web_crm
erp5_web_minimal_theme
erp5_web_widget_library
erp5_workflow
erp5_xhtml_jquery_style
erp5_xhtml_style
external_method
Images
activity
zpt_content
zpt_control
zpt_generic
""" """
self.assertSameSkinSelection(skin_name, selection_string_list) self.assertSameSkinSelection(skin_name, selection_string_list)
...@@ -642,7 +535,6 @@ vifib_test ...@@ -642,7 +535,6 @@ vifib_test
vifib_web vifib_web
vifib_web_ui_test vifib_web_ui_test
vifib_configurator vifib_configurator
erp5_free_fiber_request
erp5_km erp5_km
erp5_knowledge_pad erp5_knowledge_pad
erp5_simulation erp5_simulation
......
...@@ -89,26 +89,6 @@ class TestVifibWebSite(testVifibMixin): ...@@ -89,26 +89,6 @@ class TestVifibWebSite(testVifibMixin):
response.getHeader('content-type')) response.getHeader('content-type'))
self.assertTrue("Enjoy Decentralized Cloud&nbsp;Computing" in response.getBody()) self.assertTrue("Enjoy Decentralized Cloud&nbsp;Computing" in response.getBody())
def test_05_checkFreeFiberAccess(self):
"""
Test Free Fiber access
"""
module = self.portal.getDefaultModule(self.web_site_portal_type)
web_site = getattr(module, 'fiber')
#Check web site is present
self.assertTrue(web_site is not None, "Website not found")
# Test anonymous
response = self.publish('/%s/%s' % \
(self.portal.getId(), web_site.getRelativeUrl())
)
self.assertEquals(HTTP_OK, response.getStatus())
self.assertEquals('text/html; charset=utf-8',
response.getHeader('content-type'))
self.assertTrue("Je veux la fibre gratuite avec ViFiB" in
response.getBody())
def test_06_checkERPypiAccess(self): def test_06_checkERPypiAccess(self):
""" """
Test ERPypi access Test ERPypi access
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment