Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m47s
Foundation / checks (client) (push) Failing after 9m42s
Foundation / checks (network) (push) Successful in 8m49s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (postgres) (push) Canceled after 8m13s
Foundation / checks (tsan) (push) Canceled after 7m13s
Foundation / checks (checks) (push) Canceled after 17m58s
Provider-independent 128-bit AccountIds; ECDSA P-256 session grants v1 signed by issuer keys and verified by regions with public keys only, the environment byte signed so dev grants never verify in stage or World0. Per-account serials make the newest grant win: replay and older stolen grants are refused, a newer grant replaces the account's session, and refresh renews in place. Attempt rates and capacities are bounded. The evo_identity library provides the provider, account directory and grant issuer interfaces with a dev-only test provider. ADR-0091. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32 lines
1.1 KiB
C++
32 lines
1.1 KiB
C++
#pragma once
|
|
#include <expected>
|
|
#include <optional>
|
|
#include <source_location>
|
|
#include <stdexcept>
|
|
#include <string>
|
|
|
|
namespace evo::network_test {
|
|
inline void check(bool ok, std::source_location at = std::source_location::current()) {
|
|
if (!ok)
|
|
throw std::runtime_error(std::string{"network "} + at.file_name() + ":" +
|
|
std::to_string(at.line()));
|
|
}
|
|
// The value of an optional that the test requires to be present.
|
|
template <typename T>
|
|
const T& must(const std::optional<T>& o,
|
|
std::source_location at = std::source_location::current()) {
|
|
if (!o)
|
|
throw std::runtime_error(std::string{"network missing value "} + at.file_name() + ":" +
|
|
std::to_string(at.line()));
|
|
return *o;
|
|
}
|
|
template <typename T, typename E> bool refused(const std::expected<T, E>& r, E e) {
|
|
return !r && r.error() == e;
|
|
}
|
|
void protocol_tests();
|
|
void tls_tests();
|
|
void session_tests();
|
|
void control_tests();
|
|
} // namespace evo::network_test
|
|
#define CHECK(...) ::evo::network_test::check(static_cast<bool>(__VA_ARGS__))
|