diff --git a/Wanda.DataCase.html b/Wanda.DataCase.html index 9d9c734b..5871a73c 100644 --- a/Wanda.DataCase.html +++ b/Wanda.DataCase.html @@ -208,9 +208,9 @@

errors_on(changeset)

-

A helper that transforms changeset errors into a map of messages.

assert {:error, changeset} = Accounts.create_user(%{password: "short"})
-assert "password is too short" in errors_on(changeset).password
-assert %{password: ["password is too short"]} = errors_on(changeset)
+

A helper that transforms changeset errors into a map of messages.

assert {:error, changeset} = Accounts.create_user(%{password: "short"})
+assert "password is too short" in errors_on(changeset).password
+assert %{password: ["password is too short"]} = errors_on(changeset)
diff --git a/Wanda.epub b/Wanda.epub index e86fcb3c..3e12e121 100644 Binary files a/Wanda.epub and b/Wanda.epub differ diff --git a/WandaWeb.HealthController.html b/WandaWeb.HealthController.html index 970218aa..8202de41 100644 --- a/WandaWeb.HealthController.html +++ b/WandaWeb.HealthController.html @@ -241,7 +241,7 @@

open_api_operation(action)

-
@spec open_api_operation(atom()) :: OpenApiSpex.Operation.t()
+
@spec open_api_operation(atom()) :: OpenApiSpex.Operation.t()
diff --git a/WandaWeb.Schemas.AcceptedExecutionResponse.html b/WandaWeb.Schemas.AcceptedExecutionResponse.html index 0ddc0580..5f65317c 100644 --- a/WandaWeb.Schemas.AcceptedExecutionResponse.html +++ b/WandaWeb.Schemas.AcceptedExecutionResponse.html @@ -170,7 +170,7 @@

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

@@ -249,7 +249,7 @@

schema()

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

diff --git a/WandaWeb.Schemas.BadRequest.html b/WandaWeb.Schemas.BadRequest.html index cfde5486..da8f7672 100644 --- a/WandaWeb.Schemas.BadRequest.html +++ b/WandaWeb.Schemas.BadRequest.html @@ -177,7 +177,7 @@

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

@@ -275,7 +275,7 @@

schema()

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

diff --git a/WandaWeb.Schemas.Health.html b/WandaWeb.Schemas.Health.html index a7234c8f..81c23085 100644 --- a/WandaWeb.Schemas.Health.html +++ b/WandaWeb.Schemas.Health.html @@ -177,7 +177,7 @@

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

@@ -275,7 +275,7 @@

schema()

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

diff --git a/WandaWeb.Schemas.NotFound.html b/WandaWeb.Schemas.NotFound.html index 48b88afe..4dcc7613 100644 --- a/WandaWeb.Schemas.NotFound.html +++ b/WandaWeb.Schemas.NotFound.html @@ -177,7 +177,7 @@

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

@@ -275,7 +275,7 @@

schema()

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

diff --git a/WandaWeb.Schemas.Ready.html b/WandaWeb.Schemas.Ready.html index a53b9b9a..7a711980 100644 --- a/WandaWeb.Schemas.Ready.html +++ b/WandaWeb.Schemas.Ready.html @@ -177,7 +177,7 @@

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

@@ -275,7 +275,7 @@

schema()

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

diff --git a/WandaWeb.Schemas.V1.Catalog.CatalogResponse.html b/WandaWeb.Schemas.V1.Catalog.CatalogResponse.html index ba235fec..3f5534f2 100644 --- a/WandaWeb.Schemas.V1.Catalog.CatalogResponse.html +++ b/WandaWeb.Schemas.V1.Catalog.CatalogResponse.html @@ -169,7 +169,7 @@

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

@@ -245,7 +245,7 @@

schema()

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

diff --git a/WandaWeb.Schemas.V1.Catalog.Check.html b/WandaWeb.Schemas.V1.Catalog.Check.html index 98ab1253..80859b24 100644 --- a/WandaWeb.Schemas.V1.Catalog.Check.html +++ b/WandaWeb.Schemas.V1.Catalog.Check.html @@ -169,7 +169,7 @@

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

@@ -258,7 +258,7 @@

schema()

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

diff --git a/WandaWeb.Schemas.V1.Execution.ExecutionResponse.html b/WandaWeb.Schemas.V1.Execution.ExecutionResponse.html index 1358b628..b18a2474 100644 --- a/WandaWeb.Schemas.V1.Execution.ExecutionResponse.html +++ b/WandaWeb.Schemas.V1.Execution.ExecutionResponse.html @@ -169,7 +169,7 @@

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

@@ -258,7 +258,7 @@

schema()

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

diff --git a/WandaWeb.Schemas.V1.Execution.ListExecutionsResponse.html b/WandaWeb.Schemas.V1.Execution.ListExecutionsResponse.html index 2a069851..063c9bdd 100644 --- a/WandaWeb.Schemas.V1.Execution.ListExecutionsResponse.html +++ b/WandaWeb.Schemas.V1.Execution.ListExecutionsResponse.html @@ -169,7 +169,7 @@

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

@@ -248,7 +248,7 @@

schema()

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

diff --git a/WandaWeb.Schemas.V1.Execution.StartExecutionRequest.html b/WandaWeb.Schemas.V1.Execution.StartExecutionRequest.html index 1fb1b3c5..c554bddc 100644 --- a/WandaWeb.Schemas.V1.Execution.StartExecutionRequest.html +++ b/WandaWeb.Schemas.V1.Execution.StartExecutionRequest.html @@ -169,7 +169,7 @@

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

@@ -251,7 +251,7 @@

schema()

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

diff --git a/WandaWeb.Schemas.V2.Execution.ExecutionResponse.html b/WandaWeb.Schemas.V2.Execution.ExecutionResponse.html index d83b4710..fa42aa0d 100644 --- a/WandaWeb.Schemas.V2.Execution.ExecutionResponse.html +++ b/WandaWeb.Schemas.V2.Execution.ExecutionResponse.html @@ -169,7 +169,7 @@

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

@@ -258,7 +258,7 @@

schema()

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

diff --git a/WandaWeb.Schemas.V2.Execution.ListExecutionsResponse.html b/WandaWeb.Schemas.V2.Execution.ListExecutionsResponse.html index 19a19403..121203b4 100644 --- a/WandaWeb.Schemas.V2.Execution.ListExecutionsResponse.html +++ b/WandaWeb.Schemas.V2.Execution.ListExecutionsResponse.html @@ -169,7 +169,7 @@

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

@@ -248,7 +248,7 @@

schema()

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

diff --git a/WandaWeb.Schemas.V2.Execution.StartExecutionRequest.html b/WandaWeb.Schemas.V2.Execution.StartExecutionRequest.html index 858821cd..7752299c 100644 --- a/WandaWeb.Schemas.V2.Execution.StartExecutionRequest.html +++ b/WandaWeb.Schemas.V2.Execution.StartExecutionRequest.html @@ -169,7 +169,7 @@

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

@@ -251,7 +251,7 @@

schema()

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

diff --git a/WandaWeb.Schemas.V3.Catalog.CatalogResponse.html b/WandaWeb.Schemas.V3.Catalog.CatalogResponse.html index a39ff315..8c25fe8a 100644 --- a/WandaWeb.Schemas.V3.Catalog.CatalogResponse.html +++ b/WandaWeb.Schemas.V3.Catalog.CatalogResponse.html @@ -169,7 +169,7 @@

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

@@ -245,7 +245,7 @@

schema()

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

diff --git a/WandaWeb.Schemas.V3.Catalog.Check.html b/WandaWeb.Schemas.V3.Catalog.Check.html index 203e7000..8e53c28a 100644 --- a/WandaWeb.Schemas.V3.Catalog.Check.html +++ b/WandaWeb.Schemas.V3.Catalog.Check.html @@ -169,7 +169,7 @@

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

@@ -258,7 +258,7 @@

schema()

-

Callback implementation for OpenApiSpex.Schema.schema/0.

+

Callback implementation for OpenApiSpex.Schema.schema/0.

diff --git a/WandaWeb.V1.CatalogController.html b/WandaWeb.V1.CatalogController.html index f7a56f4d..8d36befb 100644 --- a/WandaWeb.V1.CatalogController.html +++ b/WandaWeb.V1.CatalogController.html @@ -233,7 +233,7 @@

open_api_operation(action)

-
@spec open_api_operation(atom()) :: OpenApiSpex.Operation.t()
+
@spec open_api_operation(atom()) :: OpenApiSpex.Operation.t()
diff --git a/WandaWeb.V1.ExecutionController.html b/WandaWeb.V1.ExecutionController.html index 0750ab31..152201e7 100644 --- a/WandaWeb.V1.ExecutionController.html +++ b/WandaWeb.V1.ExecutionController.html @@ -279,7 +279,7 @@

open_api_operation(action)

-
@spec open_api_operation(atom()) :: OpenApiSpex.Operation.t()
+
@spec open_api_operation(atom()) :: OpenApiSpex.Operation.t()
diff --git a/WandaWeb.V2.CatalogController.html b/WandaWeb.V2.CatalogController.html index a694657f..cd916de7 100644 --- a/WandaWeb.V2.CatalogController.html +++ b/WandaWeb.V2.CatalogController.html @@ -233,7 +233,7 @@

open_api_operation(action)

-
@spec open_api_operation(atom()) :: OpenApiSpex.Operation.t()
+
@spec open_api_operation(atom()) :: OpenApiSpex.Operation.t()
diff --git a/WandaWeb.V2.ExecutionController.html b/WandaWeb.V2.ExecutionController.html index 60a05cbd..dcf5e9a7 100644 --- a/WandaWeb.V2.ExecutionController.html +++ b/WandaWeb.V2.ExecutionController.html @@ -279,7 +279,7 @@

open_api_operation(action)

-
@spec open_api_operation(atom()) :: OpenApiSpex.Operation.t()
+
@spec open_api_operation(atom()) :: OpenApiSpex.Operation.t()
diff --git a/WandaWeb.V3.CatalogController.html b/WandaWeb.V3.CatalogController.html index b4f861ee..ce5e819a 100644 --- a/WandaWeb.V3.CatalogController.html +++ b/WandaWeb.V3.CatalogController.html @@ -233,7 +233,7 @@

open_api_operation(action)

-
@spec open_api_operation(atom()) :: OpenApiSpex.Operation.t()
+
@spec open_api_operation(atom()) :: OpenApiSpex.Operation.t()
diff --git a/gatherers.html b/gatherers.html index 1da7c5ca..48950e13 100644 --- a/gatherers.html +++ b/gatherers.html @@ -136,7 +136,7 @@

Introduction

-

Gatherers can be thought of as functions:

Facts Gathering process in a nutshell

fact = gatherer(argument)

+

Gatherers can be thought of as functions:

Facts Gathering process in a nutshell

fact = gatherer(argument)

diff --git a/hack_on_wanda.html b/hack_on_wanda.html index b0409e1d..298183e5 100644 --- a/hack_on_wanda.html +++ b/hack_on_wanda.html @@ -142,7 +142,7 @@

Ensure Compatibility with asdf

-

asdf allows using specific versions of programming language tools that are known to be compatible with the project, rather than relying on the version that's installed globally on the host system.

In order to use asdf, follow the official asdf getting started guide.

Install all required asdf plugins from .tool-versions inside the web repository.

cut -d' ' -f1 .tool-versions|xargs -i asdf plugin add  {}

Set up the asdf environment

asdf install

+

asdf allows using specific versions of programming language tools that are known to be compatible with the project, rather than relying on the version that's installed globally on the host system.

In order to use asdf, follow the official asdf getting started guide.

Install all required asdf plugins from .tool-versions inside the web repository.

cut -d' ' -f1 .tool-versions|xargs -i asdf plugin add  {}

Set up the asdf environment

asdf install

diff --git a/readme.html b/readme.html index 82180403..0acde096 100644 --- a/readme.html +++ b/readme.html @@ -272,14 +272,14 @@

Often times knowing the returned value of the gathered facts is not a trivial thing, more during the implementation of new checks.

To better debug the fact gathering process and the returned values, the facts subcommand of trento-agent is a really useful tool. This command helps to see in the target itself what the gathered fact looks like. This is specially interesting when the returned value is a complex object or the target under test is modified and the check developer wants to see how this affects the gathered fact.

The command can be used as:

./trento-agent facts gather --gatherer corosync.conf --argument totem.token
 # To see the currently available gatherers and their names
-# ./trento-agent facts list

Which would return the next where the Value is the available value in the written check:

{
+# ./trento-agent facts list

Which would return the next where the Value is the available value in the written check:

{
   "Name": "totem.token",
   "CheckID": "",
-  "Value": {
+  "Value": {
     "Value": 30000
-  },
+  },
   "Error": null
-}

+}

diff --git a/specification.html b/specification.html index 5e993b55..f39b6ce1 100644 --- a/specification.html +++ b/specification.html @@ -521,12 +521,12 @@

- name: bar_expectation expect: facts.bar == values.expected_bar
  • Pipe the expression language functions vertically in order to provide a better visual output of the code.
    So this:

    expectations:
       - name: some_expectation
    -    expect: facts.foo.find(|item| item.id == "super").properties.find(|prop| prop.name == "good").value

    would be:

    expectations:
    +    expect: facts.foo.find(|item| item.id == "super").properties.find(|prop| prop.name == "good").value

    would be:

    expectations:
       - name: some_expectation
         expect: |
           facts.foo
    -      .find(|item| item.id == "super").properties
    -      .find(|prop| prop.name == "good").value

    Note: Keep in mind that some functions such as sort and drain run in-place modifications, so they cannot be piped.

  • + .find(|item| item.id == "super").properties + .find(|prop| prop.name == "good").value

    Note: Keep in mind that some functions such as sort and drain run in-place modifications, so they cannot be piped.