55
66 "github.com/pluralsh/gqlclient"
77 "github.com/pluralsh/plural/pkg/api"
8+ "github.com/samber/lo"
89
910 "github.com/stretchr/testify/assert"
1011)
@@ -26,15 +27,16 @@ func TestConstructGqlClientRepositoryInput(t *testing.T) {
2627 {
2728 name : `test repository.yaml conversion` ,
2829 expected : & gqlclient.RepositoryAttributes {
29- Category : & devopsCategory ,
30- DarkIcon : & emptyString ,
31- Description : & testDescription ,
32- GitURL : & emptyString ,
33- Homepage : & emptyString ,
34- Icon : & icon ,
35- Name : & name ,
36- Notes : & notes ,
37- Docs : & emptyString ,
30+ Category : & devopsCategory ,
31+ DarkIcon : & emptyString ,
32+ Description : & testDescription ,
33+ GitURL : & emptyString ,
34+ Homepage : & emptyString ,
35+ Contributors : lo .ToSlicePtr ([]string {"someone@email.com" }),
36+ Icon : & icon ,
37+ Name : & name ,
38+ Notes : & notes ,
39+ Docs : & emptyString ,
3840 OauthSettings : & gqlclient.OauthSettingsAttributes {
3941 AuthMethod : "POST" ,
4042 URIFormat : "https://{domain}/oauth2/callback" ,
@@ -55,6 +57,8 @@ category: DEVOPS
5557private: true
5658icon: plural/icons/test.png
5759notes: plural/notes.tpl
60+ contributors:
61+ - someone@email.com
5862oauthSettings:
5963 uriFormat: https://{domain}/oauth2/callback
6064 authMethod: POST
0 commit comments