Feat/slice5 compilacao test lab - #263
Closed
elson-vinicius-lopes wants to merge 6 commits into
Closed
Conversation
…/TCL (Slice 5, issue #231) Services/Fiscal/MappingDraftRuleTranspiler.cs: classe estatica standalone, sem DI. Cobre operacoes copy/concat/lookup/conditional/constant, processa so regras accepted/edited, rastreabilidade RuleId->elemento (lp:ruleId no XSLT, ruleId no FIELD do TCL), diagnostico estruturado (nunca excecao) pra operacao fora do catalogo ou JSON malformado em conditions/transformations. 16 testes novos verdes (fixtures CNPJ/CFOP sinteticas). Sem endpoint HTTP ainda (proxima etapa do @lp-backend-dev). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…sue #231) - MappingRelease (draft_compiled/test_passed/test_failed), SqlMappingReleaseStore - POST/GET compile (job assincrono, transpilador da Lia, idempotente por snapshot de regras) - POST/GET test-runs (XsltApplier + CanonicalDiffer + XsdValidationService, provenance divergencia->regra->evidencia, RequiredGatesPassed) - MappingCompilationController com MappingEngineGuardFilter, isolamento por workspace - fix: nome de elemento raiz nao pode ser GUID cru (NCName invalido) - fix: atributo lp:ruleId removido do diff canonico (nao existe no gabarito real) - testes: MappingCompileServiceTests, MappingTestRunServiceTests Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…transpilador EscapeXPathLiteral substituia ' por ' manualmente antes de inserir em XAttribute, que reescapava o & na serializacao (&apos;), quebrando o XPath gerado em BuildConcat/BuildLookup. Substitui por BuildXPathStringLiteral, que usa a tecnica padrao XPath 1.0 (delimitador alternado / concat()) sem escaping manual de entidade XML. Cobertura: 2 testes novos (lookup e concat com apostrofo). Achado por @lp-qa. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…pectedXml inputXml/expectedXml vem do corpo HTTP (fixture ad-hoc do Test Lab), sem o mesmo hardening ja aplicado em XsdValidationService/TransformationPipelineService/ MultipartUploadValidator. Adiciona ParseXmlSafe (XmlResolver=null, DtdProcessing=Prohibit, MaxCharactersFromEntities) e aplica nos dois pontos de entrada externos, deixando xsltArtifact.Content (gerado internamente) intacto. Achado por @lp-qa (Quinn). Teste novo cobrindo XXE classico (DOCTYPE -> file:///C:/Windows/win.ini) em inputXml e expectedXml, ambos rejeitados sem propagar excecao nem vazar conteudo de arquivo local. dotnet build: 0 erros. dotnet test: 506 casos (504 + 2 novos), 0 falhas. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…acao-test-lab # Conflicts: # Program.cs
…pos-merge com develop
Collaborator
Author
|
Fechando como obsoleto: todo o conteúdo desta branch (Slice 5 - compilação/Fiscal Test Lab) já está presente em develop via #243 (merge original) e #248 (extensão pelo Slice 7/governança). Confirmado por comparação linha a linha dos arquivos que estavam em conflito — develop é superset estrito. Nenhum trabalho novo perdido. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.