Upstream commit: af37a234981722493b74623a983581691d2b70b6 Enterprise-only files removed or emptied: 63 Enterprise-only snippets removed: 118 in 50 files Dangling module declarations removed: 5 Edits turning enterprise off: 25 Third-party code: 14 files, 0 not in THIRD-PARTY.md Renamed identifiers: 62 in 18 files Verification: clean The same Enterprise footprint as v0.16.23. The build check fails only on tests/src/directory/issuer.rs, unchanged since v0.16.23: it calls a helper from upstream's Enterprise-only OIDC test, and tests issuer-based directory routing, an Enterprise feature. main has never carried it.
33 lines
726 B
Sieve
33 lines
726 B
Sieve
require ["variables", "include", "vnd.inbuxa.expressions", "reject"];
|
|
|
|
global "score";
|
|
|
|
# Create AWL table
|
|
if eval "!query('sql', 'CREATE TABLE awl (score FLOAT, count INT, sender TEXT NOT NULL, ip TEXT NOT NULL, PRIMARY KEY (sender, ip))' , [])" {
|
|
reject "create table query failed";
|
|
stop;
|
|
}
|
|
|
|
|
|
set "score" "1.1";
|
|
include "awl_include";
|
|
if eval "score != 1.1" {
|
|
reject "awl_include #1 set score to ${score}";
|
|
stop;
|
|
}
|
|
|
|
set "score" "2.2";
|
|
include "awl_include";
|
|
if eval "score != 1.6500000000000001" {
|
|
reject "awl_include #2 set score to ${score}";
|
|
stop;
|
|
}
|
|
|
|
set "score" "9.3";
|
|
include "awl_include";
|
|
if eval "score != 5.4750000000000005" {
|
|
reject "awl_include #3 set score to ${score}";
|
|
stop;
|
|
}
|
|
|