Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handled Fiskaly access denied error #252

Merged
merged 2 commits into from
Jun 26, 2024

fixed tests

9cefaf6
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Handled Fiskaly access denied error #252

fixed tests
9cefaf6
Select commit
Loading
Failed to load commit list.
GitHub Actions / Mews.Fiscalizations.All-Windows Tests succeeded Jun 26, 2024 in 0s

145 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
src/Austria/Mews.Fiscalizations.Austria.Tests/TestResults/test-results-Windows.trx 3✅ 2s
src/Basque/Mews.Fiscalizations.Basque.Tests/TestResults/test-results-Windows.trx 41✅ 31s
src/Core/Mews.Fiscalizations.Core.Tests/TestResults/test-results-Windows.trx 70✅ 978ms
src/Germany/Mews.Fiscalizations.Germany.Tests/TestResults/test-results-Windows.trx 11✅ 26s
src/Hungary/Mews.Fiscalizations.Hungary.Tests/TestResults/test-results-Windows.trx 15✅ 55s
src/Italy/Mews.Fiscalizations.Italy.Tests/TestResults/test-results-Windows.trx 3✅ 3s
src/Spain/Mews.Fiscalizations.Spain.Tests/TestResults/test-results-Windows.trx 2✅ 8s

✅ src/Austria/Mews.Fiscalizations.Austria.Tests/TestResults/test-results-Windows.trx

3 tests were completed in 2s with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Mews.Fiscalizations.Austria.Tests.ATrustSignerTests 2✅ 2s
Mews.Fiscalizations.Austria.Tests.OfflineTests 1✅ 28ms

✅ Mews.Fiscalizations.Austria.Tests.ATrustSignerTests

✅ ATrustSignerWorks
✅ GetCertificateInfoWorks

✅ Mews.Fiscalizations.Austria.Tests.OfflineTests

✅ OfflineSignatureWorks

✅ src/Basque/Mews.Fiscalizations.Basque.Tests/TestResults/test-results-Windows.trx

41 tests were completed in 31s with 41 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Mews.Fiscalizations.Basque.Tests.Bizkaia.BizkaiaDataValidationTests 2✅ 30ms
Mews.Fiscalizations.Basque.Tests.Bizkaia.DtoToModelConverterTests 2✅ 51ms
Mews.Fiscalizations.Basque.Tests.Bizkaia.LROERequestDtoValidationTests 2✅ 284ms
Mews.Fiscalizations.Basque.Tests.Bizkaia.LROEResponseDeserializationTests 4✅ 40ms
Mews.Fiscalizations.Basque.Tests.SendInvoiceTests 24✅ 30s
Mews.Fiscalizations.Basque.Tests.ValidationTests 7✅ 4ms

✅ Mews.Fiscalizations.Basque.Tests.Bizkaia.BizkaiaDataValidationTests

✅ Create_BizkaiaData_Json_Serialization_Deserialization_Succeeds
✅ Create_BizkaiaData_JsonSerialization_Succeeds

✅ Mews.Fiscalizations.Basque.Tests.Bizkaia.DtoToModelConverterTests

✅ CorrectResponse_Generates_CorrectResult
✅ IncorrectResponse_Generates_IncorrectResponse

✅ Mews.Fiscalizations.Basque.Tests.Bizkaia.LROERequestDtoValidationTests

✅ CreateBatuzInvoiceDto_XmlSerialization_Succeeds
✅ CreateTicketBaiInvoice_XsdValidation_Succeeds

✅ Mews.Fiscalizations.Basque.Tests.Bizkaia.LROEResponseDeserializationTests

✅ CorrectResponse_Deserialization_Succeeds
✅ IncorrectResponse_Deserialization_Succeeds
✅ PartiallyCorrectResponse_Deserialization_Succeeds
✅ WrongFileFormat_Deserialization_Fails

✅ Mews.Fiscalizations.Basque.Tests.SendInvoiceTests

✅ Araba - Complete Invoice chaining
✅ Araba - Send complete invoice with foreign receiver
✅ Araba - Send complete invoice with local receiver
✅ Araba - Send negative complete invoice with foreign receiver
✅ Araba - Send negative complete invoice with local receiver
✅ Araba - Send simplified invoice
✅ Araba - Send simplified negative invoice
✅ Araba - Simplified Invoice chaining
✅ Bizkaia - Complete Invoice chaining
✅ Bizkaia - Send complete invoice with foreign receiver
✅ Bizkaia - Send complete invoice with local receiver
✅ Bizkaia - Send complete negative invoice with foreign receiver
✅ Bizkaia - Send complete negative invoice with local receiver
✅ Bizkaia - Send simplified invoice
✅ Bizkaia - Send simplified negative invoice
✅ Bizkaia - Simplified Invoice chaining
✅ Gipuzkoa - Complete Invoice chaining
✅ Gipuzkoa - Send complete invoice with foreign receiver
✅ Gipuzkoa - Send complete invoice with local receiver
✅ Gipuzkoa - Send complete negative invoice with foreign receiver
✅ Gipuzkoa - Send complete negative invoice with local receiver
✅ Gipuzkoa - Send simplified invoice
✅ Gipuzkoa - Send simplified negative invoice
✅ Gipuzkoa - Simplified Invoice chaining

✅ Mews.Fiscalizations.Basque.Tests.ValidationTests

✅ PostalCodeTests(" ",False)
✅ PostalCodeTests("",False)
✅ PostalCodeTests("12345",True)
✅ PostalCodeTests("12345@",False)
✅ PostalCodeTests("123456789123456789102",False)
✅ PostalCodeTests("ABCDEF123456",True)
✅ PostalCodeTests("ABCDEFG",True)

✅ src/Core/Mews.Fiscalizations.Core.Tests/TestResults/test-results-Windows.trx

70 tests were completed in 978ms with 70 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Mews.Fiscalizations.Core.Tests.Compression.GzipCompressionTests 1✅ 14ms
Mews.Fiscalizations.Core.Tests.Model.BasicLatinStringTests 7✅ 13ms
Mews.Fiscalizations.Core.Tests.Model.CountryTests 11✅ 16ms
Mews.Fiscalizations.Core.Tests.Model.String1To50Tests 5✅ 24ms
Mews.Fiscalizations.Core.Tests.Model.TaxpayerIdentificationNumberTests 46✅ 7ms

✅ Mews.Fiscalizations.Core.Tests.Compression.GzipCompressionTests

✅ GzipCompress_Decompress_Returns_Original_String

✅ Mews.Fiscalizations.Core.Tests.Model.BasicLatinStringTests

✅ ToBasicLatinStringSucceeds("   ","   ")
✅ ToBasicLatinStringSucceeds("!@#$%^&**()_-","!@#$%^&**()_-")
✅ ToBasicLatinStringSucceeds("","")
✅ ToBasicLatinStringSucceeds("€€€","")
✅ ToBasicLatinStringSucceeds("abcdefghijklmnopqrstuvwxyz0123456789","abcdefghijklmnopqrstuvwxyz0123456789")
✅ ToBasicLatinStringSucceeds("Euro € sign","Euro  sign")
✅ ToBasicLatinStringSucceeds(null,null)

✅ Mews.Fiscalizations.Core.Tests.Model.CountryTests

✅ CountryWithInvalidCountryCodeNotFound("")
✅ CountryWithInvalidCountryCodeNotFound("invalid")
✅ CountryWithInvalidCountryCodeNotFound(null)
✅ CountryWithValidCountryCodeFound("AU")
✅ CountryWithValidCountryCodeFound("US")
✅ EuropeanCountryWithInvalidCountryCodeNotFound("")
✅ EuropeanCountryWithInvalidCountryCodeNotFound("invalid")
✅ EuropeanCountryWithInvalidCountryCodeNotFound("US")
✅ EuropeanCountryWithInvalidCountryCodeNotFound(null)
✅ EuropeanCountryWithValidCountryCodeFound("CZ")
✅ EuropeanCountryWithValidCountryCodeFound("PL")

✅ Mews.Fiscalizations.Core.Tests.Model.String1To50Tests

✅ String1To50ValidatesCorrectly("   ",True)
✅ String1To50ValidatesCorrectly("",False)
✅ String1To50ValidatesCorrectly("12345678901234567890123456789012345678901234567890",True)
✅ String1To50ValidatesCorrectly("123456789012345678901234567890123456789012345678901",False)
✅ String1To50ValidatesCorrectly(null,False)

✅ Mews.Fiscalizations.Core.Tests.Model.TaxpayerIdentificationNumberTests

✅ CreatingInvalidEuropeanTaxpayerNumberFails("CZ","")
✅ CreatingInvalidEuropeanTaxpayerNumberFails("CZ","ABC1234567")
✅ CreatingInvalidEuropeanTaxpayerNumberFails("CZ",null)
✅ CreatingInvalidEuropeanTaxpayerNumberFails(null,"ABCD12344")
✅ CreatingInvalidEuropeanTaxpayerNumberFails(null,null)
✅ CreatingInvalidSpanishTaxpayerNumberFails("123456789")
✅ CreatingInvalidSpanishTaxpayerNumberFails("A0123456789")
✅ CreatingInvalidSpanishTaxpayerNumberFails("A1234")
✅ CreatingInvalidSpanishTaxpayerNumberFails("AAAAAAAAA")
✅ CreatingInvalidTaxpayerNumberFails("US","")
✅ CreatingInvalidTaxpayerNumberFails("US",null)
✅ CreatingInvalidTaxpayerNumberFails(null,"ABCD12345")
✅ CreatingInvalidTaxpayerNumberFails(null,null)
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("AT","U99999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("BE","0999999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("BG","999999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("CY","99999999L")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("CZ","99999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("DE","999999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("DK","99999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("EE","999999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("ES","X9999999X")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("FI","99999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("FR","XX999999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("GB","999999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("GR","999999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("HU","99999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("IE","9S99999L")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("IE","IE1111111L")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("IT","99999999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("LT","999999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("LU","99999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("LV","99999999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("MT","99999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("NL","999999999B99")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("PL","9999999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("PT","999999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("RO","99")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("SE","999999999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("SI","99999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("SK","9999999999")
✅ CreatingValidNonEuropeanTaxpayerNumberSucceeds("AU","ABCD12345111")
✅ CreatingValidNonEuropeanTaxpayerNumberSucceeds("US","123456789")
✅ CreatingValidSpanishTaxpayerNumberSucceeds("A12345678")
✅ CreatingValidSpanishTaxpayerNumberSucceeds("A1234567A")
✅ CreatingValidSpanishTaxpayerNumberSucceeds("ESA1234567A")

✅ src/Germany/Mews.Fiscalizations.Germany.Tests/TestResults/test-results-Windows.trx

11 tests were completed in 26s with 11 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Mews.Fiscalizations.Germany.Tests.V2.AccessTokenTests 1✅ 171ms
Mews.Fiscalizations.Germany.Tests.V2.ClientTests 3✅ 2s
Mews.Fiscalizations.Germany.Tests.V2.TransactionTests 4✅ 3s
Mews.Fiscalizations.Germany.Tests.V2.TssTests 3✅ 11s

✅ Mews.Fiscalizations.Germany.Tests.V2.AccessTokenTests

✅ GetAccessTokenSucceeds

✅ Mews.Fiscalizations.Germany.Tests.V2.ClientTests

✅ CreateClientSucceeds
✅ GetAllTssClientsSucceeds
✅ GetClientSucceeds

✅ Mews.Fiscalizations.Germany.Tests.V2.TransactionTests

✅ GetTransactionSucceeds
✅ StartAndFinishTransactionSucceeds
✅ StartTransactionSucceeds
✅ StatusCheckSucceeds

✅ Mews.Fiscalizations.Germany.Tests.V2.TssTests

✅ CreateTssSucceeds
✅ GetAllTSSsSucceeds
✅ GetTssSucceeds

✅ src/Hungary/Mews.Fiscalizations.Hungary.Tests/TestResults/test-results-Windows.trx

15 tests were completed in 55s with 15 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Mews.Fiscalizations.Hungary.Tests.InvoiceTests 12✅ 53s
Mews.Fiscalizations.Hungary.Tests.StatusTests 3✅ 1s

✅ Mews.Fiscalizations.Hungary.Tests.InvoiceTests

✅ SendCorrectionCustomerInvoiceSucceeds
✅ SendCorrectionForeignCompanyInvoiceSucceeds("CZ","CZ12345678")
✅ SendCorrectionForeignCompanyInvoiceSucceeds("CZ",null)
✅ SendCorrectionForeignCompanyInvoiceSucceeds("US","UsTaxId")
✅ SendCorrectionForeignCompanyInvoiceSucceeds("US",null)
✅ SendCorrectionLocalCompanyInvoiceSucceeds
✅ SendCustomerInvoiceSucceeds
✅ SendForeignCompanyInvoiceSucceeds("CZ","CZ12345678")
✅ SendForeignCompanyInvoiceSucceeds("CZ",null)
✅ SendForeignCompanyInvoiceSucceeds("US","UsTaxId")
✅ SendForeignCompanyInvoiceSucceeds("US",null)
✅ SendLocalCompanyInvoiceSucceeds

✅ Mews.Fiscalizations.Hungary.Tests.StatusTests

✅ GetExchangeTokenSucceeds
✅ GetTaxerpayerDataSucceeds
✅ GetTransactionStatusSucceeds

✅ src/Italy/Mews.Fiscalizations.Italy.Tests/TestResults/test-results-Windows.trx

3 tests were completed in 3s with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Mews.Fiscalizations.Italy.Tests.UniwixClientTests 3✅ 2s

✅ Mews.Fiscalizations.Italy.Tests.UniwixClientTests

✅ GetInvoiceStateWithInvalidFileIdReturnsCorrectErrorType
✅ SendInvoiceSucceeds
✅ VerifyCredentialsSucceeds

✅ src/Spain/Mews.Fiscalizations.Spain.Tests/TestResults/test-results-Windows.trx

2 tests were completed in 8s with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Mews.Fiscalizations.Spain.Tests.IssuedInvoices.Basics 2✅ 6s

✅ Mews.Fiscalizations.Spain.Tests.IssuedInvoices.Basics

✅ CheckNif
✅ PostInvoice