Fixes: https://tracker.ceph.com/issues/51368
Signed-off-by: Nizamudeen A <nia@redhat.com>
testValidator('bucket-name-is-unique', true);
}));
+ it('bucket names must not contain spaces', fakeAsync(() => {
+ testValidator('bucket name with spaces', false, 'onlyLowerCaseAndNumbers');
+ }));
+
it('should get zonegroup and placement targets', () => {
const payload: Record<string, any> = {
zonegroup: 'default',
return false;
}
// Bucket names can contain lowercase letters, numbers, and hyphens.
- if (!/[0-9a-z-]/.test(label)) {
+ if (!/^\S*$/.test(name) || !/[0-9a-z-]/.test(label)) {
errorName = 'onlyLowerCaseAndNumbers';
return false;
}