Skip to content

Commit

Permalink
test cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
lpereiracgn committed Sep 3, 2024
1 parent 5bf86fd commit beb19bd
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion CogniteSdk/test/fsharp/Alpha/SimulatorRuns.fs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ let ``Retrieve simulation runs is Ok`` () =
task {

// Arrange
let listQuery = SimulationRunQuery()
let listQuery: SimulationRunQuery = SimulationRunQuery()

let! listRes = writeClient.Alpha.Simulators.ListSimulationRunsAsync(listQuery)

Expand All @@ -172,6 +172,22 @@ let ``Retrieve simulation runs is Ok`` () =
test <@ simulationRunRetrieveRes.Status = SimulationRunStatus.success @>
}


[<Fact>]
[<Trait("resource", "simulationRuns")>]
[<Trait("api", "simulators")>]
let ``Retrieve simulation runs with cursor is Ok`` () =
task {

// Arrange
let listQuery: SimulationRunQuery = SimulationRunQuery()

let! listRes = writeClient.Alpha.Simulators.ListSimulationRunsAsync(listQuery)

test <@ Seq.length listRes.Items > 0 @>
test <@ isNull listRes.NextCursor |> not @>
}

[<Fact>]
[<Trait("resource", "simulatorLogs")>]
[<Trait("api", "simulators")>]
Expand Down

0 comments on commit beb19bd

Please sign in to comment.