@@ -5,7 +5,7 @@ import { WARCParser } from "warcio";
5
5
6
6
test ( "run warc and ensure pageinfo records contain the correct resources" , async ( ) => {
7
7
child_process . execSync (
8
- "docker run -v $PWD/test-crawls:/crawls webrecorder/browsertrix-crawler crawl --url https://webrecorder.net/ --url https://webrecorder.net/about --url https://invalid.invalid/ --scopeType page --collection page-info-test --combineWARC" ,
8
+ "docker run -v $PWD/test-crawls:/crawls webrecorder/browsertrix-crawler crawl --url https://old. webrecorder.net/ --url https://old. webrecorder.net/about --url https://invalid.invalid/ --scopeType page --collection page-info-test --combineWARC" ,
9
9
) ;
10
10
11
11
const filename = path . join (
@@ -26,7 +26,7 @@ test("run warc and ensure pageinfo records contain the correct resources", async
26
26
for await ( const record of parser ) {
27
27
if (
28
28
! foundIndex &&
29
- record . warcTargetURI === "urn:pageinfo:https://webrecorder.net/"
29
+ record . warcTargetURI === "urn:pageinfo:https://old. webrecorder.net/"
30
30
) {
31
31
foundIndex = true ;
32
32
const text = await record . contentText ( ) ;
@@ -35,7 +35,7 @@ test("run warc and ensure pageinfo records contain the correct resources", async
35
35
36
36
if (
37
37
! foundAbout &&
38
- record . warcTargetURI === "urn:pageinfo:https://webrecorder.net/about"
38
+ record . warcTargetURI === "urn:pageinfo:https://old. webrecorder.net/about"
39
39
) {
40
40
foundAbout = true ;
41
41
const text = await record . contentText ( ) ;
@@ -64,47 +64,47 @@ function validateResourcesIndex(json) {
64
64
expect ( json ) . toHaveProperty ( "urls" ) ;
65
65
expect ( json . counts ) . toEqual ( { jsErrors : 0 } ) ;
66
66
expect ( json . urls ) . toEqual ( {
67
- "https://webrecorder.net/" : {
67
+ "https://old. webrecorder.net/" : {
68
68
status : 200 ,
69
69
mime : "text/html" ,
70
70
type : "document" ,
71
71
} ,
72
- "https://webrecorder.net/assets/tools/logo-pywb.png" : {
72
+ "https://old. webrecorder.net/assets/tools/logo-pywb.png" : {
73
73
mime : "image/png" ,
74
74
status : 200 ,
75
75
type : "image" ,
76
76
} ,
77
- "https://webrecorder.net/assets/brand/archivewebpage-icon-color.svg" : {
77
+ "https://old. webrecorder.net/assets/brand/archivewebpage-icon-color.svg" : {
78
78
mime : "image/svg+xml" ,
79
79
status : 200 ,
80
80
type : "image" ,
81
81
} ,
82
- "https://webrecorder.net/assets/brand/browsertrix-icon-color.svg" : {
82
+ "https://old. webrecorder.net/assets/brand/browsertrix-icon-color.svg" : {
83
83
mime : "image/svg+xml" ,
84
84
status : 200 ,
85
85
type : "image" ,
86
86
} ,
87
- "https://webrecorder.net/assets/brand/browsertrixcrawler-icon-color.svg" : {
87
+ "https://old. webrecorder.net/assets/brand/browsertrixcrawler-icon-color.svg" : {
88
88
mime : "image/svg+xml" ,
89
89
status : 200 ,
90
90
type : "image" ,
91
91
} ,
92
- "https://webrecorder.net/assets/brand/replaywebpage-icon-color.svg" : {
92
+ "https://old. webrecorder.net/assets/brand/replaywebpage-icon-color.svg" : {
93
93
mime : "image/svg+xml" ,
94
94
status : 200 ,
95
95
type : "image" ,
96
96
} ,
97
- "https://webrecorder.net/assets/fontawesome/all.css" : {
97
+ "https://old. webrecorder.net/assets/fontawesome/all.css" : {
98
98
status : 200 ,
99
99
mime : "text/css" ,
100
100
type : "stylesheet" ,
101
101
} ,
102
- "https://webrecorder.net/assets/wr-logo.svg" : {
102
+ "https://old. webrecorder.net/assets/wr-logo.svg" : {
103
103
status : 200 ,
104
104
mime : "image/svg+xml" ,
105
105
type : "image" ,
106
106
} ,
107
- "https://webrecorder.net/assets/main.css" : {
107
+ "https://old. webrecorder.net/assets/main.css" : {
108
108
status : 200 ,
109
109
mime : "text/css" ,
110
110
type : "stylesheet" ,
@@ -113,22 +113,15 @@ function validateResourcesIndex(json) {
113
113
{ status : 200 , mime : "text/css" , type : "stylesheet" } ,
114
114
"https://fonts.googleapis.com/css?family=Source+Code+Pro|Source+Sans+Pro&display=swap" :
115
115
{ status : 200 , mime : "text/css" , type : "stylesheet" } ,
116
- "https://stats.browsertrix.com/js/script.tagged-events.js" : {
117
- status : 200 ,
118
- mime : "application/javascript" ,
119
- type : "script" ,
120
- } ,
121
116
"https://fonts.gstatic.com/s/sourcesanspro/v22/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7l.woff2" :
122
117
{ status : 200 , mime : "font/woff2" , type : "font" } ,
123
118
"https://fonts.gstatic.com/s/sourcesanspro/v22/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwlxdu.woff2" :
124
119
{ status : 200 , mime : "font/woff2" , type : "font" } ,
125
- "https://webrecorder.net/assets/favicon.ico" : {
120
+ "https://old. webrecorder.net/assets/favicon.ico" : {
126
121
status : 200 ,
127
122
mime : "image/vnd.microsoft.icon" ,
128
123
type : "other" ,
129
124
} ,
130
- "https://stats.browsertrix.com/api/event?__wb_method=POST&n=pageview&u=https%3A%2F%2Fwebrecorder.net%2F&d=webrecorder.net&r=null" :
131
- { status : 202 , mime : "text/plain" , type : "xhr" } ,
132
125
} ) ;
133
126
}
134
127
@@ -139,17 +132,17 @@ function validateResourcesAbout(json) {
139
132
expect ( json ) . toHaveProperty ( "urls" ) ;
140
133
expect ( json . counts ) . toEqual ( { jsErrors : 0 } ) ;
141
134
expect ( json . urls ) . toEqual ( {
142
- "https://webrecorder.net/about" : {
135
+ "https://old. webrecorder.net/about" : {
143
136
status : 200 ,
144
137
mime : "text/html" ,
145
138
type : "document" ,
146
139
} ,
147
- "https://webrecorder.net/assets/main.css" : {
140
+ "https://old. webrecorder.net/assets/main.css" : {
148
141
status : 200 ,
149
142
mime : "text/css" ,
150
143
type : "stylesheet" ,
151
144
} ,
152
- "https://webrecorder.net/assets/fontawesome/all.css" : {
145
+ "https://old. webrecorder.net/assets/fontawesome/all.css" : {
153
146
status : 200 ,
154
147
mime : "text/css" ,
155
148
type : "stylesheet" ,
@@ -158,12 +151,7 @@ function validateResourcesAbout(json) {
158
151
{ status : 200 , mime : "text/css" , type : "stylesheet" } ,
159
152
"https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@700;900&display=swap" :
160
153
{ status : 200 , mime : "text/css" , type : "stylesheet" } ,
161
- "https://stats.browsertrix.com/js/script.tagged-events.js" : {
162
- status : 200 ,
163
- mime : "application/javascript" ,
164
- type : "script" ,
165
- } ,
166
- "https://webrecorder.net/assets/wr-logo.svg" : {
154
+ "https://old.webrecorder.net/assets/wr-logo.svg" : {
167
155
status : 200 ,
168
156
mime : "image/svg+xml" ,
169
157
type : "image" ,
@@ -172,12 +160,6 @@ function validateResourcesAbout(json) {
172
160
{ status : 200 , mime : "font/woff2" , type : "font" } ,
173
161
"https://fonts.gstatic.com/s/sourcesanspro/v22/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwlxdu.woff2" :
174
162
{ status : 200 , mime : "font/woff2" , type : "font" } ,
175
- "https://stats.browsertrix.com/api/event?__wb_method=POST&n=pageview&u=https%3A%2F%2Fwebrecorder.net%2Fabout&d=webrecorder.net&r=null" :
176
- {
177
- status : 0 ,
178
- type : "xhr" ,
179
- error : "net::ERR_BLOCKED_BY_CLIENT" ,
180
- } ,
181
163
} ) ;
182
164
}
183
165
0 commit comments