Skip to content
Snippets Groups Projects
Verified Commit 7ab6ba3d authored by Georgi Michev's avatar Georgi Michev
Browse files

Make background step clear of what it does

parent 6a6a3ed8
No related branches found
No related tags found
1 merge request!53Add test for cache event subscription
Pipeline #68502 passed
......@@ -5,6 +5,7 @@ import api.test.rest.RestGeneralStepDefinitions;
import api.test.rest.RestSessionContainer;
import core.*;
import cucumber.api.java.en.And;
import cucumber.api.java.en.Then;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
......@@ -54,4 +55,9 @@ public class CacheStepDefinitions extends BaseStepDefinitions {
currentRequest.getHeaders().put(headerName, restSessionContainer.getImportIDs().get(id));
}
@Then("^I clean up the Cache and set it to default value$")
public void iCleanUpTheCacheAndSetItToDefaultValue() {
iSendTheCachePOSTRequest("POST");
}
}
......@@ -13,7 +13,7 @@ Feature: API -TSA - Cache - v1/external/cache POST
And I load value {resultKey} into current request HEADER {x-cache-key}
And I load value {resultNamespace} into current request HEADER {x-cache-namespace}
And I load value {resultScope} into current request HEADER {x-cache-scope}
And I send the Cache POST request via TSA Cache API
Then I clean up the Cache and set it to default value
Scenario: TSA - Cache Event Subscription - Positive
When I load the REST request {Cache.json} with profile {successful_set}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment