const { RemoteTerminal } = require('./remote_exec'); async function main() { const term = new RemoteTerminal(); await term.connect(); console.log('Connected to soc-tester pod!'); console.log('--- Probing soc-backend internal port 7681 ---'); const res = await term.exec('nc -zv -w 3 soc-backend-d1895c70f6b2 7681 2>&1'); console.log('NC:', res.output); console.log('--- HTTP GET from soc-tester to soc-backend:7681 ---'); const curl = await term.exec('curl -sI http://soc-backend-d1895c70f6b2:7681/ | head -n 5'); console.log('CURL HEAD:', curl.output); term.close(); } main().catch(console.error);