code.gitea.io/gitea@v1.21.7/models/migrations/fixtures/Test_UnwrapLDAPSourceCfg/login_source.yml (about) 1 # type LoginSource struct { 2 # ID int64 `xorm:"pk autoincr"` 3 # Type int 4 # Cfg []byte `xorm:"TEXT"` 5 # Expected []byte `xorm:"TEXT"` 6 # } 7 - 8 id: 1 9 type: 1 10 is_actived: false 11 cfg: "{\"Source\":{\"A\":\"string\",\"B\":1}}" 12 expected: "{\"Source\":{\"A\":\"string\",\"B\":1}}" 13 - 14 id: 2 15 type: 2 16 is_actived: true 17 cfg: "{\"Source\":{\"A\":\"string2\",\"B\":2}}" 18 expected: "{\"A\":\"string2\",\"B\":2}" 19 - 20 id: 3 21 type: 3 22 is_actived: false 23 cfg: "{\"Source\":{\"A\":\"string3\",\"B\":3}}" 24 expected: "{\"Source\":{\"A\":\"string3\",\"B\":3}}" 25 - 26 id: 4 27 type: 4 28 is_actived: true 29 cfg: "{\"Source\":{\"A\":\"string4\",\"B\":4}}" 30 expected: "{\"Source\":{\"A\":\"string4\",\"B\":4}}" 31 - 32 id: 5 33 type: 5 34 is_actived: false 35 cfg: "{\"Source\":{\"A\":\"string5\",\"B\":5}}" 36 expected: "{\"A\":\"string5\",\"B\":5}" 37 - 38 id: 6 39 type: 2 40 is_actived: true 41 cfg: "{\"A\":\"string6\",\"B\":6}" 42 expected: "{\"A\":\"string6\",\"B\":6}" 43 - 44 id: 7 45 type: 5 46 is_actived: false 47 cfg: "{\"A\":\"string7\",\"B\":7}" 48 expected: "{\"A\":\"string7\",\"B\":7}"