# Copyright (c) 2019 Wladislaw Wagner (Vitasystems GmbH), Pablo Pazos (Hannover Medical School). # # This file is part of Project EHRbase # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. *** Settings *** Documentation Contribution Integration Tests ... ... Alternative flow 3: has CONTRIBUTION, EHR with CONTRIBUTIONS, but CONTRIBUTION doesn't exist ... ... Preconditions: ... An EHR should exist in the system with a known ehr_id, EHR has CONTRIBUTIONS ... ... Flow: ... 1. Invoke has CONTRIBUTION service with the known ehr_id and a random, not existing CONTRIBUTION uid ... 2. The result should be negative "the CONTRIBUTION with uid doesn't exist" ... ... Postconditions: ... None. Metadata TOP_TEST_SUITE CONTRIBUTION Resource ../../_resources/keywords/composition_keywords.robot Resource ../../_resources/keywords/contribution_keywords.robot #Suite Setup startup SUT # Test Setup start openehr server # Test Teardown restore clean SUT state #Suite Teardown shutdown SUT Force Tags refactor *** Test Cases *** Alternative flow 3: has CONTRIBUTION, EHR with CONTRIBUTIONS, but CONTRIBUTION doesn't exist upload OPT minimal/minimal_instruction.opt create EHR commit CONTRIBUTION (JSON) minimal/minimal_instruction.contribution.json retrieve CONTRIBUTION by fake contri_uid (JSON) check response: is negative indicating non-existent contribution_uid [Teardown] restart SUT