CLP objectId size validation fix (#6332)
* Relax regex for customId ; allow varying id length * test * remove trycatch, fix typo * de-duplicate test names; test pointer targetclass * fixed early return; detailed errors for protected
This commit is contained in:
committed by
Antonio Davi Macedo Coelho de Castro
parent
9842c6ee42
commit
2d257e20a0
@@ -1665,7 +1665,7 @@ describe('Class Level Permissions for requiredAuth', () => {
|
||||
);
|
||||
});
|
||||
|
||||
it('required auth test create/get/update/delete not authenitcated', done => {
|
||||
it('required auth test get not authenitcated', done => {
|
||||
config.database
|
||||
.loadSchema()
|
||||
.then(schema => {
|
||||
@@ -1677,12 +1677,6 @@ describe('Class Level Permissions for requiredAuth', () => {
|
||||
get: {
|
||||
requiresAuthentication: true,
|
||||
},
|
||||
delete: {
|
||||
requiresAuthentication: true,
|
||||
},
|
||||
update: {
|
||||
requiresAuthentication: true,
|
||||
},
|
||||
create: {
|
||||
'*': true,
|
||||
},
|
||||
@@ -1710,7 +1704,7 @@ describe('Class Level Permissions for requiredAuth', () => {
|
||||
);
|
||||
});
|
||||
|
||||
it('required auth test create/get/update/delete not authenitcated', done => {
|
||||
it('required auth test find not authenitcated', done => {
|
||||
config.database
|
||||
.loadSchema()
|
||||
.then(schema => {
|
||||
@@ -1722,12 +1716,6 @@ describe('Class Level Permissions for requiredAuth', () => {
|
||||
find: {
|
||||
requiresAuthentication: true,
|
||||
},
|
||||
delete: {
|
||||
requiresAuthentication: true,
|
||||
},
|
||||
update: {
|
||||
requiresAuthentication: true,
|
||||
},
|
||||
create: {
|
||||
'*': true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user