---
  test_name: Hivemind bridge_api.normalize_post patterns test

  marks:
    - patterntest # TODO: multistage test since condenser_api.get_content is the source of parameter for the main call
                  # pattern made with "post" param made by fat node (since it was what was expected in parameter and crashed when it was taken from hivemind)
                  # now the result is basically the same as get_post

  includes:
    - !include ../../common.yaml

  stages:
    - name: normalize_post
      request:
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "bridge.normalize_post"
          params: {"post":{
  "active_votes": [
    {
      "percent": "100",
      "reputation": 0,
      "rshares": 375241,
      "voter": "dantheman"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 886132,
      "voter": "mr11acdee"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 5100,
      "voter": "steemit78"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 1259167,
      "voter": "anonymous"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 318519,
      "voter": "hello"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 153384,
      "voter": "world"
    },
    {
      "percent": "-100",
      "reputation": 0,
      "rshares": -936400,
      "voter": "ned"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 59412,
      "voter": "fufubar1"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 14997,
      "voter": "anonymous1"
    },
    {
      "percent": "100",
      "reputation": 0,
      "rshares": 1441,
      "voter": "red"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 551390835500,
      "voter": "liondani"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 82748,
      "voter": "roadscape"
    },
    {
      "percent": "100",
      "reputation": 0,
      "rshares": 10772,
      "voter": "xeroc"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 7685088000,
      "voter": "markopaasila"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 454510724,
      "voter": "tshering-tamang"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 681946946,
      "voter": "romangelsi"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 504895891,
      "voter": "dedmatvey"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 498863058,
      "voter": "joelinux"
    },
    {
      "percent": "0",
      "reputation": 0,
      "rshares": 9590417,
      "voter": "piranhax"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 473258270,
      "voter": "ned-reddit-login"
    },
    {
      "percent": "3600",
      "reputation": 0,
      "rshares": 0,
      "voter": "fernando-sanz"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 425903066,
      "voter": "gekko"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 381805870,
      "voter": "gilang-ramadhan"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 392459059,
      "voter": "kamvreto"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 422984262,
      "voter": "acidyo"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 47179379651,
      "voter": "tosch"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 7831667988,
      "voter": "klye"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 1019950749,
      "voter": "coar"
    },
    {
      "percent": "1509",
      "reputation": 0,
      "rshares": 1746058458,
      "voter": "murh"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 22639073725,
      "voter": "drinkzya"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 0,
      "voter": "hien-tran"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 742566481,
      "voter": "patrick-g"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 40624969,
      "voter": "ben99"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 1742755097,
      "voter": "sunshinecrypto"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 108855472,
      "voter": "kingtylervvs"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 485112237,
      "voter": "marinabogumil"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 917398502,
      "voter": "decrypt"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 5067187498,
      "voter": "senseiteekay"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 5154897955,
      "voter": "r33drum"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 5033902237,
      "voter": "cryptosi"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 1037079223,
      "voter": "condra"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 233032838,
      "voter": "jearson"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 240809500,
      "voter": "tritium"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 123321995,
      "voter": "allmonitors"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 226074637,
      "voter": "artjedi"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 931542394,
      "voter": "anduweb"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 2292983350,
      "voter": "inertia"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 128561059,
      "voter": "maximkichev"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 183438273,
      "voter": "a9inchcock"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 266262926,
      "voter": "desmonid"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 71498008,
      "voter": "madhatting"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 23726644841,
      "voter": "ubg"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 3741408303,
      "voter": "royaltiffany"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 131577259,
      "voter": "gribgo"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 12371398765,
      "voter": "deanliu"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 28907874049,
      "voter": "orm"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 528988007,
      "voter": "qonq99"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 129537329,
      "voter": "rd7783"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 615020728,
      "voter": "slava"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 0,
      "voter": "flyboyzombie"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 100102503,
      "voter": "sictransitgloria"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 95219365,
      "voter": "curator"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 232295871,
      "voter": "dubovoy"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 0,
      "voter": "solos"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 96945805,
      "voter": "creatorgalaxy"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 99813231,
      "voter": "trigonice29"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 0,
      "voter": "blysards"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 3721016208,
      "voter": "uwe69"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 1279854,
      "voter": "nigmat"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 13974353753,
      "voter": "magicmonk"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 4968585456,
      "voter": "satoshifpv"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 1660613178,
      "voter": "naturalista"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 10847083143,
      "voter": "metrox"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 18340928,
      "voter": "bestmalik"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 59563315,
      "voter": "kolyan31"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 710989138,
      "voter": "romancs"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 59366614,
      "voter": "luke490"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 58762473,
      "voter": "bro66"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 201822591,
      "voter": "future24"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 58623688,
      "voter": "mythras"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 56536509,
      "voter": "imarealboy777"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 0,
      "voter": "matrixdweller"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 48299362,
      "voter": "smartguylabcoat"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 59157099,
      "voter": "mabiturm"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 48283979,
      "voter": "captainamerica"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 54761612,
      "voter": "edbriv"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 865125771,
      "voter": "rittr"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 92614447,
      "voter": "jelloducky"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 52740989,
      "voter": "tcstix"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 49467477,
      "voter": "friedwater"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 57366185,
      "voter": "denisdiaz"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 132070449,
      "voter": "loganarchy"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 48811442,
      "voter": "love-spirit-nerd"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 51549585,
      "voter": "dikanevn"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 54017869,
      "voter": "zelious"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 50129944,
      "voter": "freebornangel"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 53196086,
      "voter": "f1111111"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 0,
      "voter": "anomaly"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 52394017140,
      "voter": "jack8831"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 0,
      "voter": "buckland"
    },
    {
      "percent": "10000",
      "reputation": 0,
      "rshares": 0,
      "voter": "goldmatters"
    }
  ],
  "author": "steemit",
  "author_reputation": 0,
  "beneficiaries": [],
  "body": "Steemit is a social media platform where anyone can earn STEEM points by posting. The more people who like a post, the more STEEM the poster earns. Anyone can sell their STEEM for cash or vest it to boost their voting power.",
  "body_length": 224,
  "cashout_time": "1969-12-31T23:59:59",
  "category": "meta",
  "children": 36,
  "created": "2016-03-30T18:30:18",
  "curator_payout_value": "0.756 HBD",
  "depth": 0,
  "json_metadata": "",
  "last_payout": "2016-08-24T19:59:42",
  "last_update": "2016-03-30T18:30:18",
  "max_accepted_payout": "1000000.000 HBD",
  "net_rshares": 830053779138,
  "parent_author": "",
  "parent_permlink": "meta",
  "pending_payout_value": "0.000 HBD",
  "percent_hbd": 10000,
  "permlink": "firstpost",
  "post_id": 1,
  "promoted": "0.000 HBD",
  "replies": [],
  "root_title": "Welcome to Steem!",
  "title": "Welcome to Steem!",
  "total_payout_value": "0.942 HBD",
  "url": "/meta/@steemit/firstpost"
}
}
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "steemit_firstpost"
            directory: "bridge_api_patterns/normalize_post"
