##############################################################################
#
# Copyright (c) 2019 AT&T Intellectual Property.
#
# 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 ***
Library String
Library OperatingSystem
Library Process
Library ${CURDIR}/verifylogs.py
*** Test Cases ***
Verify logs - Confiugration update - Begin Tag Get
${Configuration}= Grep File ./gnb.log
#Log to console ${Configuration}
${ConfigurationAfterStrip}= Strip String ${Configuration}
Should Be Equal ${ConfigurationAfterStrip}
Verify logs - Confiugration update - End Tag Get
${ConfigurationEnd}= Grep File ./gnb.log
#Log to console ${ConfigurationEnd}
${ConfigurationEndAfterStrip}= Strip String ${ConfigurationEnd}
Should Be Equal ${ConfigurationEndAfterStrip}
Verify logs - Confiugration update - Ack Tag Begin
${ConfigurationAck}= Grep File ./gnb.log
#Log to console ${ConfigurationEnd}
${ConfigurationAckAfter}= Strip String ${ConfigurationAck}
Should Be Equal ${ConfigurationAckAfter}
Verify logs - Confiugration update - Ack Tag End
${ConfigurationAckEnd}= Grep File ./gnb.log
#Log to console ${ConfigurationEnd}
${ConfigurationAckEndAfterStrip}= Strip String ${ConfigurationAckEnd}
Should Be Equal ${ConfigurationAckEndAfterStrip}
Verify logs - e2mgr logs
${result} verifylogs.verify ${EXECDIR}
Should Be Equal As Strings ${result} True