GhostWording / gw-config-apis

this repo contains static json that can live through apis with github management only
0 stars 7 forks source link

[botapis] master file reload #35

Closed rhwy closed 6 years ago

rhwy commented 6 years ago

Hi @rui, Thanks for your message. Following your change, I tested the sequences/reload API to see if there were any issues.

rhwy commented 6 years ago

@andreasdieryck

Ok, so,

  1. first to verify actual getnext working, I called http://gw-bot-apis.azurewebsites.net/api/sequences/next with a new clear user
    {
    "botName":"louisgscreenshot",
    "facebookId":"test-rc-01"
    }

and get sequence TypingBarHideTest which is not the one actually marked as first in master LouisGmasterexperiments1.json (expected N°1 is AutoSelectExample)

  1. I open http://gw-config-api.azurewebsites.net/data/bot/apps/experiments/LouisGmasterexperiments1.json to verify that the actual master file was correctly synchronised -> ok

  2. I try to reload master louisgscreenshot with http://gw-bot-apis.azurewebsites.net/admin/sequences/reload/louisgscreenshot?adminkey=61fd4333-61b1-4236-83c6-33bda5a9d6e6 -> response OK + OK on #notifications channel

  3. I clear my history http://gw-bot-apis.azurewebsites.net/admin/command/history/clear?botname=louisgscreenshot&facebookid=test-rc-01&deviceId=&adminkey=61fd4333-61b1-4236-83c6-33bda5a9d6e6

  4. I call getnext again http://gw-bot-apis.azurewebsites.net/api/sequences/next with same values as in (1) and got my expected AutoSelectExample -> OK

For me, this means that the reload is OK.

Please take care to use this process by always verifying that the json files are available on http://gw-bot-apis.azurewebsites.net/ (the syncronised website from this repo) before asking for a reload.