Remove outdated http test

This commit is contained in:
Emery Hemingway 2023-04-10 17:39:40 -05:00
parent 0cd9e024f7
commit b7f303bebc
2 changed files with 6 additions and 45 deletions

View File

@ -45,11 +45,11 @@
]
},
"locked": {
"lastModified": 1680660688,
"narHash": "sha256-XeQTCxWBR0Ai1VMzI5ZXYpA2lu1F8FzZKjw8RtByZOg=",
"lastModified": 1681093076,
"narHash": "sha256-6uLZNeuP5jDDGlFkXgcoAxsJhTKy8yUTw25zdLHzdxE=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "2f40052be98347b479c820c00fb2fc1d87b3aa28",
"rev": "45c2ed9dd1397526dad35fc867c43955d87f9f3f",
"type": "github"
},
"original": {

View File

@ -78,48 +78,9 @@
with import (nixpkgs + "/nixos/lib/testing-python.nix") {
inherit system;
pkgs = pkgs';
}; {
http = simpleTest {
name = "http";
nodes.machine = { config, pkgs, ... }: {
imports = [ self.nixosModules.syndicate-server ];
nixpkgs.pkgs = pkgs';
services.syndicate.http = {
enable = true;
user = "nobody";
config = [
(pkgs.writeText "http.pr" ''
<require-service <daemon http_translator>>
<daemon http_translator {
argv: [ "${pkgs.nimPackages.syndicate_utils}/bin/http_translator" ]
protocol: text/syndicate
}>
let ?other = dataspace
$other [
? <http ?handle GET ?headers ?path ?body> [
<http $handle 200 {} "Hello world!">
]
]
? <service-object <daemon http_translator> ?cap> $cap [
<listen 8888>
<handler #{GET} [ "greeting" ] $other>
]
'')
];
};
};
testScript = ''
machine.wait_for_job("syndicate-http")
machine.wait_for_open_port(8888)
machine.succeed("curl --fail http://localhost:8888/greeting")
'';
};
};
{
# nothing here
}) { inherit (self.legacyPackages) x86_64-linux; };
};
}