Skip to content

Commit

Permalink
add yaml test
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelandis committed Dec 19, 2023
1 parent f81420c commit 327aea7
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
}
]
},
"params":{}
"params":{
"include_defaults":{
"type":"boolean",
"description":"Whether to include the JRE default certificates (assuming any SSL context could use the default)"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,20 @@
- match: { $body.0.format: "PEM" }
- match: { $body.0.has_private_key: true }
- match: { $body.0.issuer: "CN=Elasticsearch Test Node, OU=elasticsearch, O=org" }


- do:
ssl.certificates:
include_defaults: true
# in practice there are dozens of default but only ensure there are at least 10
- exists: $body.0
- exists: $body.1
- exists: $body.2
- exists: $body.3
- exists: $body.4
- exists: $body.5
- exists: $body.6
- exists: $body.7
- exists: $body.8
- exists: $body.9

Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
}
]
},
"params":{}
"params":{
"include_defaults":{
"type":"boolean",
"description":"Whether to include the JRE default certificates (assuming any SSL context could use the default)"
}
}
}
}

0 comments on commit 327aea7

Please sign in to comment.