Skip to content

Commit

Permalink
[FIX] l10n_es_aeat_sii_oca: Exclude tax agency connection from tests
Browse files Browse the repository at this point in the history
Since several days ago, the agency is returning tiemout when trying
to connect to it. It's not happening for all the hosts, but GitHub
is affected.

The only solution for now is to disable the connection tests.

We also remove the old Gipuzkoa agency.

Fixes #3589
  • Loading branch information
pedrobaeza committed May 21, 2024
1 parent 0a4865f commit ddf998a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 48 deletions.
46 changes: 0 additions & 46 deletions l10n_es_aeat_sii_oca/data/aeat_sii_tax_agency_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,52 +96,6 @@
name="sii_wsdl_ps_test_address"
>https://sii-prep.egoitza.gipuzkoa.eus/JBS/HACI/SSII-FACT/ws/fr/SiiFactPAGV1SOAP</field>
</record>
<!-- TODO: remove?-->
<record id="aeat_sii_tax_agency_gipuzkoa_1_0" model="aeat.tax.agency">
<field name="name">Hacienda Foral de Gipuzkoa (antiguo WDSL 1.0)</field>
<field
name="sii_wsdl_out"
>https://egoitza.gipuzkoa.eus/ogasuna/sii/ficheros/v1.0/SuministroFactEmitidas.wsdl</field>
<field
name="sii_wsdl_out_test_address"
>https://prep9.gipuzkoa.eus/JBS/HACI/SSII-FACT/ws/fe/SiiFactFEV1SOAP</field>
<field
name="sii_wsdl_in"
>https://egoitza.gipuzkoa.eus/ogasuna/sii/ficheros/v1.0/SuministroFactRecibidas.wsdl</field>
<field
name="sii_wsdl_in_test_address"
>https://prep9.gipuzkoa.eus/JBS/HACI/SSII-FACT/ws/fr/SiiFactFRV1SOAP</field>
<field
name="sii_wsdl_pi"
>https://egoitza.gipuzkoa.eus/ogasuna/sii/ficheros/v1.0/SuministroBienesInversion.wsdl</field>
<field
name="sii_wsdl_pi_test_address"
>https://prep9.gipuzkoa.eus/JBS/HACI/SSII-FACT/ws/bi/SiiFactBIV1SOAP</field>
<field
name="sii_wsdl_ic"
>https://egoitza.gipuzkoa.eus/ogasuna/sii/ficheros/v1.0/SuministroOpIntracomunitarias.wsdl</field>
<field
name="sii_wsdl_ic_test_address"
>https://prep9.gipuzkoa.eus/JBS/HACI/SSII-FACT/ws/oi/SiiFactOIV1SOAP</field>
<field
name="sii_wsdl_pr"
>https://egoitza.gipuzkoa.eus/ogasuna/sii/ficheros/v1.0/SuministroCobrosEmitidas.wsdl</field>
<field
name="sii_wsdl_pr_test_address"
>https://prep9.gipuzkoa.eus/JBS/HACI/SSII-FACT/ws/fe/SiiFactCOBV1SOAP</field>
<field
name="sii_wsdl_ott"
>https://egoitza.gipuzkoa.eus/ogasuna/sii/ficheros/v1.0/SuministroOpTrascendTribu.wsdl</field>
<field
name="sii_wsdl_ott_test_address"
>https://prep9.gipuzkoa.eus/JBS/HACI/SSII-FACT/ws/pm/SiiFactCMV1SOAP</field>
<field
name="sii_wsdl_ps"
>https://egoitza.gipuzkoa.eus/ogasuna/sii/ficheros/v1.0/SuministroPagosRecibidas.wsdl</field>
<field
name="sii_wsdl_ps_test_address"
>https://prep9.gipuzkoa.eus/JBS/HACI/SSII-FACT/ws/fr/SiiFactPAGV1SOAP</field>
</record>
<record id="l10n_es_aeat.aeat_tax_agency_araba" model="aeat.tax.agency">
<field name="name">Hacienda Foral de Araba/Alava (1.1)</field>
<field
Expand Down
6 changes: 4 additions & 2 deletions l10n_es_aeat_sii_oca/tests/test_l10n_es_aeat_sii.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,8 @@ def _check_tax_agencies(self, invoice):
invoice.company_id.tax_agency_id = False
self._check_binding_address(invoice)

def test_tax_agencies_sandbox(self):
def _test_tax_agencies_sandbox(self):
# Disabled this test for now as there's a timeout connecting
self.sii_cert.company_id = self.invoice.company_id.id
self._activate_certificate()
self.invoice.company_id.sii_test = True
Expand All @@ -395,7 +396,8 @@ def test_tax_agencies_sandbox(self):
)
self._check_tax_agencies(in_invoice)

def test_tax_agencies_production(self):
def _test_tax_agencies_production(self):
# Disabled this test for now as there's a timeout connecting
self.sii_cert.company_id = self.invoice.company_id.id
self._activate_certificate()
self.invoice.company_id.sii_test = False
Expand Down

0 comments on commit ddf998a

Please sign in to comment.