Skip to content

Commit 9348020

Browse files
committed
chore(test): bump libs
Signed-off-by: Yvonnick Esnault <yvonnick.esnault@ovhcloud.com>
1 parent 9aaece4 commit 9348020

5 files changed

Lines changed: 117 additions & 101 deletions

File tree

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ Venom is a CLI (Command Line Interface) that aims to create, manage and run your
88
[![Discussions](https://img.shields.io/badge/Discussions-OVHcloud-brightgreen)](https://github.com/ovh/venom/discussions)
99
<a href="https://gitpod.io/#https://github.com/ovh/venom"><img src="https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?logo=gitpod" alt="Contribute with Gitpod"/></a>
1010

11-
# Table of content
11+
# Table of contents
1212

1313
- [🐍 Venom](#-venom)
14-
- [Table of content](#table-of-content)
14+
- [Table of contents](#table-of-contents)
1515
- [Overview](#overview)
1616
- [Installing](#installing)
1717
- [Install from binaries](#install-from-binaries)
@@ -61,10 +61,10 @@ Venom is a CLI (Command Line Interface) that aims to create, manage and run your
6161
# Overview
6262

6363
Venom allows you to handle integration tests the same way you code your application.
64-
With Venom, testcases will be managed as code: the readability of the tests means that the tests are part of the code reviews. Thanks to that, write and execute testsuites become easier for developers and teams.
64+
With Venom, testcases will be managed as code: the readability of the tests means that the tests are part of the code reviews. Thanks to that, writing and executing testsuites becomes easier for developers and teams.
6565

66-
Concretely, you have to write testsuite in a YAML file.
67-
Venom run executors (scripts, HTTP Request, web, IMAP, etc.) and apply assertions.
66+
Concretely, you have to write a testsuite in a YAML file.
67+
Venom runs executors (scripts, HTTP Request, web, IMAP, etc.) and applies assertions.
6868
It can also generate xUnit result files.
6969

7070
<img src="./venom.gif" alt="Venom Demonstration">
@@ -73,7 +73,7 @@ It can also generate xUnit result files.
7373

7474
## Install from binaries
7575

76-
You can find latest binary release from: https://github.com/ovh/venom/releases/latest/.
76+
You can find the latest binary release at: https://github.com/ovh/venom/releases/latest/.
7777

7878
Example for Linux:
7979

@@ -107,7 +107,7 @@ Version venom: v1.2.0
107107

108108
# Docker image
109109

110-
Instead of installing (and updating) Venom locally, Venom can be started as a Docker image with following commands.
110+
Instead of installing (and updating) Venom locally, Venom can be started as a Docker image with the following commands.
111111

112112
Considering your testsuites are in `./tests` directory in your current directory and your test library is under `./tests/lib`, the results will be available under the `results` directory.
113113

@@ -292,7 +292,7 @@ lib_dir: lib
292292
verbosity: 3
293293
```
294294
295-
Please note that the command line flags overrides the configuration file. The configuration file overrides the environment variables.
295+
Please note that the command line flags override the configuration file. The configuration file overrides the environment variables.
296296
297297
298298
# Concepts
@@ -302,7 +302,7 @@ Please note that the command line flags overrides the configuration file. The co
302302
A test suite is a collection of test cases that are intended to be used to test a software program to show that it has a specified set of behaviors.
303303
A test case is a specification of the inputs, execution conditions, testing procedure, and expected results that define a single test to be executed to achieve a particular software testing objective, such as to exercise a particular program path or to verify compliance with a specific requirement.
304304
305-
In `venom` the testcases are executed sequentially within a testsuite. Each testcase is an ordered set of steps. Each step is based on an `executor` that enable some specific kind of behavior.
305+
In `venom` the testcases are executed sequentially within a testsuite. Each testcase is an ordered set of steps. Each step is based on an `executor` that enables some specific kind of behavior.
306306

307307
In `venom` a testsuite is written in one `YAML` file respecting the following structure:
308308

@@ -414,12 +414,12 @@ testcases:
414414
- result.alljson.hello ShouldContainSubstring World
415415
```
416416

417-
Notice the variable `alljson`. All variables declared in output are automatically converted in a json format with the suffix `json`. In the example above, two implicit variables are available: `displayjson.hello` and `alljson`.
417+
Notice the variable `alljson`. All variables declared in output are automatically converted into JSON format with the suffix `json`. In the example above, two implicit variables are available: `displayjson.hello` and `alljson`.
418418

419-
Venom will load user's executors from the directory `lib/` relative to the testsuite path. You add executors source path using the flag `--lib-dir`.
419+
Venom will load user-defined executors from the directory `lib/` relative to the testsuite path. You can add executor source paths using the flag `--lib-dir`.
420420
Note that all folders listed with `--lib-dir` will be scanned recursively to find `.yml` files as user executors.
421421

422-
The user defined executors work with templating, you can check the templating result in `venom.log`. In this file, if you see an error as `error converting YAML to JSON: yaml: line 14: found unexpected end of stream`, you probably need to adjust indentation with the templating function `indent`.
422+
The user defined executors work with templating, you can check the templating result in `venom.log`. In this file, if you see an error such as `error converting YAML to JSON: yaml: line 14: found unexpected end of stream`, you probably need to adjust indentation with the templating function `indent`.
423423

424424
Example:
425425

@@ -552,7 +552,7 @@ More examples are available [here](https://github.com/ovh/venom/tree/master/vari
552552
To be able to reuse a property from a teststep in a following testcase or step, you have to extract the variable, as the following example.
553553

554554
After the first step execution, `venom` extracts a value using a regular expression `foo with a ([a-z]+) here` from the content of the `result.systemout` property returned by the `executor`.
555-
Then this variable can be reused in another test, with the name `testA.myvariable` with `testA` corresponding to the name of the testcase. A default value could also be supplied if the variable can't be extracted from the output, which can commonly happen when parsing json output.
555+
Then this variable can be reused in another test, with the name `testA.myvariable` with `testA` corresponding to the name of the testcase. A default value could also be supplied if the variable can't be extracted from the output, which can commonly happen when parsing JSON output.
556556

557557
```yaml
558558
name: MyTestSuite
@@ -715,7 +715,7 @@ You may also include additional steps like a regular user defined executor.
715715
User assertions are executed in an entirely clean context, containing only the following variables:
716716
- `a`: the left operand
717717
- `b`: the (first) right operand
718-
- `argv`: the rights operands
718+
- `argv`: the right operands
719719

720720
If you need to be compatible with the `input` syntax of user defined executors, you could use the `argv` as the default value and access these through the regular `input.*` syntax.
721721
```yaml
@@ -816,7 +816,7 @@ $ venom run --format=xml --output-dir="."
816816
$ venom run --output-dir="." --html-report
817817
```
818818

819-
Reports exported in XML can be visualized with a xUnit/jUnit Viewer, directly in your favorite CI/CD stack for example in order to see results run after run.
819+
Reports exported in XML can be visualized with an xUnit/jUnit Viewer, directly in your favorite CI/CD stack for example in order to see results run after run.
820820

821821
# Advanced usage
822822

@@ -846,7 +846,7 @@ testcases:
846846
- script: cat exec/testa.json
847847
info: "the value of result.systemoutjson is {{.result.systemoutjson}}"
848848
assertions:
849-
- result.systemoutjson.foo ShouldContainSubstrin bar
849+
- result.systemoutjson.foo ShouldContainSubstring bar
850850
```
851851

852852
```bash
@@ -933,7 +933,7 @@ testcases:
933933

934934
It is possible to iterate over data using `range` attribute.
935935

936-
The following data types are supported, each exposing contexted variables `.index`, `.key` and `.value`:
936+
The following data types are supported, each exposing contextual variables `.index`, `.key` and `.value`:
937937

938938
- An array where each value will be iterated over (`[]interface{}`)
939939
- `.index`/`.key`: current iteration index
@@ -1074,7 +1074,7 @@ Our awesome contributors:
10741074

10751075
# License
10761076

1077-
Copyright 2022 OVH SAS
1077+
Copyright 2026 OVH SAS
10781078

10791079
Licensed under the Apache License, Version 2.0 (the "License");
10801080
you may not use this file except in compliance with the License.

go.mod

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ require (
4444
github.com/stretchr/testify v1.11.1
4545
github.com/yesnault/go-imap v0.0.0-20160710142244-eb9bbb66bd7b
4646
go.mongodb.org/mongo-driver v1.12.1
47-
golang.org/x/crypto v0.49.0
48-
golang.org/x/exp v0.0.0-20260312153236-7ab1446f8b90
49-
golang.org/x/net v0.52.0
50-
google.golang.org/grpc v1.79.3
47+
golang.org/x/crypto v0.50.0
48+
golang.org/x/exp v0.0.0-20260410095643-746e56fc9e2f
49+
golang.org/x/net v0.53.0
50+
google.golang.org/grpc v1.80.0
5151
gopkg.in/yaml.v2 v2.4.0
5252
gopkg.in/yaml.v3 v3.0.1
5353
modernc.org/sqlite v1.26.0
@@ -63,8 +63,8 @@ require (
6363
github.com/go-logr/stdr v1.2.2 // indirect
6464
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect
6565
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
66-
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.67.0 // indirect
67-
go.opentelemetry.io/otel/metric v1.42.0 // indirect
66+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.68.0 // indirect
67+
go.opentelemetry.io/otel/metric v1.43.0 // indirect
6868
go.uber.org/multierr v1.11.0 // indirect
6969
go.uber.org/zap v1.27.0 // indirect
7070
golang.org/x/oauth2 v0.36.0 // indirect
@@ -118,14 +118,14 @@ require (
118118
github.com/xdg-go/scram v1.1.2 // indirect
119119
github.com/xdg-go/stringprep v1.0.4 // indirect
120120
github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a // indirect
121-
go.opentelemetry.io/otel v1.42.0 // indirect
122-
go.opentelemetry.io/otel/trace v1.42.0 // indirect
123-
golang.org/x/mod v0.34.0 // indirect
121+
go.opentelemetry.io/otel v1.43.0 // indirect
122+
go.opentelemetry.io/otel/trace v1.43.0 // indirect
123+
golang.org/x/mod v0.35.0 // indirect
124124
golang.org/x/sync v0.20.0 // indirect
125-
golang.org/x/sys v0.42.0 // indirect
126-
golang.org/x/text v0.35.0 // indirect
127-
golang.org/x/tools v0.43.0 // indirect
128-
google.golang.org/genproto/googleapis/rpc v0.0.0-20260319201613-d00831a3d3e7 // indirect
125+
golang.org/x/sys v0.43.0 // indirect
126+
golang.org/x/text v0.36.0 // indirect
127+
golang.org/x/tools v0.44.0 // indirect
128+
google.golang.org/genproto/googleapis/rpc v0.0.0-20260420184626-e10c466a9529 // indirect
129129
google.golang.org/protobuf v1.36.11 // indirect
130130
gopkg.in/ini.v1 v1.67.0 // indirect
131131
lukechampine.com/uint128 v1.3.0 // indirect

0 commit comments

Comments
 (0)