mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-23 00:44:55 +03:00
Fix various typos.
This commit is contained in:
parent
56c7aa7e79
commit
b8783d365b
@ -52,7 +52,7 @@ function usage(){
|
||||
echo
|
||||
echo "Usage: $(basename "$0") <package file> [Options]..."
|
||||
echo
|
||||
echo " Example: this comand outputs hurl_4.2.0_amd64.deb anatomy"
|
||||
echo " Example: this command outputs hurl_4.2.0_amd64.deb anatomy"
|
||||
echo
|
||||
echo " $ $(basename "$0") hurl_4.2.0_amd64.deb"
|
||||
echo
|
||||
|
@ -145,10 +145,10 @@ main() {
|
||||
sed "s/ Updating //g" |
|
||||
sed "s/->//g" > "${updated_lock_file}"
|
||||
while read -r crate actual_version last_version ; do
|
||||
formated_actual_version=$(echo "${actual_version}" | (grep --only-matching --extended-regexp "[0-9].*.[0-9].*.[0-9]" || true))
|
||||
formated_last_version=$(echo "${last_version}" | (grep --only-matching --extended-regexp "[0-9].*.[0-9].*.[0-9]" || true))
|
||||
formatted_actual_version=$(echo "${actual_version}" | (grep --only-matching --extended-regexp "[0-9].*.[0-9].*.[0-9]" || true))
|
||||
formatted_last_version=$(echo "${last_version}" | (grep --only-matching --extended-regexp "[0-9].*.[0-9].*.[0-9]" || true))
|
||||
crate_url="${crates_api_root_url}/${crate}"
|
||||
echo "- ${crate} ${formated_actual_version} ${color_blue}updated to ${formated_last_version}${color_reset}"
|
||||
echo "- ${crate} ${formatted_actual_version} ${color_blue}updated to ${formatted_last_version}${color_reset}"
|
||||
get_crate_github_release_body "${crate_url}" "${last_version}"
|
||||
|
||||
done < "${updated_lock_file}"
|
||||
|
@ -183,7 +183,8 @@ echo <hurl-bot github token> | docker login ghcr.io --username hurl-bot --passwo
|
||||
docker push ghcr.io/"${organisation}"/hurl:arm64-"${docker_build_tag}"
|
||||
```
|
||||
|
||||
# Create image containing builded amd64 and arm64 images
|
||||
# Create image containing built amd64 and arm64 images
|
||||
|
||||
## Create tag and latest manifest
|
||||
|
||||
```
|
||||
|
@ -4,13 +4,13 @@
|
||||
|
||||
Asserts are used to test various properties of an HTTP response. Asserts can be implicits (such as version, status,
|
||||
headers) or explicit within an `[Asserts]` section. The delimiter of the request / response is `HTTP <STATUS-CODE>`:
|
||||
after this delimiter, you'll find the implicit asserts, then an `[Asserts]` section with all the explicits checks.
|
||||
after this delimiter, you'll find the implicit asserts, then an `[Asserts]` section with all the explicit checks.
|
||||
|
||||
|
||||
```hurl
|
||||
GET https://api/example.org/cats
|
||||
HTTP 200
|
||||
Content-Type: application/json; charset=utf-8 # Implicit assert on Content-Type Hedaer
|
||||
Content-Type: application/json; charset=utf-8 # Implicit assert on Content-Type Header
|
||||
[Asserts] # Explicit asserts section
|
||||
bytes count == 120
|
||||
header "Content-Type" contains "utf-8"
|
||||
|
@ -3,7 +3,7 @@
|
||||
## Definition
|
||||
|
||||
[Captures] and [asserts] share a common structure: query. A query is used to extract data from an HTTP response; this data
|
||||
can come from the HTTP response body, the HTTP response headers or from the HTTP meta-informations (like `duration` for instance)...
|
||||
can come from the HTTP response body, the HTTP response headers or from the HTTP meta-information (like `duration` for instance)...
|
||||
|
||||
In this example, the query __`jsonpath "$.books[0].name"`__ is used in a capture to save data and in an assert to test
|
||||
the HTTP response body.
|
||||
|
@ -21,8 +21,8 @@ use lazy_static::lazy_static;
|
||||
|
||||
// HTML5 named character references
|
||||
//
|
||||
// Generated from https://html.spec.whatwg.org/entities.json and
|
||||
// https://html.spec.whatwg.org/multipage/named-characters.html.
|
||||
// Generated from <https://html.spec.whatwg.org/entities.json> and
|
||||
// <https://html.spec.whatwg.org/multipage/named-characters.html>.
|
||||
// Map HTML5 named character references to the equivalent Unicode character(s).
|
||||
lazy_static! {
|
||||
pub static ref HTML5_ENTITIES: HashMap<&'static str, &'static str> = {
|
||||
|
@ -19,7 +19,7 @@
|
||||
use crate::http::{Request, Response, Timings};
|
||||
|
||||
/// Holds an HTTP request and the corresponding HTTP response.
|
||||
/// The request and responses are the runtime, evaluated datas created by an HTTP exchange.
|
||||
/// The request and responses are the runtime, evaluated data created by an HTTP exchange.
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
pub struct Call {
|
||||
/// The real HTTP request (vs the specified request in a Hurl file source)
|
||||
|
@ -25,7 +25,7 @@ use crate::util::path::ContextDir;
|
||||
use crate::util::term::Stdout;
|
||||
use hurl_core::ast::{Pos, SourceInfo};
|
||||
|
||||
/// Represents the output of write operation: can be either a file or standard ouput.
|
||||
/// Represents the output of write operation: can be either a file or standard output.
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
pub enum Output {
|
||||
/// Write to file.
|
||||
|
@ -160,8 +160,8 @@ pub enum AssertResult {
|
||||
|
||||
/// Represents a [capture](https://hurl.dev/docs/capturing-response.html) of an HTTP response.
|
||||
///
|
||||
/// Captures are datas extracted by querying the HTTP response. Captures can be part of the response
|
||||
/// body, headers, cookies etc... Captures can be used to re-inject datas in next HTTP requests.
|
||||
/// Captures are data extracted by querying the HTTP response. Captures can be part of the response
|
||||
/// body, headers, cookies etc... Captures can be used to re-inject data in next HTTP requests.
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
pub struct CaptureResult {
|
||||
/// Name of the capture.
|
||||
|
@ -379,7 +379,7 @@ fn object_element(reader: &mut Reader) -> ParseResult<JsonObjectElement> {
|
||||
let save = reader.state.pos;
|
||||
let space2 = whitespace(reader);
|
||||
// Checks if there is no element after ':'. In this case, a special error must be reported
|
||||
// because this is a common occurance.
|
||||
// because this is a common occurrence.
|
||||
let next_char = reader.peek();
|
||||
// Comparing to None because `next_char` can be EOF.
|
||||
if next_char == Some('}') || next_char.is_none() {
|
||||
|
@ -386,12 +386,12 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_multiline_string_failed() {
|
||||
let datas = [
|
||||
let data = [
|
||||
"```hexaaa\nline1\nline2\nline3\n```",
|
||||
"```aaa\nline1\nline2\nline3\n```",
|
||||
];
|
||||
|
||||
for text in datas.iter() {
|
||||
for text in data.iter() {
|
||||
let mut reader = Reader::new(text);
|
||||
assert!(multiline_string(&mut reader).is_err());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user