satellite/rewards: hardcoded partner ids (#2776)

* hardcoded partner ids

* fix test
This commit is contained in:
Yingrong Zhao 2019-08-14 09:55:12 -04:00 committed by GitHub
parent 141af7e2f7
commit a496e26e44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 104 additions and 24 deletions

View File

@ -77,7 +77,7 @@ func TestGrapqhlMutation(t *testing.T) {
FullName: "John Roll",
ShortName: "Roll",
Email: "test@mail.test",
PartnerID: "e1b3e8a6-b9a2-4fd0-bb87-3ae87828264c",
PartnerID: "120bf202-8252-437e-ac12-0e364bee852e",
},
Password: "123a123",
}
@ -124,7 +124,7 @@ func TestGrapqhlMutation(t *testing.T) {
FullName: "Green Mickey",
ShortName: "Green",
Email: "u1@mail.test",
PartnerID: "e1b3e8a6-b9a2-4fd0-bb87-3ae87828264c",
PartnerID: "120bf202-8252-437e-ac12-0e364bee852e",
},
Password: "123a123",
}

View File

@ -27,49 +27,129 @@ type Partners map[string]PartnerInfo
// LoadPartnerInfos returns our current Open Source Partners.
func LoadPartnerInfos() Partners {
return Partners{
"e1b3e8a6-b9a2-4fd0-bb87-3ae87828264c": PartnerInfo{
"120bf202-8252-437e-ac12-0e364bee852e": PartnerInfo{
Name: "Blocknify",
ID: "120bf202-8252-437e-ac12-0e364bee852e",
},
"53688ea5-8695-4060-a2c6-b56969217909": PartnerInfo{
Name: "Breaker",
ID: "53688ea5-8695-4060-a2c6-b56969217909",
},
"2fb801c6-a6d7-4d82-a838-32fef98cc398": PartnerInfo{
Name: "Confluent",
ID: "2fb801c6-a6d7-4d82-a838-32fef98cc398",
},
"e28c8847-b323-4a7d-8111-25a0578a58bb": PartnerInfo{
Name: "Consensys",
ID: "e28c8847-b323-4a7d-8111-25a0578a58bb",
},
"0af89ac1-0189-42c6-a47c-e169780b3818": PartnerInfo{
Name: "Couchbase",
ID: "OSPP001",
ID: "0af89ac1-0189-42c6-a47c-e169780b3818",
},
"OSPP002": PartnerInfo{
Name: "MongoDB",
ID: "OSPP002",
"881b92f6-77aa-42ee-961a-b80009d45dd8": PartnerInfo{
Name: "Digital Ocean",
ID: "881b92f6-77aa-42ee-961a-b80009d45dd8",
},
"OSPP003": PartnerInfo{
"cadac3fb-6a3f-4d17-9748-cc66d0617d55": PartnerInfo{
Name: "Deloitte",
ID: "cadac3fb-6a3f-4d17-9748-cc66d0617d55",
},
"53fb82d7-73ff-4a1a-ab0c-6968cffc850e": PartnerInfo{
Name: "DVLabs",
ID: "53fb82d7-73ff-4a1a-ab0c-6968cffc850e",
},
"86c33256-cded-434c-aaac-405343974394": PartnerInfo{
Name: "Fluree",
ID: "86c33256-cded-434c-aaac-405343974394",
},
"3e1b911a-c778-47ea-878c-9f3f264f8bc1": PartnerInfo{
Name: "Flexential",
ID: "3e1b911a-c778-47ea-878c-9f3f264f8bc1",
},
"706011f3-400e-45eb-a796-90cce2a7d67e": PartnerInfo{
Name: "Heroku",
ID: "706011f3-400e-45eb-a796-90cce2a7d67e",
},
"1519bdee-ed18-45fe-86c6-4c7fa9668a14": PartnerInfo{
Name: "Infura",
ID: "1519bdee-ed18-45fe-86c6-4c7fa9668a14",
},
"e56c6a65-d5bf-457a-a414-e55c36624f73": PartnerInfo{
Name: "GroundX",
ID: "e56c6a65-d5bf-457a-a414-e55c36624f73",
},
"8ee019ef-2aae-4867-9c18-41c65ea318c4": PartnerInfo{
Name: "MariaDB",
ID: "8ee019ef-2aae-4867-9c18-41c65ea318c4",
},
"3405a882-0cb2-4f91-a6e0-21be193b80e5": PartnerInfo{
Name: "Netki",
ID: "3405a882-0cb2-4f91-a6e0-21be193b80e5",
},
"a1ba07a4-e095-4a43-914c-1d56c9ff5afd": PartnerInfo{
Name: "FileZilla",
ID: "OSPP003",
ID: "a1ba07a4-e095-4a43-914c-1d56c9ff5afd",
},
"OSPP004": PartnerInfo{
"e50a17b3-4d82-4da7-8719-09312a83685d": PartnerInfo{
Name: "InfluxDB",
ID: "OSPP004",
ID: "e50a17b3-4d82-4da7-8719-09312a83685d",
},
"c10228c2-af70-4e4d-be49-e8bfbe9ca8ef": PartnerInfo{
Name: "Mysterium Network",
ID: "c10228c2-af70-4e4d-be49-e8bfbe9ca8ef",
},
"OSPP005": PartnerInfo{
Name: "Kafka",
ID: "OSPP005",
},
"OSPP006": PartnerInfo{
"5bffe844-5da7-4aa9-bf37-7d695cf819f2": PartnerInfo{
Name: "Minio",
ID: "OSPP006",
ID: "5bffe844-5da7-4aa9-bf37-7d695cf819f2",
},
"OSPP007": PartnerInfo{
"42f588fb-f39d-4886-81af-b614ca16ce37": PartnerInfo{
Name: "Nextcloud",
ID: "OSPP007",
ID: "42f588fb-f39d-4886-81af-b614ca16ce37",
},
"OSPP008": PartnerInfo{
Name: "MariaDB",
ID: "OSPP008",
"3b53a9b3-2005-476c-9ffd-894ed832abe4": PartnerInfo{
Name: "Node Haven",
ID: "3b53a9b3-2005-476c-9ffd-894ed832abe4",
},
"OSPP009": PartnerInfo{
"dc01ed96-2990-4819-9cb3-45d4846b9ad1": PartnerInfo{
Name: "Plesk",
ID: "OSPP009",
ID: "dc01ed96-2990-4819-9cb3-45d4846b9ad1",
},
"OSPP010": PartnerInfo{
"b02b9f0d-fac7-439c-8ba2-0c4634d5826f": PartnerInfo{
Name: "Pydio",
ID: "OSPP010",
ID: "b02b9f0d-fac7-439c-8ba2-0c4634d5826f",
},
"OSPP011": PartnerInfo{
"57855387-5a58-4a2b-97d2-15b1d76eea3c": PartnerInfo{
Name: "Raiden Network",
ID: "57855387-5a58-4a2b-97d2-15b1d76eea3c",
},
"4400d796-3777-4964-8536-22a4ae439ed3": PartnerInfo{
Name: "Satoshi Soup",
ID: "4400d796-3777-4964-8536-22a4ae439ed3",
},
"6e40f882-ef77-4a5d-b5ad-18525d3df023": PartnerInfo{
Name: "Sirin Labs",
ID: "6e40f882-ef77-4a5d-b5ad-18525d3df023",
},
"b6114126-c06d-49f9-8d23-3e0dd2e350ab": PartnerInfo{
Name: "Status Messenger",
ID: "b6114126-c06d-49f9-8d23-3e0dd2e350ab",
},
"aeedbe32-1519-4320-b2f4-33725c65af54": PartnerInfo{
Name: "Temporal",
ID: "aeedbe32-1519-4320-b2f4-33725c65af54",
},
"7bf23e53-6393-4bd0-8bf9-53ecf0de742f": PartnerInfo{
Name: "Terminal.co",
ID: "7bf23e53-6393-4bd0-8bf9-53ecf0de742f",
},
"8cd605fa-ad00-45b6-823e-550eddc611d6": PartnerInfo{
Name: "Zenko",
ID: "OSPP011",
ID: "8cd605fa-ad00-45b6-823e-550eddc611d6",
},
}
}