Project

General

Profile

Actions

Bug #10135

closed

Can not build datasource test: missing dependencies

Added by François ARMAND about 7 years ago. Updated over 5 years ago.

Status:
Released
Priority:
1
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

For now, we are not able to compile data sources plugin tests because they are using test classes defined in Rudder core. But these test classes are not packaged, and so can't be used as dependencies:

For example:

[ERROR] import com.normation.BoxSpecMatcher
[ERROR]        ^
[ERROR] /home/fanf/java/workspaces/rudder-project/rudder-plugin-datasources/src/test/scala/com/normation/rudder/datasources/JsonPathTest.scala:49: error: not found: type BoxSpecMatcher
[ERROR] class JsonPathTest extends Specification with BoxSpecMatcher with Loggable {

We need to make a "test-jar" for Rudder, and depend on it in data sources plugin.
It may not be easy, see: http://stackoverflow.com/questions/7751860/how-do-i-include-a-dependencys-test-jar-into-a-maven-projects-deployment


Subtasks 1 (0 open1 closed)

Bug #10145: We need to produce tests-jar for plugin to depend onReleasedVincent MEMBRÉActions
Actions #1

Updated by François ARMAND about 7 years ago

  • Category set to 71
  • How to reproduce updated (diff)
Actions #2

Updated by François ARMAND about 7 years ago

  • Status changed from New to In progress
Actions #3

Updated by François ARMAND about 7 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from François ARMAND to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/rudder-plugin-datasources/pull/1
Actions #4

Updated by François ARMAND about 7 years ago

  • Status changed from Pending technical review to Pending release

Applied in changeset commit:rudder-plugin-datasources|ac7808232cc906eeafe7191de09b5da782eb5c74.

Actions #5

Updated by Vincent MEMBRÉ about 7 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.1.0~beta3 which was released today.

Actions #6

Updated by Vincent MEMBRÉ over 5 years ago

  • Project changed from Rudder to 54
  • Category deleted (71)
  • Target version changed from 4.1.0~beta3 to 425
  • Priority set to 0
Actions #7

Updated by Vincent MEMBRÉ over 5 years ago

  • Project changed from 54 to Datasources
  • Target version deleted (425)
Actions #8

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version set to 4.1-0.2
Actions

Also available in: Atom PDF