Skip to content

Commit

Permalink
Fix issue for path of shared datasets when requested from a report
Browse files Browse the repository at this point in the history
  • Loading branch information
Cédric L. Charlier committed Nov 8, 2016
1 parent e84071d commit 416d729
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions NBi.Core/Report/FileParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public ReportCommand ExtractQuery(DatasetRequest request)
var sharedDataSetName = node.InnerText + ".rsd";
var subRequest = new SharedDatasetRequest
(
string.Empty,
request.Source,
request.Path,
sharedDataSetName
);
Expand All @@ -75,7 +75,7 @@ public ReportCommand ExtractQuery(SharedDatasetRequest request)

var fullPath = string.Format("{0}{1}{2}", request.Source, request.Path, reportName);
if (!File.Exists(fullPath))
throw new ArgumentException(string.Format("No report found on path '{0}{1}' with name '{2}'", request.Source, request.Path, reportName));
throw new ArgumentException(string.Format("No shared dataset found on path '{0}{1}' with name '{2}'", request.Source, request.Path, reportName));

//If the file is found then we need to select the query inside the file
var docXml = new XmlDocument();
Expand Down
4 changes: 2 additions & 2 deletions NBi.Testing/Acceptance/RuntimeOverrider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void SetupMethods()
[TestCase("Count.nbits")]
[TestCase("Contain.nbits")]
[TestCase("ContainStructure.nbits")]
[TestCase("fasterThan.nbits")]
[TestCase("FasterThan.nbits")]
[TestCase("SyntacticallyCorrect.nbits")]
[TestCase("Exists.nbits")]
[TestCase("LinkedTo.nbits")]
Expand All @@ -124,8 +124,8 @@ public void SetupMethods()
[TestCase("QueryEqualToXml.nbits")]
[TestCase("QueryRowCount.nbits")]
[TestCase("QueryEqualToXml.nbits")]
[TestCase("PowerBiDesktop.nbits")]
[TestCase("QueryAllNoRows.nbits")]
//[TestCase("PowerBiDesktop.nbits")]
[Category("Acceptance")]
public void RunPositiveTestSuite(string filename)
{
Expand Down

0 comments on commit 416d729

Please sign in to comment.