Update examples.feature

This commit is contained in:
Ludy87 2025-05-11 19:58:24 +02:00
parent 06e2799e3e
commit 09c1f9e4aa
No known key found for this signature in database
GPG Key ID: 92696155E0220F94

View File

@ -2,7 +2,7 @@
Feature: API Validation Feature: API Validation
@positive @password @positive @password
Scenario: Remove password Scenario: Remove password
Given I generate a PDF file as "fileInput" Given I generate a PDF file as "fileInput"
And the pdf contains 3 pages And the pdf contains 3 pages
And the pdf is encrypted with password "password123" And the pdf is encrypted with password "password123"
@ -47,9 +47,9 @@ Feature: API Validation
And the response file should have size greater than 100 And the response file should have size greater than 100
And the response PDF is passworded And the response PDF is passworded
And the response status code should be 200 And the response status code should be 200
@positive @password @positive @password
Scenario: Add password with other params Scenario: Add password with other params
Given I generate a PDF file as "fileInput" Given I generate a PDF file as "fileInput"
And the pdf contains 3 pages And the pdf contains 3 pages
And the request data includes And the request data includes
@ -64,7 +64,7 @@ Feature: API Validation
And the response file should have size greater than 100 And the response file should have size greater than 100
And the response PDF is passworded And the response PDF is passworded
And the response status code should be 200 And the response status code should be 200
@positive @watermark @positive @watermark
Scenario: Add watermark Scenario: Add watermark
Given I generate a PDF file as "fileInput" Given I generate a PDF file as "fileInput"
@ -78,6 +78,7 @@ Feature: API Validation
| opacity | 0.5 | | opacity | 0.5 |
| widthSpacer | 50 | | widthSpacer | 50 |
| heightSpacer | 50 | | heightSpacer | 50 |
| alphabet | roman |
When I send the API request to the endpoint "/api/v1/security/add-watermark" When I send the API request to the endpoint "/api/v1/security/add-watermark"
Then the response content type should be "application/pdf" Then the response content type should be "application/pdf"
And the response file should have size greater than 100 And the response file should have size greater than 100
@ -107,7 +108,7 @@ Feature: API Validation
Then the response content type should be "application/pdf" Then the response content type should be "application/pdf"
And the response file should have size greater than 0 And the response file should have size greater than 0
And the response status code should be 200 And the response status code should be 200
@positive @metadata @positive @metadata
Scenario: Update metadata Scenario: Update metadata
Given I generate a PDF file as "fileInput" Given I generate a PDF file as "fileInput"
@ -127,4 +128,4 @@ Feature: API Validation
And the response PDF metadata should include "Title" as "Sample Title" And the response PDF metadata should include "Title" as "Sample Title"
And the response status code should be 200 And the response status code should be 200