Comments (4)
Thought I would document my investigation as I go here. I have figured out that the account number is somehow missing from the URL when calling getInstances only when it is in a state of 'offline'. I have found where the account number is set on authorization using the test data. And the data being loaded can be seen in the test itself. When it goes to make a request in the base client, the url is set which calls this function.
After following all of this I am having a hard time understanding how this change of state could cause the test to error. I know it will end up just being some odd little bug hidden somewhere but from what I understand now it all checks out. It will probably turn up as I familiarize myself with the code base.
from pkgcloud.
Hi
Thank you for all your work on pkgcloud. I'm following you with this problem, please continue putting here any information you think is relevant with the problem. In a quick view, I think with no connection so there is no authentication and there is no account number, because if I recall well, the account number is taken from the token.
I'll try to reserve some time to review all your work.
Keep contributing!
from pkgcloud.
Thanks for the input @cronopio. I figured out that there weren't enough auth nocks for all of the tests to hit. This became even more obvious when more tests were added in my PR and a rackspace/databases/databases
test began to fail. I suppose the tests were able to hit rackspace's servers when online and still succeed, which I find quite interesting.
My solution was adding more .post
s and .reply
s similar to below in the users-test.js
in order for all the tests to succeed. The distribution of the auth nocks can still be tweaked in order to accurately depict how many auth requests are made per rackspace test. (e.g database-test.js
, instance-test.js
, users-test.js
, etc.) I'll dig in a little more and see when all the auth requests are taking place.
nock('https://' + client.authUrl)
.post('/v1.1/auth', { "credentials": credentials })
.reply(200, helpers.loadFixture('rackspace/token.json'))
from pkgcloud.
The commit mentioned land as v0.6.8
, should be fixed.
from pkgcloud.
Related Issues (20)
- Openstack Object Storage temporary URLs return 401 HOT 7
- Whitesource vulnerability in package extend HOT 1
- Liboneandone is no longer supported HOT 2
- Image upload on Rackspace gets stuck in a loop HOT 7
- This package has a critical vulnerability by including an old version of growl, via mocha. Need to remove this dependency or upgrade dependencies in liboneandone. HOT 2
- Rackspace getNodes(): TypeError: Url must be a string. Received 123456
- How to use getVolume for Openstack in v3? HOT 1
- Possibility to set more s3 client options
- Update Keystone API version to 3 HOT 1
- Azure Storage getfiles issue and fix
- Software
- Program HOT 1
- Security vulnerability for transitive dependency => [email protected]
- TypeError: Cannot read property 'id' of undefined
- #FF5300
- Browser support? HOT 2
- The keyword 'interface' is reserved
- Is it possible to modify "Cache-Control" header of a file in Rackspace CDN?
- Unable to find matching endpoint for requested service
- Create containers with type: public
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pkgcloud.