Skip to content

Commit

Permalink
add postValidation on showcase relationalStore/Service/Basic
Browse files Browse the repository at this point in the history
  • Loading branch information
YannanGao-gs committed Jan 25, 2024
1 parent 30412d8 commit ed14aa7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions showcases/data/Store/Relational Store/Service/Basic/code.pure
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,20 @@ Service showcase::northwind::services::tds::Customers
mapping: showcase::northwind::mapping::NorthwindMapping;
runtime: showcase::northwind::runtime::NorthwindRuntime;
}
postValidations:
[
{
description: 'A simple passing validation';
params:[

];
assertions:[
noCompanyNamedAroundtheHorn: tds: TabularDataSet[1]|$tds->filter(
row|$row.getString('Company Name')->contains('Around the Hornsss')
)->meta::legend::service::validation::assertTabularDataSetEmpty('Expected there is no company named Around the Hornsss')
];
}
]
}

Service showcase::northwind::services::graph::ShipperValidationDefects
Expand Down

0 comments on commit ed14aa7

Please sign in to comment.