Skip to content

Instantly share code, notes, and snippets.

@kenperkins
Last active December 16, 2015 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenperkins/5485788 to your computer and use it in GitHub Desktop.
Save kenperkins/5485788 to your computer and use it in GitHub Desktop.
> pkgcloud@0.6.15 test /Users/kenn5998/src/pkgcloud
> make test
pkgcloud/azure/databases
the pkgcloud azure db client
◦ the create() method with correct options should respond correctly:  ✓ the create() method with correct options should respond correctly
◦ the create() method with no options should error:  ✓ the create() method with no options should error
◦ the create() method with invalid options should error:  ✓ the create() method with invalid options should error
◦ the list() method with correct options should respond correctly:  ✓ the list() method with correct options should respond correctly
◦ the remove() method with correct options should respond correctly:  ✓ the remove() method with correct options should respond correctly
◦ the remove() method with no options should error:  ✓ the remove() method with no options should error
pkgcloud/core/base/client
The pkgcloud base client request method
◦ with a wrong request with a cb:  ✓ with a wrong request with a cb
◦ with a wrong request without a cb:  ✓ with a wrong request without a cb
◦ the before filters throwing an error with a callback should return the error on the cb:  ✓ the before filters throwing an error with a callback should return the error on the cb
◦ the before filters throwing an error without a callback should return the error on the EE:  ✓ the before filters throwing an error without a callback should return the error on the EE
pkgcloud/common/compute/base [rackspace]
◦ the getVersion() method with no arguments should return the version:  ✓ the getVersion() method with no arguments should return the version
◦ the getFlavors() method should return a list of flavors:  ✓ the getFlavors() method should return a list of flavors
◦ the getImages() method should return a list of images:  ✓ the getImages() method should return a list of images
◦ the setWait() method waiting for a server to be operational should return a running server:  ✓ the setWait() method waiting for a server to be operational should return a running server
◦ the setWait() method waiting for a server to be operational should return a running server:  ✓ the setWait() method waiting for a server to be operational should return a running server
pkgcloud/common/compute/base [openstack]
◦ the getVersion() method with no arguments should return the version:  ✓ the getVersion() method with no arguments should return the version
◦ the getFlavors() method should return a list of flavors:  ✓ the getFlavors() method should return a list of flavors
◦ the getImages() method should return a list of images:  ✓ the getImages() method should return a list of images
◦ the setWait() method waiting for a server to be operational should return a running server:  ✓ the setWait() method waiting for a server to be operational should return a running server
◦ the setWait() method waiting for a server to be operational should return a running server:  ✓ the setWait() method waiting for a server to be operational should return a running server
pkgcloud/common/compute/base [joyent]
◦ the getVersion() method with no arguments should return the version:  ✓ the getVersion() method with no arguments should return the version
◦ the getFlavors() method should return a list of flavors:  ✓ the getFlavors() method should return a list of flavors
◦ the getImages() method should return a list of images:  ✓ the getImages() method should return a list of images
◦ the setWait() method waiting for a server to be operational should return a running server:  ✓ the setWait() method waiting for a server to be operational should return a running server
◦ the setWait() method waiting for a server to be operational should return a running server:  ✓ the setWait() method waiting for a server to be operational should return a running server
pkgcloud/common/compute/base [amazon]
◦ the getVersion() method with no arguments should return the version:  ✓ the getVersion() method with no arguments should return the version
◦ the getFlavors() method should return a list of flavors:  ✓ the getFlavors() method should return a list of flavors
◦ the getImages() method should return a list of images:  ✓ the getImages() method should return a list of images
◦ the setWait() method waiting for a server to be operational should return a running server:  ✓ the setWait() method waiting for a server to be operational should return a running server (55ms)
◦ the setWait() method waiting for a server to be operational should return a running server:  ✓ the setWait() method waiting for a server to be operational should return a running server
pkgcloud/common/compute/base [azure]
◦ the getVersion() method with no arguments should return the version:  ✓ the getVersion() method with no arguments should return the version
◦ the getFlavors() method should return a list of flavors:  ✓ the getFlavors() method should return a list of flavors
◦ the getImages() method should return a list of images:  ✓ the getImages() method should return a list of images
◦ the setWait() method waiting for a server to be operational should return a running server:  ✓ the setWait() method waiting for a server to be operational should return a running server (58ms)
◦ the setWait() method waiting for a server to be operational should return a running server:  ✓ the setWait() method waiting for a server to be operational should return a running server
pkgcloud/common/compute/server [rackspace]
◦ the getImages() function should return a list of images:  ✓ the getImages() function should return a list of images
◦ the getFlavors() function should return a list of flavors:  ✓ the getFlavors() function should return a list of flavors
◦ the createServer() method with image and flavor should create a server:  ✓ the createServer() method with image and flavor should create a server
◦ the getServers() method should return a list of servers:  ✓ the getServers() method should return a list of servers
◦ the getServers() method should return a list of servers:  ✓ the getServers() method should return a list of servers
- the getServer() method should get a server instance
- the server.rebootServer() method should restart a server instance
- the destroyServer() method should delete a server instance
pkgcloud/common/compute/server [openstack]
◦ the getImages() function should return a list of images:  ✓ the getImages() function should return a list of images
◦ the getFlavors() function should return a list of flavors:  ✓ the getFlavors() function should return a list of flavors
◦ the createServer() method with image and flavor should create a server:  ✓ the createServer() method with image and flavor should create a server
◦ the getServers() method should return a list of servers:  ✓ the getServers() method should return a list of servers
◦ the getServers() method should return a list of servers:  ✓ the getServers() method should return a list of servers
- the getServer() method should get a server instance
- the server.rebootServer() method should restart a server instance
- the destroyServer() method should delete a server instance
pkgcloud/common/compute/server [joyent]
◦ the getImages() function should return a list of images:  ✓ the getImages() function should return a list of images
◦ the getFlavors() function should return a list of flavors:  ✓ the getFlavors() function should return a list of flavors
◦ the createServer() method with image and flavor should create a server:  ✓ the createServer() method with image and flavor should create a server
◦ the getServers() method should return a list of servers:  ✓ the getServers() method should return a list of servers
◦ the getServers() method should return a list of servers:  ✓ the getServers() method should return a list of servers
- the getServer() method should get a server instance
- the server.rebootServer() method should restart a server instance
- the destroyServer() method should delete a server instance
pkgcloud/common/compute/server [amazon]
◦ the getImages() function should return a list of images:  ✓ the getImages() function should return a list of images
◦ the getFlavors() function should return a list of flavors:  ✓ the getFlavors() function should return a list of flavors
◦ the createServer() method with image and flavor should create a server:  ✓ the createServer() method with image and flavor should create a server
◦ the getServers() method should return a list of servers:  ✓ the getServers() method should return a list of servers
◦ the getServers() method should return a list of servers:  ✓ the getServers() method should return a list of servers
- the getServer() method should get a server instance
- the server.rebootServer() method should restart a server instance
- the destroyServer() method should delete a server instance
pkgcloud/common/compute/server [azure]
◦ the getImages() function should return a list of images:  ✓ the getImages() function should return a list of images
◦ the getFlavors() function should return a list of flavors:  ✓ the getFlavors() function should return a list of flavors
◦ the createServer() method with image and flavor should create a server:  ✓ the createServer() method with image and flavor should create a server (41ms)
◦ the getServers() method should return a list of servers:  ✓ the getServers() method should return a list of servers
◦ the getServers() method should return a list of servers:  ✓ the getServers() method should return a list of servers
- the getServer() method should get a server instance
- the server.rebootServer() method should restart a server instance
- the destroyServer() method should delete a server instance
pkgcloud/common/storage/base [rackspace]
◦ the createContainer() method should return newly created container:  ✓ the createContainer() method should return newly created container
pkgcloud/common/storage/base [amazon]
◦ the createContainer() method should return newly created container:  ✓ the createContainer() method should return newly created container
pkgcloud/common/storage/base [azure]
◦ the createContainer() method should return newly created container:  ✓ the createContainer() method should return newly created container
pkgcloud/rackspace/compute/authentication
The pkgcloud Rackspace Compute client
◦ should have core methods defined:  ✓ should have core methods defined
◦ the getVersion() method should return the proper version:  ✓ the getVersion() method should return the proper version
the auth() method with a valid username and api key
◦ should respond with 200 and appropriate info:  ✓ should respond with 200 and appropriate info
◦ should update the config with appropriate urls:  ✓ should update the config with appropriate urls
◦ the getLimits() method should return the proper limits:  ✓ the getLimits() method should return the proper limits
the auth() method with an invalid username and api key
◦ should respond with Error code 401:  ✓ should respond with Error code 401
pkgcloud/rackspace/compute/images
The pkgcloud Rackspace Compute client
◦ the createImage() method with a serverId should create a new image:  ✓ the createImage() method with a serverId should create a new image
pkgcloud/rackspace/database/authentication
The pkgcloud Rackspace Database client
◦ should have core methods defined:  ✓ should have core methods defined
◦ the getVersion() method should return the proper version:  ✓ the getVersion() method should return the proper version
the auth() method with a valid username and api key
◦ should respond with 200 and appropriate info:  ✓ should respond with 200 and appropriate info
◦ should respond with a token:  ✓ should respond with a token
◦ should update the config with appropriate urls:  ✓ should update the config with appropriate urls
the auth() method with an invalid username and api key
◦ should respond with Error code 401:  ✓ should respond with Error code 401
pkgcloud/rackspace/databases/databases
The pkgcloud Rackspace Database client
◦ the createDatabases() method should respond correctly:  ✓ the createDatabases() method should respond correctly
◦ create another database for pagination test should respond correctly:  ✓ create another database for pagination test should respond correctly
◦ the create() method should respond correctly:  ✓ the create() method should respond correctly
◦ the createDatabase() method with no name should get an error for name:  ✓ the createDatabase() method with no name should get an error for name
◦ the createDatabase() method with no instance should get an error for instance:  ✓ the createDatabase() method with no instance should get an error for instance
◦ the getDatabases() method should return a list of databases:  ✓ the getDatabases() method should return a list of databases
◦ the getDatabases() method should return a list of databases with names:  ✓ the getDatabases() method should return a list of databases with names
◦ the getDatabases() method with limit should respond one element:  ✓ the getDatabases() method with limit should respond one element
◦ the getDatabases() method with limit should pass as third argument the offset mark:  ✓ the getDatabases() method with limit should pass as third argument the offset mark
◦ the getDatabases() method with offset should respond less quantity:  ✓ the getDatabases() method with offset should respond less quantity
◦ the getDatabases() method with limit and offset should respond just one result with no more next points:  ✓ the getDatabases() method with limit and offset should respond just one result with no more next points
◦ the destroyDatabase() method with first db should respond correctly:  ✓ the destroyDatabase() method with first db should respond correctly
◦ the destroyDatabase() method with last db should respond correctly:  ✓ the destroyDatabase() method with last db should respond correctly
pkgcloud/rackspace/databases/errors
The pkgcloud Rackspace Database client
breaking the function
◦ createInstance() when no options should return an error:  ✓ createInstance() when no options should return an error
◦ createInstance() with bad options should return an error:  ✓ createInstance() with bad options should return an error
◦ createInstance() with no instance options should return an error:  ✓ createInstance() with no instance options should return an error
◦ destroyInstance() with no instance should return an error:  ✓ destroyInstance() with no instance should return an error
◦ getInstance() with no instance should return an error:  ✓ getInstance() with no instance should return an error
◦ createDatabase() with no options should return an error:  ✓ createDatabase() with no options should return an error
◦ createDatabase() with no instance should return an error:  ✓ createDatabase() with no instance should return an error
◦ getDatabases() with no instance should return an error:  ✓ getDatabases() with no instance should return an error
◦ destroyDatabase() with no options should return an error:  ✓ destroyDatabase() with no options should return an error
◦ destroyDatabase() with no instance should return an error:  ✓ destroyDatabase() with no instance should return an error
◦ createUser() with no options should return an error:  ✓ createUser() with no options should return an error
◦ createUser() with empty objects should return an error:  ✓ createUser() with empty objects should return an error
◦ createUser() with no db or instance should return an error:  ✓ createUser() with no db or instance should return an error
◦ createUser() with no instance should return an error:  ✓ createUser() with no instance should return an error
◦ getUsers() with no instance should return an error:  ✓ getUsers() with no instance should return an error
◦ destroyUser() with no instance should return an error:  ✓ destroyUser() with no instance should return an error
◦ destroyUser() with no user should return an error:  ✓ destroyUser() with no user should return an error
◦ enableRoot() with no instance should return an error:  ✓ enableRoot() with no instance should return an error
◦ rootEnabled() with no instance should return an error:  ✓ rootEnabled() with no instance should return an error
pkgcloud/rackspace/databases/errors
The pkgcloud Rackspace Database client
◦ the getFlavors() method should return the list of flavors:  ✓ the getFlavors() method should return the list of flavors
◦ the getFlavors() method should return the list of flavor with rackspace specific information:  ✓ the getFlavors() method should return the list of flavor with rackspace specific information
◦ the getFlavor() method should return a valid flavor:  ✓ the getFlavor() method should return a valid flavor
pkgcloud/rackspace/databases/instances
The pkgcloud Rackspace Database client
the create() method
◦ should return a valid instance:  ✓ should return a valid instance
◦ should return the same name and flavor used:  ✓ should return the same name and flavor used
the getInstances() method
without options
◦ should return the list of instances:  ✓ should return the list of instances
◦ should valid instance each item in the list:  ✓ should valid instance each item in the list
◦ should response with extra info:  ✓ should response with extra info
◦ should have correct flavor:  ✓ should have correct flavor
◦ should have correct links:  ✓ should have correct links
◦ should have a null offset:  ✓ should have a null offset
with limit
◦ should respond at least 2 elements:  ✓ should respond at least 2 elements
◦ should pass as third argument the offset mark:  ✓ should pass as third argument the offset mark
the destroyInstance() method
◦ should respond correctly:  ✓ should respond correctly
the getInstance() method
◦ should response with details:  ✓ should response with details
the getInstances() method
◦ with offset should respond less quantity:  ✓ with offset should respond less quantity
◦ with limit and offset should respond just one result with more next points:  ✓ with limit and offset should respond just one result with more next points
the setFlavor() method
◦ without instance and flavor parameters should get errors:  ✓ without instance and flavor parameters should get errors
◦ without flavor parameter should get errors:  ✓ without flavor parameter should get errors
◦ without instance parameter should get errors:  ✓ without instance parameter should get errors
◦ with correct inputs should respond correctly:  ✓ with correct inputs should respond correctly
the setVolumeSize() method
◦ without instance and size parameters should get errors:  ✓ without instance and size parameters should get errors
◦ without size parameter should get errors:  ✓ without size parameter should get errors
◦ without invalid size parameter should get errors:  ✓ without invalid size parameter should get errors
◦ with correct inputs should respond correctly:  ✓ with correct inputs should respond correctly
the create() method with errors
◦ should respond with errors:  ✓ should respond with errors
◦ without flavor should respond with errors:  ✓ without flavor should respond with errors
◦ with invalid size should respond with errors:  ✓ with invalid size should respond with errors
the restartInstance() method
◦ with no instance should return error:  ✓ with no instance should return error
◦ with valid instance should restart:  ✓ with valid instance should restart
pkgcloud/rackspace/databases/users
The pkgcloud Rackspace Database client
◦ the createUser() method should respond correctly:  ✓ the createUser() method should respond correctly
◦ create an other user for test pagination should response correctly:  ✓ create an other user for test pagination should response correctly
◦ create multiple users in one request should response correctly:  ✓ create multiple users in one request should response correctly
◦ create users with questionable characters should respond with error:  ✓ create users with questionable characters should respond with error
◦ the getUsers() method should get the list of users:  ✓ the getUsers() method should get the list of users
◦ the enableRoot() method should respond correctly:  ✓ the enableRoot() method should respond correctly
◦ the enableRoot() method should respond correctly:  ✓ the enableRoot() method should respond correctly
the getUsers() method
◦ with limit should respond with one element:  ✓ with limit should respond with one element
◦ with limitshould pass as third argument the offset mark:  ✓ with limitshould pass as third argument the offset mark
◦ with offset should respond less quantity:  ✓ with offset should respond less quantity
◦ with limit and offset should responsd with just result with more next points:  ✓ with limit and offset should responsd with just result with more next points
the destroyUsers() method
◦ should respond correctly:  ✓ should respond correctly
◦ should destroy the user used for pagination:  ✓ should destroy the user used for pagination
pkgcloud/rackspace/storage/authentication
The pkgcloud Rackspace Storage client
◦ should have core methods defined:  ✓ should have core methods defined
the auth() method
with a valid user name and api key
◦ should respond with 204 and appropriate info:  ✓ should respond with 204 and appropriate info
◦ should update the config with appropriate urls:  ✓ should update the config with appropriate urls
with an invalid user name and api key shouldn't authenticate
◦ should respond with 401 unauthorized:  ✓ should respond with 401 unauthorized
pkgcloud/redistogo/databases
The pkgcloud RedisToGo Database client
the create method()
◦ with correct options should respond correctly:  ✓ with correct options should respond correctly
◦ with no options should respond with errors:  ✓ with no options should respond with errors
the get() method
◦ with correct options should respond correctly:  ✓ with correct options should respond correctly
◦ with options should respond with an error:  ✓ with options should respond with an error
the remove() method
◦ with correct options should respond correctly:  ✓ with correct options should respond correctly
◦ with options should respond with an error:  ✓ with options should respond with an error
pkgcloud/amazon/groups
◦ add SecurityGroup should succeed:  ✓ add SecurityGroup should succeed
◦ destroy SecurityGroup should succeed:  ✓ destroy SecurityGroup should succeed
◦ list SecurityGroups should succeed:  ✓ list SecurityGroups should succeed
◦ get SecurityGroup should succeed:  ✓ get SecurityGroup should succeed
◦ add Rules should succeed:  ✓ add Rules should succeed
◦ delete Rules should succeed:  ✓ delete Rules should succeed
pkgcloud/amazon/keys
◦ add KeyPair should succeed:  ✓ add KeyPair should succeed
◦ destroy KeyPair should succeed:  ✓ destroy KeyPair should succeed
◦ list KeyPairs should succeed:  ✓ list KeyPairs should succeed
◦ get KeyPair should succeed:  ✓ get KeyPair should succeed
186 tests complete (819 ms)
15 tests pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment