-
-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e9e9df
commit b91e21f
Showing
8 changed files
with
562 additions
and
73 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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 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,25 @@ | ||
import { RemoteClientLogger } from '../../remote-client/remote-client-logger'; | ||
import setups from '../cloud-runner-suite.test'; | ||
const md5 = require('md5'); | ||
|
||
describe('Cloud Runner Remote Client', () => { | ||
it('Responds', () => {}); | ||
setups(); | ||
it('Run one build it using K8s without error', async () => { | ||
const testLogStream = 'Test \n Log \n Stream'; | ||
|
||
const splitLogStream = testLogStream.split('\n'); | ||
RemoteClientLogger.HandleLogChunkLine(`LOGHASH: ${md5(testLogStream)}`); | ||
let completed = false; | ||
for (const element of splitLogStream) { | ||
completed = RemoteClientLogger.HandleLogChunkLine(element); | ||
} | ||
expect(completed).toBeTruthy(); | ||
}, 1_000_000_000); | ||
// eslint-disable-next-line unicorn/consistent-function-scoping, no-unused-vars | ||
function CreateLogWatcher(callback: (finalMessage: string) => void) { | ||
return (message: string) => { | ||
callback(message); | ||
}; | ||
} | ||
}); |
This file contains 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