mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
revert package policy validation that caused issue with input groups (#125657)
This commit is contained in:
parent
dde4d6e9da
commit
35f4ba5362
2 changed files with 7 additions and 10 deletions
|
@ -607,7 +607,8 @@ describe('Fleet - validatePackagePolicy()', () => {
|
|||
});
|
||||
});
|
||||
|
||||
it('returns package policy validation error if input var does not exist', () => {
|
||||
// TODO enable when https://github.com/elastic/kibana/issues/125655 is fixed
|
||||
it.skip('returns package policy validation error if input var does not exist', () => {
|
||||
expect(
|
||||
validatePackagePolicy(
|
||||
{
|
||||
|
|
|
@ -210,15 +210,11 @@ export const validatePackagePolicyConfig = (
|
|||
}
|
||||
|
||||
if (varDef === undefined) {
|
||||
errors.push(
|
||||
i18n.translate('xpack.fleet.packagePolicyValidation.nonExistentVarMessage', {
|
||||
defaultMessage: '{varName} var definition does not exist',
|
||||
values: {
|
||||
varName,
|
||||
},
|
||||
})
|
||||
);
|
||||
return errors;
|
||||
// TODO return validation error here once https://github.com/elastic/kibana/issues/125655 is fixed
|
||||
// eslint-disable-next-line no-console
|
||||
console.debug(`No variable definition for ${varName} found`);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
if (varDef.required) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue