Yes, I was switching my integration tests over to using 'request', but when I saw the release of 7.4.1, I went back to trying specHelper.runAction
With 7.4.1 my integration tests are now holding the connection id properly and passing. Included below is an example integration test based on specHelper.runAction. Notice Im just resetting the parameters prior to each runAction call, and leaving the connection id the same, which my session initializer can then validate the session against.
it('add, modify and delete User', function(done){
api.specHelper.runAction('login', {username: userName, password: password}, function(response, connection){
response.auth.should.be.true
connection.params = createUser()
api.specHelper.runAction('usersInsert', connection, function(response, connection){
response.user.firstName.should.equal('Tammy')
connection.params = modifyUser()
api.specHelper.runAction('usersModify', connection, function(response, connection){
response.user.firstName.should.equal('Terry')
connection.params = {username: 'testUser'}
api.specHelper.runAction('usersDelete', connection, function(response, connection){
should.strictEqual(undefined, connection.err)
api.specHelper.runAction('usersLookup', {username: 'testuser'}, function(response, connection){
should.strictEqual(undefined, response.user)
done();
});
});
});
});
});
})
});