Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Airnode v0.14.1 snapshot packages #1980

Closed
Tracked by #1976
dcroote opened this issue Mar 27, 2024 · 1 comment
Closed
Tracked by #1976

Test Airnode v0.14.1 snapshot packages #1980

dcroote opened this issue Mar 27, 2024 · 1 comment
Assignees

Comments

@dcroote
Copy link
Contributor

dcroote commented Mar 27, 2024

No description provided.

@dcroote dcroote self-assigned this Mar 27, 2024
@dcroote dcroote mentioned this issue Mar 27, 2024
10 tasks
@dcroote
Copy link
Contributor Author

dcroote commented Mar 28, 2024

Ran yarn test:release and entered snapshot-v0.14.1 as the version to test. Everything passed. I used AWS for deployment and ethereum-sepolia-testnet for the chain.

Separately, to test the ability to skip the API call with pre/post-processing V2 (the point of releasing v0.14.1), I successfully used the following ois field within config.json:

  "ois": [
    {
      "oisFormat": "2.3.2",
      "title": "CoinGecko basic request",
      "version": "1.0.0",
      "apiSpecifications": {
        "servers": [
          {
            "url": "https://api.coingecko.com/api-call-should-be-skipped"
          }
        ],
        "paths": {
          "/coins/": {
            "get": {
              "parameters": []
            }
          }
        },
        "components": {
          "securitySchemes": {}
        },
        "security": {}
      },
      "endpoints": [
        {
          "name": "coinMarketData",
          "fixedOperationParameters": [],
          "postProcessingSpecificationV2": {
            "environment": "Node",
            "timeoutMs": 5000,
            "value": "({ response }) => { return { response: {myVal: 5}}; }"
          },
          "reservedParameters": [
            {
              "name": "_type",
              "fixed": "int256"
            },
            {
              "name": "_path",
              "fixed": "myVal"
            },
            {
              "name": "_times",
              "fixed": "2"
            }
          ],
          "parameters": []
        }
      ]
    }
  ],

which returned the expected value of 10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant