api3dao / airnode

Airnode monorepo
https://docs.api3.org/
MIT License
165 stars 72 forks source link

Test Airnode v0.14.1 snapshot packages #1980

Closed dcroote closed 6 months ago

dcroote commented 6 months ago

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.