Skip to content

Commit

Permalink
diff shell check fix and distro changed
Browse files Browse the repository at this point in the history
Signed-off-by: Isaac Matthews <[email protected]>
  • Loading branch information
Isaac-Matthews committed Nov 15, 2023
1 parent 3915d08 commit 249742d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion functional/iak-idevid-register-with-certificates/main.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ recommend:
duration: 5m
enabled: true
adjust:
- when: distro != fedora-39
- when: distro < fedora-39 or distro = centos-stream-9
enabled: false
10 changes: 5 additions & 5 deletions functional/iak-idevid-register-with-certificates/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ rlJournalStart
# Agent attempts to register and sends all the required information but the CA is not trusted
# so registration fails at IDevID verification
rlRun "limeWaitForAgentRegistration ${AGENT_ID}" 1
rlAssertGrep "ERROR - No Root CA matched IDevID Certificate" $(limeRegistrarLogfile)
rlAssertGrep "ERROR - No Root CA matched IDevID Certificate" "$(limeRegistrarLogfile)"
rlRun "limeStopAgent"
rlPhaseEnd

Expand All @@ -132,12 +132,12 @@ rlJournalStart
rlRun "limeStartAgent"
# Agent can now register with IDevID and IAK getting verified
rlRun "limeWaitForAgentRegistration ${AGENT_ID}"
rlAssertGrep "IDevID created" $(limeAgentLogfile)
rlAssertGrep "AK certified with IAK" $(limeAgentLogfile)
rlAssertGrep "IDevID created" "$(limeAgentLogfile)"
rlAssertGrep "AK certified with IAK" "$(limeAgentLogfile)"
# Check the registrar used the IDevID and IAK code block
rlAssertGrep "INFO - IDevID and IAK received" $(limeRegistrarLogfile)
rlAssertGrep "INFO - IDevID and IAK received" "$(limeRegistrarLogfile)"
# Check that the registrar verifies the registering AK against the IAK
rlAssertGrep "Agent $AGENT_ID AIK verified with IAK" $(limeRegistrarLogfile)
rlAssertGrep "Agent $AGENT_ID AIK verified with IAK" "$(limeRegistrarLogfile)"
rlPhaseEnd

rlPhaseStartCleanup "Clean up CA, keys and tpm2-openssl"
Expand Down

0 comments on commit 249742d

Please sign in to comment.