Skip to content

Commit 9df49c1

Browse files
committed
test: adapt tests
(cherry picked from commit 0ccd0e5)
1 parent b14b761 commit 9df49c1

5 files changed

Lines changed: 14 additions & 13 deletions

File tree

gravitee-apim-e2e/api-test/src/portal/portal-business-error-subscriptions.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ describe('Portal: Business Error - subscriptions', () => {
120120
describe('400', () => {
121121
test('should check input value', async () => {
122122
await fail(portalSubscriptionApiAsAdmin.createSubscriptionRaw({ subscriptionInput: undefined }), 400, {
123-
code: 'createSubscription.arg0',
123+
code: 'createSubscription.subscriptionInput',
124124
message: 'Input must not be null.',
125125
});
126126
});

gravitee-apim-e2e/api-test/src/portal/portal-business-error-users.spec.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,19 @@ describe('Portal: Business Error - users', () => {
5050
test('invalid input', async () => {
5151
await fail(usersPortalApiAsAdmin.registerNewUserRaw({}), 400, { message: 'Input must not be null.' });
5252
// @ts-ignore
53-
await fail(usersPortalApiAsAdmin.registerNewUserRaw({ registerUserInput: {} }), 400, { code: 'registerUser.arg0.email' });
53+
await fail(usersPortalApiAsAdmin.registerNewUserRaw({ registerUserInput: {} }), 400, {
54+
code: 'registerUser.registerUserInput.email',
55+
});
5456
await fail(usersPortalApiAsAdmin.registerNewUserRaw({ registerUserInput: { email: 'DUMMY EMAIL' } }), 400, {
5557
code: 'errors.email.invalid',
5658
});
5759
await fail(usersPortalApiAsAdmin.finalizeUserRegistrationRaw({}), 400, { message: 'Input must not be null.' });
5860
// @ts-ignore
5961
await fail(usersPortalApiAsAdmin.finalizeUserRegistrationRaw({ finalizeRegistrationInput: {} }), 400, [
60-
{ code: 'finalizeRegistration.arg0.lastname' },
61-
{ code: 'finalizeRegistration.arg0.firstname' },
62-
{ code: 'finalizeRegistration.arg0.password' },
63-
{ code: 'finalizeRegistration.arg0.token' },
62+
{ code: 'finalizeRegistration.finalizeRegistrationInput.lastname' },
63+
{ code: 'finalizeRegistration.finalizeRegistrationInput.firstname' },
64+
{ code: 'finalizeRegistration.finalizeRegistrationInput.password' },
65+
{ code: 'finalizeRegistration.finalizeRegistrationInput.token' },
6466
]);
6567
await fail(usersPortalApiAsAdmin.resetUserPasswordRaw({}), 400, { message: 'Input must not be null.' });
6668
});

gravitee-apim-plugin/gravitee-apim-plugin-endpoint/gravitee-apim-plugin-endpoint-mock/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
</dependency>
6666
<dependency>
6767
<groupId>org.simplify4u</groupId>
68-
<artifactId>slf4j-mock</artifactId>
68+
<artifactId>slf4j2-mock</artifactId>
6969
<scope>test</scope>
7070
</dependency>
7171
</dependencies>

gravitee-apim-repository/gravitee-apim-repository-elasticsearch/pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,8 @@
149149
</dependency>
150150

151151
<dependency>
152-
<groupId>org.apache.logging.log4j</groupId>
153-
<artifactId>log4j-core</artifactId>
154-
<version>2.19.0</version>
152+
<groupId>ch.qos.logback</groupId>
153+
<artifactId>logback-core</artifactId>
155154
<scope>test</scope>
156155
</dependency>
157156

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
<protobuf-java.version>3.19.3</protobuf-java.version>
133133
<reactor-core.version>3.5.0</reactor-core.version>
134134
<reactor-adapter.version>3.5.0</reactor-adapter.version>
135-
<slf4j-mock.version>2.2.0</slf4j-mock.version>
135+
<slf4j2-mock.version>2.3.0</slf4j2-mock.version>
136136
<snakeyaml.version>2.0</snakeyaml.version>
137137
<swagger-jaxrs2.version>2.2.9</swagger-jaxrs2.version>
138138
<swagger-core.version>2.2.9</swagger-core.version>
@@ -937,8 +937,8 @@
937937

938938
<dependency>
939939
<groupId>org.simplify4u</groupId>
940-
<artifactId>slf4j-mock</artifactId>
941-
<version>${slf4j-mock.version}</version>
940+
<artifactId>slf4j2-mock</artifactId>
941+
<version>${slf4j2-mock.version}</version>
942942
</dependency>
943943

944944
<dependency>

0 commit comments

Comments
 (0)