Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add postValidation on showcase relationalStore/Service/Basic #791

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion showcases/data/Store/Relational Store/Service/Basic/code.pure
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,20 @@ Service showcase::northwind::services::tds::OrderDetailsByIdTDS
mapping: showcase::northwind::mapping::NorthwindMapping;
runtime: showcase::northwind::runtime::NorthwindRuntime;
}
postValidations:
[
{
description: 'a simple passing validation with static parameter';
params:[
|10248
];
assertions:[
rowCountGreaterThan10: tds: TabularDataSet[1]|$tds->filter(
row|$row.getString('Employee/First Name')->startsWith('T')
)->meta::legend::service::validation::assertTabularDataSetEmpty('Expected no Employee/First Name to begin with the letter T')
];
}
]
}

Service showcase::northwind::services::tds::ProductRankingWithinCategory
Expand Down Expand Up @@ -445,6 +459,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 Expand Up @@ -1186,4 +1214,4 @@ Runtime showcase::northwind::runtime::NorthwindRuntime
}#
]
];
}
}
Loading