Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
chore: remove dlf website urls
Browse files Browse the repository at this point in the history
  • Loading branch information
blakebyrnes committed Aug 8, 2024
1 parent 1baa74a commit 9092104
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
18 changes: 9 additions & 9 deletions agent/main/test/mitm.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ test('should send preflight requests', async () => {
const agent = pool.createAgent({ logger: TestLogger.forTest(module) });
Helpers.needsClosing.push(agent);
agent.mitmRequestSession.interceptorHandlers.push({
urls: ['https://dataliberationfoundation.org/postback'],
urls: ['https://ulixee.org/postback'],
handlerFn(url, type, request, response) {
response.end(`<html lang="en">
<body>
Expand All @@ -99,7 +99,7 @@ xhr.send('<person><name>DLF</name></person>');
},
});
const page = await agent.newPage();
await page.goto(`https://dataliberationfoundation.org/postback`);
await page.goto(`https://ulixee.org/postback`);
await expect(corsPromise).resolves.toBeTruthy();
await expect(postPromise).resolves.toBeTruthy();

Expand Down Expand Up @@ -308,9 +308,9 @@ test('should proxy iframe requests', async () => {

agent.mitmRequestSession.interceptorHandlers.push({
urls: [
'https://dataliberationfoundation.org/iframe',
'https://dataliberationfoundation.org/test.css',
'https://dataliberationfoundation.org/dlfSite.png',
'https://ulixee.org/iframe',
'https://ulixee.org/test.css',
'https://ulixee.org/dlfSite.png',
],
handlerFn(url, type, request, response) {
response.end(`<html lang="en">
Expand All @@ -324,7 +324,7 @@ test('should proxy iframe requests', async () => {
ctx.body = `<html lang="en">
<body>
This is the main body
<iframe src="https://dataliberationfoundation.org/iframe"></iframe>
<iframe src="https://ulixee.org/iframe"></iframe>
</body>
</html>`;
});
Expand All @@ -334,9 +334,9 @@ This is the main body
const urls = mocks.MitmRequestContext.create.mock.results.map(x => x.value.url.href);
expect(urls).toEqual([
expect.stringMatching(/http:\/\/localhost:\d+\/iframe-test/),
'https://dataliberationfoundation.org/iframe',
'https://dataliberationfoundation.org/test.css',
'https://dataliberationfoundation.org/dlfSite.png',
'https://ulixee.org/iframe',
'https://ulixee.org/test.css',
'https://ulixee.org/dlfSite.png',
]);
});

Expand Down
2 changes: 1 addition & 1 deletion agent/mitm/test/basic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ describe('basic MitM tests', () => {
const session = createSession(mitmServer, upstreamProxyHost);

await Helpers.httpGet(
'https://dataliberationfoundation.org',
'https://ulixee.org',
proxyHost,
session.getProxyCredentials(),
).catch();
Expand Down
2 changes: 1 addition & 1 deletion browser-profiler/main/bin/runLocal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* sudo pmset repeat wakeorpoweron MTWRFSU 06:00:00
*
* add an entry
* 1 6 * * * cd $HOME/Projects/DataLiberationFoundation/unblocked/browser-profiler/build/ && npx runLocal
* 1 6 * * * cd $HOME/Projects/ulixee/unblocked/browser-profiler/build/ && npx runLocal
*/
import '@ulixee/commons/lib/SourceMapSupport';
import { spawnSync } from 'child_process';
Expand Down
4 changes: 2 additions & 2 deletions plugins/default-browser-emulator/test/iframe.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ test('should set user agent on cross origin frames', async () => {
res.end(`<!DOCTYPE html>
<html lang="en"><body>
<div>Cross Storage</div>
<iframe src="https://dataliberationfoundation.org/frame" sandbox='allow-scripts' ></iframe>
<iframe src="https://ulixee.org/frame" sandbox='allow-scripts' ></iframe>
</body>
</html>`);
return;
Expand All @@ -288,7 +288,7 @@ test('should set user agent on cross origin frames', async () => {
const agent = await createAgent();
const page = await createPage(agent);
agent.mitmRequestSession.interceptorHandlers.push({
urls: ['https://dataliberationfoundation.org/*'],
urls: ['https://ulixee.org/*'],
types: [],
handlerFn(url: URL, type: IResourceType, request, response) {
response.end(`<html><body><p>frame body</p>
Expand Down

0 comments on commit 9092104

Please sign in to comment.