FB eternal Access Token test user for integration tests

278
June 29, 2017, at 09:47 AM

I have an api that calls the Facebook api.
Regarding our integration tests, it is needed to have these tests run without error when being executed given the same code, by myself or others.
We send the FB access token in the HTTP POST body from client to server, while assuming that it has been previously retrieved by the client though a client SDK.

However since access tokens for test users expire, integration tests cannot be properly automated without manually refreshing the token in our config file. When the access token expires, integration tests will always fail. Although this is ok, it is cumbersome to each time manually retrieve a new access token for achieving a successful integration test.

How can we properly solve this problem?

Rent Charter Buses Company
READ ALSO
XML parsing in AWS Lambda function

XML parsing in AWS Lambda function

Is it possible to do XML parsing in an AWS Nodejs Lambda function without using a 3rd party module like xml2js? I'm wondering if AWS has any built-in functionality for this like in the AWS SDK for Node

808
Merge container files when using docker-sync

Merge container files when using docker-sync

I am using docker-sync to speed up the dev environment file updates on my nodejs application

474
Add into array If not present

Add into array If not present

The Schema is as shown

506