Nouvelles Regex : SBE_RETRIEVE_RESULT_ERROR validée

This commit is contained in:
Maximilien LEDOUX 2022-03-19 12:57:55 +01:00
parent 4fac3a6d52
commit 90329d26e3
2 changed files with 16 additions and 2 deletions

View File

@ -3,11 +3,15 @@ package lightcontainer.protocol.rules.reader;
import lightcontainer.domains.client.Context; import lightcontainer.domains.client.Context;
import lightcontainer.interfaces.ProtocolRepository; import lightcontainer.interfaces.ProtocolRepository;
import lightcontainer.protocol.ProtocolReader; import lightcontainer.protocol.ProtocolReader;
import lightcontainer.protocol.StandardizedDefinitions;
import lightcontainer.protocol.rules.writer.GetFileErrorRule; import lightcontainer.protocol.rules.writer.GetFileErrorRule;
import static lightcontainer.protocol.StandardizedDefinitions.SBE_RETRIEVE_RESULT_ERROR;
public class RetrieveErrorRule extends ProtocolReader { public class RetrieveErrorRule extends ProtocolReader {
// Constants // Constants
private static final String PATTERN = "^RETRIEVE_ERROR\r\n$"; //"^RETRIEVE_ERROR\r\n$"
private static final String PATTERN = SBE_RETRIEVE_RESULT_ERROR;
private static final String NAME = "RETRIEVE_ERROR"; private static final String NAME = "RETRIEVE_ERROR";
// Variables // Variables

View File

@ -10,7 +10,17 @@
"name": "aaaaa", "name": "aaaaa",
"password": "$2a$10$Tuh5xmGEy0g26hQO1SHNY.TNy8rY9VCkpzRLP3rlpnVHtwYew4.km", "password": "$2a$10$Tuh5xmGEy0g26hQO1SHNY.TNy8rY9VCkpzRLP3rlpnVHtwYew4.km",
"aes_key": "a68CqbWmmf0cuvgvMhm9OC+Y24ut3DY/0WBqtd3nGfU=", "aes_key": "a68CqbWmmf0cuvgvMhm9OC+Y24ut3DY/0WBqtd3nGfU=",
"files": [] "files": [
{
"name": "test.txt",
"fileNameSalt": "LvFNF7uz324NgsISSpUbwg==",
"size": 301,
"iv": "lGvyIzgGMiaiHeGwIaCESg==",
"storage": [
"lightcontainerSB01"
]
}
]
} }
] ]
} }