Skip to content

Commit

Permalink
Merge pull request #2814 from didier-wenzek/fix/broken-csr-test
Browse files Browse the repository at this point in the history
Fix broken test checking CSR content
  • Loading branch information
didier-wenzek authored Apr 5, 2024
2 parents 8df1b7d + 5a82975 commit 3d1b7f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Test Tags theme:mqtt theme:aws

Publish events to subscribed topic
${timestamp}= Get Unix Timestamp
Execute Command tedge mqtt pub te/device/main///e/event-type '{"text": "somone logged-in"}'
Execute Command tedge mqtt pub te/device/main///e/event-type '{"text": "someone logged-in"}'
Should Have MQTT Messages aws/td/device:main/e/event-type

Publish measurements to unsubscribed topic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ Generate CSR without an existing certificate and private key
Execute Command sudo tedge cert create-csr --device-id test-user

${output_csr_subject}= Execute Command
... openssl req -noout -subject -in /etc/tedge/device-certs/tedge.csr
Should Contain ${output_csr_subject} subject=CN = test-user
... openssl req -noout -subject -in /etc/tedge/device-certs/tedge.csr | tr -d ' '
Should Contain ${output_csr_subject} subject=CN=test-user

${output_private_key_md5}= Execute Command
... openssl pkey -in /etc/tedge/device-certs/tedge-private-key.pem -pubout | openssl md5
Expand Down

0 comments on commit 3d1b7f9

Please sign in to comment.