-
Notifications
You must be signed in to change notification settings - Fork 190
chore: remove unused C# and Java interop validators #560
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
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,5 @@ package-lock.json | |
| .eslintcache | ||
| .prettierignore | ||
| test/static/* | ||
| test/validators/* | ||
| .nyc_output/* | ||
| coverage/* | ||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # Tests | ||
|
|
||
| - `*.spec.ts` — the Mocha suite. Run with `npm test` from the repository root. | ||
| - `static/` — signature fixtures. | ||
| - `static/integration/` — fixtures for the integration specs. | ||
|
|
||
| ## Fixture provenance | ||
|
|
||
| Most fixtures under `static/` are signatures this library produced and now asserts | ||
| against, but some were generated by other XML-DSig implementations so that the suite | ||
| checks interoperability rather than only self-consistency. Those were generated once and | ||
| frozen; the tests compare against the recorded bytes, so no second toolchain is needed to | ||
| run them. | ||
|
|
||
| - `hmac_signature.xml`, `hmac.key`, `hmac-foobar.key` — produced by the JDK's | ||
| `javax.xml.crypto.dsig` implementation (Apache Santuario), added alongside HMAC | ||
| verification support in `c6f7aaa`. | ||
| - `windows_store_signature.xml` — a Windows Store receipt, signed by | ||
| `System.Security.Cryptography.Xml.SignedXml` on .NET Framework. | ||
|
|
||
| Two throwaway harnesses used to live in `test/validators/` for this cross-checking: a C# | ||
| console project driving .NET's `SignedXml`, and a Maven project driving the JDK's | ||
| `XMLSignatureFactory`. Neither was run by CI or any npm script, and parts of the C# one | ||
| no longer compiled. They were removed in 7.0; see | ||
| [#547](https://github.com/node-saml/xml-crypto/issues/547). Recover them from history | ||
| with `git show 0409418:test/validators` if a fixture ever needs regenerating. | ||
|
|
||
| ## Fixtures are byte-sensitive | ||
|
|
||
| Canonicalization and digests depend on the exact bytes of these files, so reformatting | ||
| whitespace silently invalidates a signature and the resulting failure can look unrelated. | ||
| `.prettierignore` excludes `test/static/` — keep it that way, and never run a formatter | ||
| over it. | ||
This file was deleted.
Oops, something went wrong.
119 changes: 0 additions & 119 deletions
119
test/validators/XmlCryptoJava/src/test/java/org/nodejs/xmlcrypto/HMACTest.java
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
test/validators/XmlCryptoJava/src/test/resources/log4j.xml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🤖 get_repo_knowledge executed:
get_repo_knowledge node-saml/xml-crypto /tmp/coderabbit-repo-knowledge/node-saml-xml-crypto-e821770f/conventions /tmp/coderabbit-repo-knowledge/node-saml-xml-crypto-e821770f/learningsLength of output: 1596
🏁 Script executed:
Repository: node-saml/xml-crypto
Length of output: 4942
Use a restore command for validator recovery.
git show 0409418:test/validatorsdisplays the historical tree but does not restore its files. Replace it withgit restore --source=0409418 -- test/validators, or document an equivalentgit archivecommand.🤖 Prompt for AI Agents