Skip to content

Commit d5108a3

Browse files
committed
Validate gateway reachability configuration and MIDlet network permissions
1 parent c09b906 commit d5108a3

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎gateway/scripts/check-midlet-lifecycle.js‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,15 @@ const checks = [
172172
canvas.includes('items[16] = "Exit"') &&
173173
canvas.includes('else if (selected == 15) showAbout();') &&
174174
canvas.includes('else if (selected == 16) midlet.exit();')],
175+
['Diagnostics reports the configured gateway URL and next action',
176+
canvas.includes('Gateway URL: ') &&
177+
canvas.includes('"NOT CONFIGURED"') &&
178+
canvas.includes('Set Netormium-Gateway-URL in the JAD or Settings.')],
179+
['Gateway listens on network interfaces for handset access',
180+
read('gateway/server.js').includes("process.env.HOST || '0.0.0.0'")],
181+
['JAD and generated MIDlet manifest declare HTTP Connector permission',
182+
read('resources/Netormium.jad.example').includes('MIDlet-Permissions: javax.microedition.io.Connector.http') &&
183+
read('.github/workflows/j2me-toolchain-probe.yml').includes('MIDlet-Permissions: javax.microedition.io.Connector.http')],
175184
['About displays the Netormium browser version and asynchronously fetched Chromium version',
176185
canvas.includes('Browser version: 1.0.0-rc21') &&
177186
canvas.includes('Gateway version: Checking...') &&

0 commit comments

Comments
 (0)