Skip to content

Test: Add validation for service request/accept (Jenkins supervisor test)#907

Open
ColtonWilley wants to merge 2 commits intowolfSSL:masterfrom
ColtonWilley:test-jenkins-supervisor
Open

Test: Add validation for service request/accept (Jenkins supervisor test)#907
ColtonWilley wants to merge 2 commits intowolfSSL:masterfrom
ColtonWilley:test-jenkins-supervisor

Conversation

@ColtonWilley
Copy link
Copy Markdown

Summary

  • Adds validation to DoServiceRequest and DoServiceAccept to ensure the requested/accepted service is ssh-userauth, disconnecting otherwise (mirrors PR Add validation for accept request and reply #902)
  • Includes an intentional #error in a USE_WINDOWS_API block to trigger a Windows build failure — this PR exists solely to test Jenkins supervisor tooling

Test plan

  • Linux builds should pass (the #error is gated behind USE_WINDOWS_API)
  • Windows builds should fail with: "Injected Windows build failure for Jenkins supervisor testing"
  • Verify Jenkins supervisor detects and reports the Windows failure correctly

Do not merge — this is a test PR.

Validates that the requested/accepted service in DoServiceRequest and
DoServiceAccept is 'ssh-userauth', disconnecting if not.

Includes intentional Windows build error for Jenkins supervisor testing.
Remove the #error directive (wrong compilation unit for Windows).
Add test_wolfSSH_ServiceRequestValidation using a variable-length
array which GCC/Clang accept but MSVC rejects, ensuring the Windows
Jenkins job fails while Linux jobs pass.
@ColtonWilley
Copy link
Copy Markdown
Author

Jenkins retest this please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant