mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-14 11:08:06 +00:00
timer workers (part 2) (#1876)
* timer workers (part 2) * addressing pr comment Co-authored-by: stas <statis@microsoft.com>
This commit is contained in:
@ -31,6 +31,7 @@ namespace Tests {
|
||||
Arb.Generate<EventScalesetResizeScheduled>().Select(e => e as BaseEvent),
|
||||
Arb.Generate<EventScalesetStateUpdated>().Select(e => e as BaseEvent),
|
||||
Arb.Generate<EventNodeDeleted>().Select(e => e as BaseEvent),
|
||||
Arb.Generate<EventNodeCreated>().Select(e => e as BaseEvent),
|
||||
});
|
||||
}
|
||||
|
||||
@ -40,6 +41,14 @@ namespace Tests {
|
||||
);
|
||||
}
|
||||
|
||||
public static Gen<Version> Version() {
|
||||
//OneFuzz version uses 3 number version
|
||||
return Arb.Generate<Tuple<UInt16, UInt16, UInt16>>().Select(
|
||||
arg =>
|
||||
new Version(arg.Item1, arg.Item2, arg.Item3)
|
||||
);
|
||||
}
|
||||
|
||||
public static Gen<WebhookMessageLog> WebhookMessageLog() {
|
||||
return Arb.Generate<Tuple<Tuple<Guid, BaseEvent, Guid, string, Guid>, Tuple<WebhookMessageState, int>>>().Select(
|
||||
arg => new WebhookMessageLog(
|
||||
@ -321,6 +330,11 @@ namespace Tests {
|
||||
}
|
||||
|
||||
public class OrmArb {
|
||||
|
||||
public static Arbitrary<Version> Vresion() {
|
||||
return Arb.From(OrmGenerators.Version());
|
||||
}
|
||||
|
||||
public static Arbitrary<Uri> Uri() {
|
||||
return Arb.From(OrmGenerators.Uri());
|
||||
}
|
||||
@ -805,6 +819,3 @@ namespace Tests {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user