Project

General

Profile

Actions

Bug #18151

closed

AgentRunsTest and ReportsTest not passing on master

Added by François ARMAND over 2 years ago. Updated about 1 year ago.

Status:
Released
Priority:
N/A
Category:
Architecture - Refactoring
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
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 #1

Updated by Nicolas CHARLES over 2 years ago

  • Status changed from New to In progress
Actions #2

Updated by Nicolas CHARLES over 2 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/3196
Actions #3

Updated by Nicolas CHARLES over 2 years ago

  • Status changed from Pending technical review to Pending release
Actions #4

Updated by Vincent MEMBRÉ about 2 years ago

  • Target version changed from 6.2.0~beta1 to 7.0.0~beta1
Actions #5

Updated by Vincent MEMBRÉ about 1 year ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 7.0.0~beta1 which was released today.

Actions

Also available in: Atom PDF