set token properly in test
This commit is contained in:
parent
5a880fd15e
commit
a2ef5dc72a
|
@ -54,6 +54,7 @@ struct TenantInfo {
|
||||||
}
|
}
|
||||||
if (token.present()) {
|
if (token.present()) {
|
||||||
arena.dependsOn(token.get().arena());
|
arena.dependsOn(token.get().arena());
|
||||||
|
this->token = token.get();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -75,6 +75,7 @@ struct CycleWorkload : TestWorkload, CycleMembers<MultiTenancy> {
|
||||||
this->token.issuedAtUnixTime = currentTime;
|
this->token.issuedAtUnixTime = currentTime;
|
||||||
this->token.expiresAtUnixTime = currentTime + uint64_t(std::lround(getCheckTimeout())) + uint64_t(100);
|
this->token.expiresAtUnixTime = currentTime + uint64_t(std::lround(getCheckTimeout())) + uint64_t(100);
|
||||||
this->token.keyId = k->first;
|
this->token.keyId = k->first;
|
||||||
|
this->token.notBeforeUnixTime = currentTime - 10;
|
||||||
VectorRef<StringRef> tenants;
|
VectorRef<StringRef> tenants;
|
||||||
tenants.push_back_deep(this->arena, this->tenant);
|
tenants.push_back_deep(this->arena, this->tenant);
|
||||||
this->token.tenants = tenants;
|
this->token.tenants = tenants;
|
||||||
|
|
Loading…
Reference in New Issue