Add automatic agent updates with verified rollback
This commit is contained in:
@@ -185,10 +185,10 @@ describe('machine and route identity boundaries', () => {
|
||||
expect((await rawConfig.invoke()).status).toBe(403);
|
||||
});
|
||||
it('exempts only static assets on unresolved routes and does not use arbitrary file extensions as public access', async () => {
|
||||
for (const path of ['/_app/immutable/start.js', '/favicon.svg', '/agent/ec-agent.py', '/agent/install.sh', '/agent/manifest.json']) {
|
||||
for (const path of ['/_app/immutable/start.js', '/favicon.svg', '/agent/ec-agent.py', '/agent/ec-agent-update.py', '/agent/install.sh', '/agent/manifest.json']) {
|
||||
const call = requestFor(null, { path }); expect((await call.invoke()).status).toBe(200); expect(call.resolve).toHaveBeenCalledOnce();
|
||||
}
|
||||
for (const path of ['/private.json', '/secrets.css', '/settings/users/__data.json']) {
|
||||
for (const path of ['/private.json', '/secrets.css', '/settings/users/__data.json', '/agent/ec-agent-update.py.bak', '/agent/update-status.json']) {
|
||||
const call = requestFor(null, { path }); await expect(call.invoke()).rejects.toMatchObject({ status: 303 }); expect(call.resolve).not.toHaveBeenCalled();
|
||||
}
|
||||
const write = requestFor(null, { path: '/_app/anything.js', method: 'POST', body: {} });
|
||||
|
||||
Reference in New Issue
Block a user