revert package policy validation that caused issue with input groups (#125657)

This commit is contained in:
Julia Bardi 2022-02-15 16:46:05 +01:00 committed by GitHub
parent dde4d6e9da
commit 35f4ba5362
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 10 deletions

View file

@ -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(
{

View file

@ -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) {