Skip to content

Commit

Permalink
fix(test): update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
korifey91 committed Apr 11, 2024
1 parent 0839c64 commit 47b462b
Show file tree
Hide file tree
Showing 2 changed files with 184 additions and 3 deletions.
141 changes: 141 additions & 0 deletions test/components/__snapshots__/AsyncAPI.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,14 @@ The Smartylighting Streetlights API allows you to remotely manage the city light
* [Servers](#servers)
* [production](#production-server)
* [Operations](#operations)
* [RECEIVE smartylighting/streetlights/1/0/event/{streetlightId}/lighting/measured](#receive-smartylightingstreetlights10eventstreetlightidlightingmeasured-operation)
* [SEND smartylighting/streetlights/1/0/action/{streetlightId}/turn/on](#send-smartylightingstreetlights10actionstreetlightidturnon-operation)
* [SEND smartylighting/streetlights/1/0/action/{streetlightId}/turn/off](#send-smartylightingstreetlights10actionstreetlightidturnoff-operation)
* [SEND smartylighting/streetlights/1/0/action/{streetlightId}/dim](#send-smartylightingstreetlights10actionstreetlightiddim-operation)
* [SEND some.channel](#send-somechannel-operation)
* [REPLY someRequest](#reply-somerequest-operation)
* [REQUEST someRequest](#request-somerequest-operation)
## Servers
Expand Down Expand Up @@ -438,6 +446,7 @@ On multiple lines.
*Inform about environmental lighting conditions of a particular streetlight.*
* Message ID: \`receiveLightMeasurement.message\`
* Content type: [application/json](https://www.iana.org/assignments/media-types/application/json)
##### Headers
Expand Down Expand Up @@ -508,6 +517,7 @@ On multiple lines.
*Command a particular streetlight to turn the lights on or off.*
* Message ID: \`turnOn.message\`
* Content type: [application/json](https://www.iana.org/assignments/media-types/application/json)
##### Headers
Expand Down Expand Up @@ -568,6 +578,7 @@ On multiple lines.
*Command a particular streetlight to turn the lights on or off.*
* Message ID: \`turnOn.message\`
* Content type: [application/json](https://www.iana.org/assignments/media-types/application/json)
##### Headers
Expand Down Expand Up @@ -628,6 +639,7 @@ On multiple lines.
*Command a particular streetlight to dim the lights.*
* Message ID: \`dimLight.message\`
* Content type: [application/json](https://www.iana.org/assignments/media-types/application/json)
##### Headers
Expand Down Expand Up @@ -675,6 +687,7 @@ Sending **one of** the following messages:
#### Message \`Success\`
* Message ID: \`subscribe.message.0\`
* Content type: [application/json](https://www.iana.org/assignments/media-types/application/json)
##### Payload
Expand All @@ -695,6 +708,7 @@ Sending **one of** the following messages:
#### Message \`Failure\`
* Message ID: \`subscribe.message.1\`
* Content type: [application/json](https://www.iana.org/assignments/media-types/application/json)
##### Payload
Expand All @@ -715,5 +729,132 @@ Sending **one of** the following messages:
\\"errorMessage\\": \\"Something messed up\\"
}
}
\`\`\`
### REPLY \`someRequest\` Operation
* Operation ID: \`createSomeRequest\`
##### Operation tags
| Name | Description | Documentation |
|---|---|---|
| response-reply | - | - |
#### Message \`SomeRequestReceive\`
* Message ID: \`SomeRequestReceive\`
* Content type: [application/json](https://www.iana.org/assignments/media-types/application/json)
* Correlation ID: \`$message.payload#/replyTo\`
##### Payload
| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| (root) | object | - | - | - | **additional properties are allowed** |
| someId | integer | - | - | - | - |
| someText | string | - | examples (\`\\"some important text\\"\`) | - | - |
> Examples of payload _(generated)_
\`\`\`json
{
\\"someId\\": 0,
\\"someText\\": \\"some important text\\"
}
\`\`\`
#### Response information
#### Operation reply address information
* Operation reply address location: \`$message.payload#/replyTo\`
#### Message \`SomeRequestSend\`
* Message ID: \`SomeRequestSend\`
* Content type: [application/json](https://www.iana.org/assignments/media-types/application/json)
* Correlation ID: \`$message.payload#/replyTo\`
##### Payload
| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| (root) | object | - | - | - | **additional properties are allowed** |
| someId | integer | - | - | - | - |
> Examples of payload _(generated)_
\`\`\`json
{
\\"someId\\": 0
}
\`\`\`
### REQUEST \`someRequest\` Operation
* Operation ID: \`createSomeSendRequest\`
##### Operation tags
| Name | Description | Documentation |
|---|---|---|
| request-reply | - | - |
#### Message \`SomeRequestSend\`
* Message ID: \`SomeRequestReceive\`
* Content type: [application/json](https://www.iana.org/assignments/media-types/application/json)
* Correlation ID: \`$message.payload#/replyTo\`
##### Payload
| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| (root) | object | - | - | - | **additional properties are allowed** |
| someId | integer | - | - | - | - |
> Examples of payload _(generated)_
\`\`\`json
{
\\"someId\\": 0
}
\`\`\`
#### Request information
#### Operation reply address information
* Operation reply address location: \`$message.payload#/replyTo\`
#### Message \`SomeRequestReceive\`
* Message ID: \`SomeSendRequestReply\`
* Content type: [application/json](https://www.iana.org/assignments/media-types/application/json)
* Correlation ID: \`$message.payload#/replyTo\`
##### Payload
| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| (root) | object | - | - | - | **additional properties are allowed** |
| someId | integer | - | - | - | - |
| someText | string | - | examples (\`\\"some important text\\"\`) | - | - |
> Examples of payload _(generated)_
\`\`\`json
{
\\"someId\\": 0,
\\"someText\\": \\"some important text\\"
}
\`\`\`"
`;
46 changes: 43 additions & 3 deletions test/components/__snapshots__/Operations.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ This channel is used to exchange messages about users signing up
|---|---|---|---|---|---|
| groupId | string | - | allowed (\`\\"myGroupId\\"\`) | - | - |
| clientId | string | - | allowed (\`\\"myClientId\\"\`) | - | - |
| bindingVersion | - | - | \`\\"0.1.0\\"\` | - | - |
| bindingVersion | - | - | \`\\"0.4.0\\"\` | - | - |
#### Message \`SomeMessage\`
Expand Down Expand Up @@ -265,7 +265,27 @@ A longer description of the message
#### Response information
* should be done to channel: \`user/signedup\`"
* reply should be done to channel: \`user/signedup\`
#### Message \`SomeReplyMessage\`
A longer description of the message
##### Payload
| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| (root) | object | - | - | - | **additional properties are allowed** |
| user | string | - | - | - | - |
| signup | number | - | - | - | - |
> Examples of payload _(generated)_
\`\`\`json
{
\\"user\\": \\"string\\",
\\"signup\\": 0
}
\`\`\`"
`;

exports[`Operations component for AsyncAPI v3 should render request operation 1`] = `
Expand Down Expand Up @@ -313,7 +333,27 @@ A longer description of the message
#### Request information
* should be done to channel: \`user/signedup\`"
* request should be done to channel: \`user/signedup\`
#### Message \`SomeReplyMessage\`
A longer description of the message
##### Payload
| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| (root) | object | - | - | - | **additional properties are allowed** |
| user | string | - | - | - | - |
| signup | number | - | - | - | - |
> Examples of payload _(generated)_
\`\`\`json
{
\\"user\\": \\"string\\",
\\"signup\\": 0
}
\`\`\`"
`;

exports[`Operations component for AsyncAPI v3 should render send operation 1`] = `
Expand Down

0 comments on commit 47b462b

Please sign in to comment.