feat(doos): add container runtime, audit cases, example demo and tests
- New rootless doos container runtime: sandbox, cgroup, network, images, hardening, davmount, CLI plus molo integration - 18 CVE audit reproductions with READMEs and Makefiles - Example DoosDemo routes, IndexCatalog, static assets, spec update - CLI serve on 0.0.0.0:8000, arg parser, dev server improvements - Runtime HTTP fixes, supervisor isolation backend - Tests for doos, example doos routes, CLI serve; suite count 261 to 265
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// Route: GET /doos (sandboxed containers page)
|
||||
#include "support/Assert.hpp"
|
||||
#include "support/DoosHome.hpp"
|
||||
|
||||
using namespace molo::example::test;
|
||||
|
||||
int main() {
|
||||
ScratchDoosHome home("page");
|
||||
Fixture f;
|
||||
auto res = f.client->get("/doos");
|
||||
check(res.status == 200, "status 200");
|
||||
check(contains(res.body, "Sandboxed containers"), "heading");
|
||||
check(contains(res.body, "0 containers"), "empty demo store");
|
||||
auto made = f.client->post("/doos/create", "name=web1", "application/x-www-form-urlencoded");
|
||||
check(made.status == 200, "create 200");
|
||||
auto again = f.client->get("/doos");
|
||||
check(contains(again.body, "1 containers"), "count follows creates");
|
||||
check(contains(again.body, "web1"), "row names the container");
|
||||
return finish("doos/page");
|
||||
}
|
||||
Reference in New Issue
Block a user