Conversation
TFTP inline serverAdds a read-only TFTP server that runs inside the operator process and serves What changedNew flags on the operator binary
Request handling:
Helm chart (
TestingSee Quick smoke-test against a live switch:
|
Merging this branch will increase overall coverage
Coverage by fileChanged files (no unit tests)
Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code. |
|
see latest commit and the test result. |
issue ticket: https://github.wdf.sap.corp/sap-cloud-infrastructure/neutron-issues/issues/217
Summary
Key changes
internal/tftp/server.gocmd/main.gointernal/controller/core/device_controller.godocs/TESTING_TFTP.mdHow to test
Environment: isolated local kind cluster (kind-netop-tftp-e2e), namespace network-operator-system.
Used local dev image flow (build -> load into kind -> set deployment image -> rollout).
Prepared test fixtures:
Ran two runtime checks:
**Test results **
Positive case: success
POS_EXIT:0
returned script content includes:
#!/bin/sh
echo hello-from-operator
Negative case: correctly rejected
client error: unknown serial
NEG_EXIT:1
Logs confirm both paths:
delivered: [tftp] delivered 35 bytes ... serial=tftp-test-serial ...
denied: [tftp] unknown serial=wrong-serial ... deny