Nouvelles Regex : ERASE_RESULT_OK validée

This commit is contained in:
Maximilien LEDOUX 2022-03-19 12:44:31 +01:00
parent 4128efdefc
commit dedfeeff7d
2 changed files with 4 additions and 12 deletions

View File

@ -5,9 +5,11 @@ import lightcontainer.interfaces.ProtocolRepository;
import lightcontainer.protocol.ProtocolReader;
import lightcontainer.protocol.rules.writer.RemoveFileOkRule;
import static lightcontainer.protocol.StandardizedDefinitions.SBE_ERASE_RESULT_OK;
public class EraseOkRule extends ProtocolReader {
private static final String PATTERN = "^ERASE_OK\r\n$";
private static final String PATTERN = SBE_ERASE_RESULT_OK;
private static final String NAME = "ERASE_OK";

View File

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