summaryrefslogtreecommitdiffstats
path: root/models/fixtures
diff options
context:
space:
mode:
authorEthan Koenig <ethantkoenig@gmail.com>2016-12-28 20:03:40 -0500
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2016-12-31 10:17:45 +0100
commitde8b73dd9241375d78a08bb01910d2c820b5e481 (patch)
treebfa78d8524398eee3416b1c0cb5e8aaf4bdd0daa /models/fixtures
parentc0904f1942071ce870ab9d87bd6c7f49f614ee82 (diff)
downloadgitea-de8b73dd9241375d78a08bb01910d2c820b5e481.tar.gz
gitea-de8b73dd9241375d78a08bb01910d2c820b5e481.zip
Unit tests for token and update models
Diffstat (limited to 'models/fixtures')
-rw-r--r--models/fixtures/access_token.yml23
-rw-r--r--models/fixtures/update_task.yml20
2 files changed, 43 insertions, 0 deletions
diff --git a/models/fixtures/access_token.yml b/models/fixtures/access_token.yml
new file mode 100644
index 0000000000..9572709dd9
--- /dev/null
+++ b/models/fixtures/access_token.yml
@@ -0,0 +1,23 @@
+-
+ id: 1
+ uid: 1
+ name: Token A
+ sha1: hash1
+ created_unix: 946687980
+ updated_unix: 946687980
+
+-
+ id: 2
+ uid: 1
+ name: Token B
+ sha1: hash2
+ created_unix: 946687980
+ updated_unix: 946687980
+
+-
+ id: 3
+ uid: 2
+ name: Token A
+ sha1: hash3
+ created_unix: 946687980
+ updated_unix: 946687980
diff --git a/models/fixtures/update_task.yml b/models/fixtures/update_task.yml
new file mode 100644
index 0000000000..ffcd5fd6fa
--- /dev/null
+++ b/models/fixtures/update_task.yml
@@ -0,0 +1,20 @@
+-
+ id: 1
+ uuid: uuid1
+ ref_name: refName1
+ old_commit_id: oldCommitId1
+ new_commit_id: newCommitId1
+
+-
+ id: 2
+ uuid: uuid2
+ ref_name: refName2
+ old_commit_id: oldCommitId2
+ new_commit_id: newCommitId2
+
+-
+ id: 3
+ uuid: uuid3
+ ref_name: refName3
+ old_commit_id: oldCommitId3
+ new_commit_id: newCommitId3