Skip to content

Commit

Permalink
chore: include dummy auth header for git clone test
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieSlome committed Nov 20, 2024
1 parent cb29feb commit 9d229d9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/testClearBareClone.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,17 @@ describe('clear bare and local clones', async () => {
it('pull remote generates a local .remote folder', async () => {
const action = new Action('123', 'type', 'get', timestamp, 'finos/git-proxy');
action.url = 'https://github.com/finos/git-proxy';
await pullRemote({}, action);

const authorization = `Basic ${Buffer.from('JamieSlome:test').toString('base64')}`;

await pullRemote(
{
headers: {
authorization,
},
},
action,
);

expect(fs.existsSync(`./.remote/${timestamp}`)).to.be.true;
});
Expand Down

0 comments on commit 9d229d9

Please sign in to comment.