Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
112 additions
and
16 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...202c1981-1e25-47f0-8764-75ad506c2bec.json → ...202c1981-1e25-47f0-8764-75ad506c2bec.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...3a9ea34f-0f12-469b-9417-3ae5795a7baa.json → ...3a9ea34f-0f12-469b-9417-3ae5795a7baa.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...43c99182-bb67-47e1-b564-bb23bd8d4393.json → ...43c99182-bb67-47e1-b564-bb23bd8d4393.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
persistence/sql/migratest/fixtures/login_flow/47edd3a8-0998-4779-9469-f4b8ee4430df.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"id": "47edd3a8-0998-4779-9469-f4b8ee4430df", | ||
"type": "api", | ||
"expires_at": "2013-10-07T08:23:19Z", | ||
"issued_at": "2013-10-07T08:23:19Z", | ||
"request_url": "http://kratos:4433/self-service/browser/flows/login", | ||
"messages": [], | ||
"methods": {}, | ||
"forced": false | ||
} |
1 change: 1 addition & 0 deletions
1
...56d94e8b-8a5d-4b7f-8a6e-3259d2b2903e.json → ...56d94e8b-8a5d-4b7f-8a6e-3259d2b2903e.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...6d387820-f2f4-4f9f-9980-a90d89e7811f.json → ...6d387820-f2f4-4f9f-9980-a90d89e7811f.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...916ded11-aa64-4a27-b06e-96e221a509d7.json → ...916ded11-aa64-4a27-b06e-96e221a509d7.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...99974ce6-388c-4669-a95a-7757ee724020.json → ...99974ce6-388c-4669-a95a-7757ee724020.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...13178936-095a-466b-abe0-36d977d3dc18.json → ...13178936-095a-466b-abe0-36d977d3dc18.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
persistence/sql/migratest/fixtures/recovery_flow/87e871e1-a45f-4ed0-ba4e-a03063c774dc.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"id": "87e871e1-a45f-4ed0-ba4e-a03063c774dc", | ||
"type": "api", | ||
"expires_at": "2013-10-07T08:23:19Z", | ||
"issued_at": "2013-10-07T08:23:19Z", | ||
"request_url": "http://kratos:4433/self-service/browser/flows/registration", | ||
"active": "link", | ||
"messages": [], | ||
"methods": {}, | ||
"state": "choose_method" | ||
} |
1 change: 1 addition & 0 deletions
1
...05a7f09d-4ef3-41fb-958a-6ad74584b36a.json → ...05a7f09d-4ef3-41fb-958a-6ad74584b36a.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...22d58184-b97d-44a5-bbaf-0aa8b4000d81.json → ...22d58184-b97d-44a5-bbaf-0aa8b4000d81.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...2bf132e0-5d40-4df9-9a11-9106e5333735.json → ...2bf132e0-5d40-4df9-9a11-9106e5333735.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...stence/sql/migratest/fixtures/registration_flow/696e7022-c466-44f6-89c6-8cf93c06a62a.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"id": "696e7022-c466-44f6-89c6-8cf93c06a62a", | ||
"type": "api", | ||
"expires_at": "2013-10-07T08:23:19Z", | ||
"issued_at": "2013-10-07T08:23:19Z", | ||
"request_url": "http://kratos:4433/self-service/browser/flows/registration", | ||
"active": "password", | ||
"messages": [], | ||
"methods": {} | ||
} |
1 change: 1 addition & 0 deletions
1
...87fa3f43-5155-42b4-a1ad-174c2595fdaf.json → ...87fa3f43-5155-42b4-a1ad-174c2595fdaf.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...9edcf051-1cd0-44cc-bd2f-6ac21f0c24dd.json → ...9edcf051-1cd0-44cc-bd2f-6ac21f0c24dd.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...194c5b05-0487-4a11-bcbc-f301c9ff9678.json → ...194c5b05-0487-4a11-bcbc-f301c9ff9678.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...21c5f714-3089-49d2-b387-f244d4dd9e00.json → ...21c5f714-3089-49d2-b387-f244d4dd9e00.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...74fd6c53-7651-453e-90b8-2c5adbf911bb.json → ...74fd6c53-7651-453e-90b8-2c5adbf911bb.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...77fe4fb3-2d4e-4532-b568-c44b0aece0aa.json → ...77fe4fb3-2d4e-4532-b568-c44b0aece0aa.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...a79bfcf1-68ae-49de-8b23-4f96921b8341.json → ...a79bfcf1-68ae-49de-8b23-4f96921b8341.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
persistence/sql/migratest/fixtures/settings_flow/cdfd1eed-34a4-491d-ad0a-7579d3a0a7ba.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"id": "cdfd1eed-34a4-491d-ad0a-7579d3a0a7ba", | ||
"type": "browser", | ||
"expires_at": "2013-10-07T08:23:19Z", | ||
"issued_at": "2013-10-07T08:23:19Z", | ||
"request_url": "http://kratos:4433/self-service/browser/flows/settings", | ||
"active": "profile", | ||
"messages": [], | ||
"methods": {}, | ||
"identity": { | ||
"id": "a251ebc2-880c-4f76-a8f3-38e6940eab0e", | ||
"schema_id": "default", | ||
"schema_url": "", | ||
"traits": { | ||
"email": "foobar@ory.sh" | ||
} | ||
}, | ||
"state": "show_form" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// +build refresh | ||
|
||
package migratest | ||
|
||
import ( | ||
"testing" | ||
"encoding/json" | ||
"io/ioutil" | ||
|
||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
func writeFixtureOnError(t *testing.T, err error, actual interface{}, location string) { | ||
content, err := json.MarshalIndent(actual, "", " ") | ||
require.NoError(t, err) | ||
require.NoError(t, ioutil.WriteFile(location, content, 0666)) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// +build !refresh | ||
|
||
package migratest | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
func writeFixtureOnError(t *testing.T, err error, actual interface{}, location string) { | ||
require.NoError(t, err) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
INSERT INTO selfservice_login_requests (id, request_url, issued_at, expires_at, active_method, csrf_token, created_at, updated_at, forced, messages, type) VALUES ('47edd3a8-0998-4779-9469-f4b8ee4430df', 'http://kratos:4433/self-service/browser/flows/login', '2013-10-07 08:23:19', '2013-10-07 08:23:19', '', 'fpeVSZ9ZH7YvUkhXsOVEIssxbfauh5lcoQSYxTcN0XkMneg1L42h+HtvisjlNjBF4ElcD2jApCHoJYq2u9sVWg==', '2013-10-07 08:23:19', '2013-10-07 08:23:19', false, '[]', 'api'); | ||
INSERT INTO selfservice_registration_requests (id, request_url, issued_at, expires_at, active_method, csrf_token, created_at, updated_at, messages, type) VALUES ('696e7022-c466-44f6-89c6-8cf93c06a62a', 'http://kratos:4433/self-service/browser/flows/registration', '2013-10-07 08:23:19', '2013-10-07 08:23:19', 'password', 'vYYuhWXBfXKzBC+BlnbDmXfBKsUWY6SU/v04gHF9GYzPjFP51RXDPOc57R7Dpbf+XLkbPNAkmem33Crz/avdrw==', '2013-10-07 08:23:19', '2013-10-07 08:23:19', '[]', 'api'); | ||
INSERT INTO selfservice_verification_requests (id, request_url, issued_at, expires_at, form, via, csrf_token, success, created_at, updated_at, messages, type) VALUES ('3631e880-ce59-4cbd-a705-0d825eea590d', 'http://kratos:4433/self-service/browser/flows/verification/email', '2013-10-07 08:23:19', '2013-10-07 08:23:19', 'null', 'email', '8xoIMa1+UkDqTt+tIHmIEHztQkk0AWk2PJhWWYDmB6dSE+RtJinnxtwH5lNNCnYyQuCF2ugy7rWjCgiwYPJNOw==', true, '2013-10-07 08:23:19', '2013-10-07 08:23:19', '[]', 'api'); | ||
INSERT INTO selfservice_settings_requests (id, request_url, issued_at, expires_at, state, identity_id, created_at, updated_at, active_method, messages) VALUES | ||
('cdfd1eed-34a4-491d-ad0a-7579d3a0a7ba', 'http://kratos:4433/self-service/browser/flows/settings', '2013-10-07 08:23:19', '2013-10-07 08:23:19', 'show_form', 'a251ebc2-880c-4f76-a8f3-38e6940eab0e', '2013-10-07 08:23:19', '2013-10-07 08:23:19', 'profile', '[]'); | ||
INSERT INTO selfservice_recovery_requests (id, request_url, issued_at, expires_at, messages, active_method, csrf_token, state, recovered_identity_id, created_at, updated_at, type) | ||
VALUES ('87e871e1-a45f-4ed0-ba4e-a03063c774dc', 'http://kratos:4433/self-service/browser/flows/registration', '2013-10-07 08:23:19', '2013-10-07 08:23:19', '[]', 'link', 'vYYuhWXBfXKzBC+BlnbDmXfBKsUWY6SU/v04gHF9GYzPjFP51RXDPOc57R7Dpbf+XLkbPNAkmem33Crz/avdrw==', 'choose_method', 'a251ebc2-880c-4f76-a8f3-38e6940eab0e', '2013-10-07 08:23:19', '2013-10-07 08:23:19', 'api'); |