Skip to content

Commit

Permalink
update BrAPIV2 phenotying mech test to reflect new cvterm entries in …
Browse files Browse the repository at this point in the history
…the fixture db
  • Loading branch information
isaak committed Jan 8, 2025
1 parent fe4163c commit 7a259a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/unit_mech/AJAX/_BrAPIv2_phenotyping.t
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ is_deeply($response, { 'result' => {'data' => [ { 'collector' => 'John Doe', 'ob
$mech->get_ok('http://localhost:3010/brapi/v2/variables?pageSize=2');
$response = decode_json $mech->content;
#print STDERR "\n\n" . Dumper$response;
is_deeply($response, {'metadata' => {'status' => [{'messageType' => 'INFO','message' => 'BrAPI base call found with page=0, pageSize=2'},{'message' => 'Loading CXGN::BrAPI::v2::ObservationVariables','messageType' => 'INFO'},{'message' => 'Observationvariable search result constructed','messageType' => 'INFO'}],'pagination' => {'totalCount' => 257,'pageSize' => 2,'totalPages' => 129,'currentPage' => 0},'datafiles' => []},'result' => {'data' => [ { 'documentationURL' => '', 'growthStage' => undef, 'institution' => undef, 'observationVariableDbId' => '70692', 'additionalInfo' => {}, 'observationVariableName' => 'abscisic acid content of leaf ug/g|CO_334:0000047', 'synonyms' => [ 'abscon', 'AbsCt_Meas_ugg' ], 'language' => 'eng', 'ontologyReference' => { 'ontologyName' => 'CO_334', 'documentationLinks' => undef, 'ontologyDbId' => '186', 'version' => undef }, 'commonCropName' => 'Cassava', 'contextOfUse' => undef, 'observationVariablePUI' => 'CO_334:0000047', 'method' => {}, 'scientist' => undef, 'trait' => { 'attribute' => undef, 'synonyms' => [ 'abscon', 'AbsCt_Meas_ugg' ], 'additionalInfo' => {}, 'alternativeAbbreviations' => undef, 'entity' => undef, 'traitDescription' => 'Abscisic acid content of leaf sample.', 'attributePUI' => undef, 'externalReferences' => [ { 'referenceId' => 'CO_334:0000047', 'referenceSource' => 'Crop Ontology' } ], 'entityPUI' => undef, 'status' => 'active', 'mainAbbreviation' => undef, 'traitPUI' => undef, 'traitClass' => undef, 'traitDbId' => '70692', 'traitName' => 'abscisic acid content of leaf ug/g', 'ontologyReference' => { 'documentationLinks' => undef, 'ontologyName' => 'CO_334', 'version' => undef, 'ontologyDbId' => '186' } }, 'defaultValue' => '', 'status' => 'active', 'externalReferences' => [ { 'referenceId' => 'CO_334:0000047', 'referenceSource' => 'Crop Ontology' } ], 'scale' => { 'dataType' => 'Text', 'decimalPlaces' => undef, 'scalePUI' => undef, 'ontologyReference' => undef, 'scaleDbId' => undef, 'scaleName' => undef, 'externalReferences' => undef, 'validValues' => { 'categories' => undef, 'maximumValue' => undef, 'minimumValue' => undef }, 'units' => undef, 'additionalInfo' => undef }, 'submissionTimestamp' => undef }, { 'defaultValue' => '', 'status' => 'active', 'scale' => { 'externalReferences' => undef, 'scaleDbId' => undef, 'scaleName' => undef, 'additionalInfo' => undef, 'units' => undef, 'validValues' => { 'categories' => undef, 'maximumValue' => undef, 'minimumValue' => undef }, 'dataType' => 'Text', 'ontologyReference' => undef, 'decimalPlaces' => undef, 'scalePUI' => undef }, 'externalReferences' => [ { 'referenceId' => 'CO_334:0000121', 'referenceSource' => 'Crop Ontology' } ], 'submissionTimestamp' => undef, 'ontologyReference' => { 'documentationLinks' => undef, 'ontologyName' => 'CO_334', 'version' => undef, 'ontologyDbId' => '186' }, 'commonCropName' => 'Cassava', 'observationVariablePUI' => 'CO_334:0000121', 'contextOfUse' => undef, 'method' => {}, 'scientist' => undef, 'trait' => { 'ontologyReference' => { 'documentationLinks' => undef, 'ontologyName' => 'CO_334', 'version' => undef, 'ontologyDbId' => '186' }, 'traitName' => 'amylopectin content ug/g in percentage', 'traitDbId' => '70761', 'traitClass' => undef, 'status' => 'active', 'traitPUI' => undef, 'mainAbbreviation' => undef, 'entityPUI' => undef, 'externalReferences' => [ { 'referenceSource' => 'Crop Ontology', 'referenceId' => 'CO_334:0000121' } ], 'entity' => undef, 'traitDescription' => 'Estimation of amylopectin content of cassava roots in percentage(%).', 'attributePUI' => undef, 'alternativeAbbreviations' => undef, 'additionalInfo' => {}, 'attribute' => undef, 'synonyms' => [ 'amylp', 'AmylPCt_Meas_pct' ] }, 'additionalInfo' => {}, 'observationVariableName' => 'amylopectin content ug/g in percentage|CO_334:0000121', 'synonyms' => [ 'amylp', 'AmylPCt_Meas_pct' ], 'language' => 'eng', 'documentationURL' => '', 'growthStage' => undef, 'institution' => undef, 'observationVariableDbId' => '70761'} ] }});
is_deeply($response, {'metadata' => {'status' => [{'messageType' => 'INFO','message' => 'BrAPI base call found with page=0, pageSize=2'},{'message' => 'Loading CXGN::BrAPI::v2::ObservationVariables','messageType' => 'INFO'},{'message' => 'Observationvariable search result constructed','messageType' => 'INFO'}],'pagination' => {'totalCount' => 267,'pageSize' => 2,'totalPages' => 134,'currentPage' => 0},'datafiles' => []},'result' => {'data' => [ { 'documentationURL' => '', 'growthStage' => undef, 'institution' => undef, 'observationVariableDbId' => '70692', 'additionalInfo' => {}, 'observationVariableName' => 'abscisic acid content of leaf ug/g|CO_334:0000047', 'synonyms' => [ 'abscon', 'AbsCt_Meas_ugg' ], 'language' => 'eng', 'ontologyReference' => { 'ontologyName' => 'CO_334', 'documentationLinks' => undef, 'ontologyDbId' => '186', 'version' => undef }, 'commonCropName' => 'Cassava', 'contextOfUse' => undef, 'observationVariablePUI' => 'CO_334:0000047', 'method' => {}, 'scientist' => undef, 'trait' => { 'attribute' => undef, 'synonyms' => [ 'abscon', 'AbsCt_Meas_ugg' ], 'additionalInfo' => {}, 'alternativeAbbreviations' => undef, 'entity' => undef, 'traitDescription' => 'Abscisic acid content of leaf sample.', 'attributePUI' => undef, 'externalReferences' => [ { 'referenceId' => 'CO_334:0000047', 'referenceSource' => 'Crop Ontology' } ], 'entityPUI' => undef, 'status' => 'active', 'mainAbbreviation' => undef, 'traitPUI' => undef, 'traitClass' => undef, 'traitDbId' => '70692', 'traitName' => 'abscisic acid content of leaf ug/g', 'ontologyReference' => { 'documentationLinks' => undef, 'ontologyName' => 'CO_334', 'version' => undef, 'ontologyDbId' => '186' } }, 'defaultValue' => '', 'status' => 'active', 'externalReferences' => [ { 'referenceId' => 'CO_334:0000047', 'referenceSource' => 'Crop Ontology' } ], 'scale' => { 'dataType' => 'Text', 'decimalPlaces' => undef, 'scalePUI' => undef, 'ontologyReference' => undef, 'scaleDbId' => undef, 'scaleName' => undef, 'externalReferences' => undef, 'validValues' => { 'categories' => undef, 'maximumValue' => undef, 'minimumValue' => undef }, 'units' => undef, 'additionalInfo' => undef }, 'submissionTimestamp' => undef }, { 'defaultValue' => '', 'status' => 'active', 'scale' => { 'externalReferences' => undef, 'scaleDbId' => undef, 'scaleName' => undef, 'additionalInfo' => undef, 'units' => undef, 'validValues' => { 'categories' => undef, 'maximumValue' => undef, 'minimumValue' => undef }, 'dataType' => 'Text', 'ontologyReference' => undef, 'decimalPlaces' => undef, 'scalePUI' => undef }, 'externalReferences' => [ { 'referenceId' => 'CO_334:0000121', 'referenceSource' => 'Crop Ontology' } ], 'submissionTimestamp' => undef, 'ontologyReference' => { 'documentationLinks' => undef, 'ontologyName' => 'CO_334', 'version' => undef, 'ontologyDbId' => '186' }, 'commonCropName' => 'Cassava', 'observationVariablePUI' => 'CO_334:0000121', 'contextOfUse' => undef, 'method' => {}, 'scientist' => undef, 'trait' => { 'ontologyReference' => { 'documentationLinks' => undef, 'ontologyName' => 'CO_334', 'version' => undef, 'ontologyDbId' => '186' }, 'traitName' => 'amylopectin content ug/g in percentage', 'traitDbId' => '70761', 'traitClass' => undef, 'status' => 'active', 'traitPUI' => undef, 'mainAbbreviation' => undef, 'entityPUI' => undef, 'externalReferences' => [ { 'referenceSource' => 'Crop Ontology', 'referenceId' => 'CO_334:0000121' } ], 'entity' => undef, 'traitDescription' => 'Estimation of amylopectin content of cassava roots in percentage(%).', 'attributePUI' => undef, 'alternativeAbbreviations' => undef, 'additionalInfo' => {}, 'attribute' => undef, 'synonyms' => [ 'amylp', 'AmylPCt_Meas_pct' ] }, 'additionalInfo' => {}, 'observationVariableName' => 'amylopectin content ug/g in percentage|CO_334:0000121', 'synonyms' => [ 'amylp', 'AmylPCt_Meas_pct' ], 'language' => 'eng', 'documentationURL' => '', 'growthStage' => undef, 'institution' => undef, 'observationVariableDbId' => '70761'} ] }});

$mech->get_ok('http://localhost:3010/brapi/v2/variables/70752');
$response = decode_json $mech->content;
Expand Down Expand Up @@ -226,8 +226,8 @@ is_deeply($response, {
'pagination' => {
'pageSize' => 1,
'currentPage' => 1,
'totalPages' => 7024,
'totalCount' => 7024
'totalPages' => 7035,
'totalCount' => 7035
}
},
'result' => {
Expand Down

0 comments on commit 7a259a9

Please sign in to comment.