Skip to content

Commit 39e932b

Browse files
committed
test: name length e2e
1 parent 44a7281 commit 39e932b

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
if: contains(github.event.pull_request.labels.*.name, 'test/api7') || github.event_name == 'push'
4040
strategy:
4141
matrix:
42-
version: [3.2.13.0, 3.2.14.5]
42+
version: [3.2.13.0, 3.2.14.6]
4343
env:
4444
BACKEND_API7_DOWNLOAD_URL: https://run.api7.ai/api7-ee/api7-ee-v${{ matrix.version }}.tar.gz
4545
BACKEND_API7_LICENSE: ${{ secrets.BACKEND_API7_LICENSE }}

libs/backend-api7/e2e/misc.e2e-spec.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,13 @@ describe('Miscellaneous', () => {
2424
});
2525
});
2626

27-
describe('Sync resources with the description greater than 256 bytes', () => {
28-
const service1Name = 'service1';
27+
describe('Sync resources with the name/description greater than 256 bytes', () => {
28+
const routeName = ''.padEnd(64 * 1024, '0'); // 65536 bytes
29+
const service1Name = ''.padEnd(64 * 1024, '0'); // 65536 bytes
30+
const route = {
31+
name: routeName,
32+
uris: ['/test'],
33+
};
2934
const service1 = {
3035
name: service1Name,
3136
description: ''.padEnd(64 * 1024, '0'), // 65536 bytes
@@ -39,6 +44,7 @@ describe('Miscellaneous', () => {
3944
},
4045
],
4146
},
47+
routes: [route],
4248
} as ADCSDK.Service;
4349

4450
it('Create services', async () =>
@@ -50,6 +56,8 @@ describe('Miscellaneous', () => {
5056
const result = (await dumpConfiguration(backend)) as ADCSDK.Configuration;
5157
expect(result.services).toHaveLength(1);
5258
expect(result.services[0]).toMatchObject(service1);
59+
expect(result.services[0]).toMatchObject(service1);
60+
expect(result.services[0].routes[0]).toMatchObject(route);
5361
});
5462

5563
it('Delete service', async () =>

0 commit comments

Comments
 (0)