Project

General

Profile

Actions

Bug #18151

closed

AgentRunsTest and ReportsTest not passing on master

Added by François ARMAND about 4 years ago. Updated about 3 years ago.

Status:
Released
Priority:
N/A
Category:
Architecture - Code maintenance
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

Description

For AgentRunsTest:

Failure(Error running doobie transaction. Cause was: PSQLException: ERROR: syntax error at or near "and" 
  Position: 561,Full(org.postgresql.util.PSQLException: ERROR: syntax error at or near "and" 
  Position: 561),Empty) != Full(Map(NodeId(n1) -> Some(AgentRunWithNodeConfig(AgentRunId(NodeId(n1),2020-08-28T16:10:30.337+02:00),Some((NodeConfigId(nodeConfig_n1_v1),None)),true,12)))) expected:<F[ull(Map(NodeId(n1) -> Some(AgentRunWithNodeConfig(AgentRunId(NodeId(n1),2020-08-28T16:10:30.337+02:00),Some((NodeConfigId(nodeConfig_n1_v1),None)),true,12)))])> but was:<F[ailure(Error running doobie transaction. Cause was: PSQLException: ERROR: syntax error at or near "and" 
  Position: 561,Full(org.postgresql.util.PSQLException: ERROR: syntax error at or near "and" 
  Position: 561),Empty])>
Comparison Failure: 
<Click to see difference>

java.lang.Exception: Failure(Error running doobie transaction. Cause was: PSQLException: ERROR: syntax error at or near "and" 
  Position: 561,Full(org.postgresql.util.PSQLException: ERROR: syntax error at or near "and" 
  Position: 561),Empty) != Full(Map(NodeId(n1) -> Some(AgentRunWithNodeConfig(AgentRunId(NodeId(n1),2020-08-28T16:10:30.337+02:00),Some((NodeConfigId(nodeConfig_n1_v1),None)),true,12))))
    at com.normation.rudder.repository.jdbc.AgentRunsTest.$anonfun$new$8(ReportExecutionTest.scala:94)

Failure(Error running doobie transaction. Cause was: PSQLException: ERROR: syntax error at or near "and" 
  Position: 561,Full(org.postgresql.util.PSQLException: ERROR: syntax error at or near "and" 
  Position: 561),Empty) != Full(Map(NodeId(n1) -> Some(AgentRunWithNodeConfig(AgentRunId(NodeId(n1),2020-08-28T16:10:30.337+02:00),Some((NodeConfigId(nodeConfig_n1_v1),None)),true,12)))) expected:<F[ull(Map(NodeId(n1) -> Some(AgentRunWithNodeConfig(AgentRunId(NodeId(n1),2020-08-28T16:10:30.337+02:00),Some((NodeConfigId(nodeConfig_n1_v1),None)),true,12)))])> but was:<F[ailure(Error running doobie transaction. Cause was: PSQLException: ERROR: syntax error at or near "and" 
  Position: 561,Full(org.postgresql.util.PSQLException: ERROR: syntax error at or near "and" 
  Position: 561),Empty])>
Comparison Failure: 
<Click to see difference>

java.lang.Exception: Failure(Error running doobie transaction. Cause was: PSQLException: ERROR: syntax error at or near "and" 
  Position: 561,Full(org.postgresql.util.PSQLException: ERROR: syntax error at or near "and" 
  Position: 561),Empty) != Full(Map(NodeId(n1) -> Some(AgentRunWithNodeConfig(AgentRunId(NodeId(n1),2020-08-28T16:10:30.337+02:00),Some((NodeConfigId(nodeConfig_n1_v1),None)),true,12))))
    at com.normation.rudder.repository.jdbc.AgentRunsTest.$anonfun$new$12(ReportExecutionTest.scala:99)

Failure(Error running doobie transaction. Cause was: PSQLException: ERROR: syntax error at or near "and" 
  Position: 561,Full(org.postgresql.util.PSQLException: ERROR: syntax error at or near "and" 
  Position: 561),Empty) != Full(Map(NodeId(n2) -> None)) expected:<F[ull(Map(NodeId(n2) -> None)])> but was:<F[ailure(Error running doobie transaction. Cause was: PSQLException: ERROR: syntax error at or near "and" 
  Position: 561,Full(org.postgresql.util.PSQLException: ERROR: syntax error at or near "and" 
  Position: 561),Empty])>
Comparison Failure: 
<Click to see difference>

java.lang.Exception: Failure(Error running doobie transaction. Cause was: PSQLException: ERROR: syntax error at or near "and" 
  Position: 561,Full(org.postgresql.util.PSQLException: ERROR: syntax error at or near "and" 
  Position: 561),Empty) != Full(Map(NodeId(n2) -> None))
    at com.normation.rudder.repository.jdbc.AgentRunsTest.$anonfun$new$16(ReportExecutionTest.scala:103)

For ReportsTest:

java.lang.Exception: 
List(
AgentRun(AgentRunId(NodeId(n1),2020-08-28T15:52:30.123+02:00),Some(NodeConfigId(n1_run1)),true,115), AgentRun(AgentRunId(NodeId(n2),2020-08-28T15:52:30.123+02:00),Some(NodeConfigId(n2_run1)),true,119), AgentRun(AgentRunId(NodeId(n0),2020-08-28T15:52:30.123+02:00),None,true,109)
) 
does not contain 
AgentRun(AgentRunId(NodeId(n1),2020-08-28T15:57:30.535+02:00),None,false,116), AgentRun(AgentRunId(NodeId(n1),2020-08-28T15:52:30.123+02:00),Some(NodeConfigId(n1_run1)),true,110), AgentRun(AgentRunId(NodeId(n1),2020-08-28T16:02:30.535+02:00),None,false,118) but contains AgentRun(AgentRunId(NodeId(n1),2020-08-28T15:52:30.123+02:00),Some(NodeConfigId(n1_run1)),true,115)

    at com.normation.rudder.repository.jdbc.ReportsTest.$anonfun$new$28(ReportsTest.scala:193)
    at com.normation.rudder.repository.jdbc.ReportsTest.$anonfun$new$21(ReportsTest.scala:193)

Actions

Also available in: Atom PDF