952 days continuous production uptime, 40k+ tp/s single node. Original corpo Bitbucket history not included — clean archive commit.
34 lines
819 B
PHP
34 lines
819 B
PHP
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: mshallop
|
|
* Date: 2/26/19
|
|
* Time: 2:12 PM
|
|
*/
|
|
// load the namaste environment
|
|
require_once(dirname(__DIR__) . '/config/sneakerstrap.inc');
|
|
|
|
// generate test data (note: we're not instantiating anything)
|
|
$data = gatTestMongo::buildTestData(10);
|
|
$meta = [
|
|
META_TEMPLATE => TEMPLATE_CLASS_TEST_MONGO,
|
|
META_CLIENT => CLIENT_CLIENT,
|
|
META_CLIENT_IP => STRING_SESSION_HOME,
|
|
META_EVENT_GUID => guid(), // simulate a broker event by generating the event guid
|
|
];
|
|
|
|
$payload = [
|
|
BROKER_REQUEST => BROKER_REQUEST_CREATE,
|
|
BROKER_DATA => $data,
|
|
BROKER_META_DATA => $meta
|
|
];
|
|
$errors = [];
|
|
|
|
// start the test by invoking the validation function
|
|
$res = validateMetaData($payload,$errors);
|
|
if ($res)
|
|
echo 'w00t';
|
|
else
|
|
var_export($errors);
|
|
echo PHP_EOL;
|