summaryrefslogtreecommitdiff
path: root/spec/models/deploy_token_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Autocorrect with RSpec/ExampleWording copThong Kuah2019-04-051-16/+16
| | | | | | | - rewords examples starting with 'should' - rewords examples starting with 'it' Note: I had to manually fixup "onlies" to "only"
* Add # frozen_string_literal to spec/modelsThong Kuah2019-04-011-0/+2
| | | | Adds `# frozen_string_literal: true` to spec/models ruby files
* Fix deploy tokens without `expire_at` crashesBob Van Landuyt2018-08-021-0/+8
|
* Resolve "Deploy Tokens failed to clone LFS repository"Mayra Cabrera2018-07-231-1/+8
|
* Refactor deploy token methods on Ci::BuildMayra Cabrera2018-04-201-0/+19
| | | | | Also include a class method for retriving the gitlab_deploy_token on DeployTokens
* Verify that deploy token has valid access when pulling container registry imageMayra Cabrera2018-04-101-10/+21
|
* Handle limit for datetime attributes on MySQLMayra Cabrera2018-04-061-0/+38
| | | | | | | | | | | The TIMESTAMP data type is used for values that contain both date and time parts. TIMESTAMP has a range of '1970-01-01 00:00:01' UTC to '2038-01-19 03:14:07' UTC. A Forever lib class was included to handle future dates for PostgreSQL and MySQL, also changes were made to DeployToken to enforce Forever.date Also removes extra conditional from JwtController
* Increase test suite around deploy tokens behaviorMayra Cabrera2018-04-061-1/+20
| | | | Also, fixes broken specs
* Include ProjectDeployTokensMayra Cabrera2018-04-061-15/+35
| | | | | | Also: - Changes scopes from serializer to use boolean columns - Fixes broken specs
* Addreses backend review suggestionsMayra Cabrera2018-04-061-0/+1
| | | | | | - Remove extra method for authorize_admin_project - Ensure project presence - Rename 'read_repo' to 'read_repository' to be more verbose
* Implement 'read_repo' for DeployTokensMayra Cabrera2018-04-061-14/+32
| | | | This will allow to download a repo using the token from the DeployToken
* Create barebones for DeploytokenMayra Cabrera2018-04-061-0/+38
Includes: - Model, factories, create service and controller actions - As usual, includes specs for everything - Builds UI (copy from PAT) - Add revoke action Closes #31591