Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
fix: Update workspace name reg exp and workspace config tags reg exp (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyen102 authored Apr 22, 2021
1 parent 35f6cce commit f9b7d62
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,12 @@ describe('EnvTypeService', () => {
value: '${vpcId}',
},
],
tags: [
{
key: 'customTag',
value: '${indexId}',
},
],
};
const envType = {
id: newConfig.id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ describe('EnvTypeService', () => {
const envType = {
id: 'theverybest',
rev: 1,
name: 'stuff',
name: 'stuff with spaces',
desc: 'stuff',
status: 'approved',
};
Expand Down Expand Up @@ -413,7 +413,7 @@ describe('EnvTypeService', () => {
// BUILD
const envType = {
id: 'iwilltravelacrosstheland',
name: 'searchingfarandwide',
name: 'searchingfarandwide with spaces',
product: {
productId: 'each-------tounderstand',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const schema = {
// To accommodate default value ${product.name}-${provisioningArtifact.name} we need 16383
maxLength: 16383,
minLength: 2,
pattern: '^[a-zA-Z0-9_\\-]*$',
pattern: '^[a-zA-Z0-9_\\-\\s]*$',
},
// Description for this workspace-type
// Defaults to provisioningArtifact.description
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const schema = {
value: {
type: 'string', // Tag value
maxLength: 8191,
pattern: '^([^<>{}]*)$',
pattern: '^([$\\{]*[^<>{}]*[\\}]*)$',
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const schema = {
// To accommodate default value ${product.name}-${provisioningArtifact.name} we need 16383
maxLength: 16383,
minLength: 2,
pattern: '^[a-zA-Z0-9_\\-]*$',
pattern: '^[a-zA-Z0-9_\\-\\s]*$',
},
// Description for this workspace-type
// Defaults to provisioningArtifact.description
Expand Down

0 comments on commit f9b7d62

Please sign in to comment.