-
Notifications
You must be signed in to change notification settings - Fork 5
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
2 changed files
with
33 additions
and
54 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -129,119 +129,98 @@ func TestReadyToSubmit(t *testing.T) { | |
}, | ||
{ | ||
r: &models.RegistrationForm{ | ||
Entity: &ivms101.LegalPerson{CountryOfRegistration: "GY"}, | ||
Contacts: &gds.Contacts{Technical: &gds.Contact{Email: "[email protected]"}}, | ||
Trixo: &gds.TRIXOQuestionnaire{PrimaryNationalJurisdiction: "GY"}, | ||
Testnet: &models.NetworkDetails{CommonName: "test.trisa.example.com"}, | ||
Mainnet: &models.NetworkDetails{CommonName: "trisa.example.com"}, | ||
}, | ||
assert: require.False, | ||
networks: []string{"testnet", "mainnet", "all", "both", ""}, | ||
message: "registration form without vasp categories should not be ready to submit", | ||
}, | ||
{ | ||
r: &models.RegistrationForm{ | ||
VaspCategories: []string{"P2P", "other"}, | ||
Contacts: &gds.Contacts{Technical: &gds.Contact{Email: "[email protected]"}}, | ||
Trixo: &gds.TRIXOQuestionnaire{PrimaryNationalJurisdiction: "GY"}, | ||
Testnet: &models.NetworkDetails{CommonName: "test.trisa.example.com"}, | ||
Mainnet: &models.NetworkDetails{CommonName: "trisa.example.com"}, | ||
}, | ||
assert: require.False, | ||
networks: []string{"testnet", "mainnet", "all", "both", ""}, | ||
message: "registration form without entity should not be ready to submit", | ||
}, | ||
{ | ||
r: &models.RegistrationForm{ | ||
VaspCategories: []string{"P2P", "other"}, | ||
Entity: &ivms101.LegalPerson{CountryOfRegistration: "GY"}, | ||
Trixo: &gds.TRIXOQuestionnaire{PrimaryNationalJurisdiction: "GY"}, | ||
Testnet: &models.NetworkDetails{CommonName: "test.trisa.example.com"}, | ||
Mainnet: &models.NetworkDetails{CommonName: "trisa.example.com"}, | ||
Entity: &ivms101.LegalPerson{CountryOfRegistration: "GY"}, | ||
Trixo: &gds.TRIXOQuestionnaire{PrimaryNationalJurisdiction: "GY"}, | ||
Testnet: &models.NetworkDetails{CommonName: "test.trisa.example.com"}, | ||
Mainnet: &models.NetworkDetails{CommonName: "trisa.example.com"}, | ||
}, | ||
assert: require.False, | ||
networks: []string{"testnet", "mainnet", "all", "both", ""}, | ||
message: "registration form without contacts should not be ready to submit", | ||
}, | ||
{ | ||
r: &models.RegistrationForm{ | ||
VaspCategories: []string{"P2P", "other"}, | ||
Entity: &ivms101.LegalPerson{CountryOfRegistration: "GY"}, | ||
Contacts: &gds.Contacts{Technical: &gds.Contact{Email: "[email protected]"}}, | ||
Testnet: &models.NetworkDetails{CommonName: "test.trisa.example.com"}, | ||
Mainnet: &models.NetworkDetails{CommonName: "trisa.example.com"}, | ||
Entity: &ivms101.LegalPerson{CountryOfRegistration: "GY"}, | ||
Contacts: &gds.Contacts{Technical: &gds.Contact{Email: "[email protected]"}}, | ||
Testnet: &models.NetworkDetails{CommonName: "test.trisa.example.com"}, | ||
Mainnet: &models.NetworkDetails{CommonName: "trisa.example.com"}, | ||
}, | ||
assert: require.False, | ||
networks: []string{"testnet", "mainnet", "all", "both", ""}, | ||
message: "registration form without trixo should not be ready to submit", | ||
}, | ||
{ | ||
r: &models.RegistrationForm{ | ||
VaspCategories: []string{"P2P", "other"}, | ||
Entity: &ivms101.LegalPerson{CountryOfRegistration: "GY"}, | ||
Contacts: &gds.Contacts{Technical: &gds.Contact{Email: "[email protected]"}}, | ||
Trixo: &gds.TRIXOQuestionnaire{PrimaryNationalJurisdiction: "GY"}, | ||
Entity: &ivms101.LegalPerson{CountryOfRegistration: "GY"}, | ||
Contacts: &gds.Contacts{Technical: &gds.Contact{Email: "[email protected]"}}, | ||
Trixo: &gds.TRIXOQuestionnaire{PrimaryNationalJurisdiction: "GY"}, | ||
}, | ||
assert: require.False, | ||
networks: []string{"testnet", "mainnet", "all", "both", ""}, | ||
message: "registration form without network details should not be ready to submit", | ||
}, | ||
{ | ||
r: &models.RegistrationForm{ | ||
VaspCategories: []string{"P2P", "other"}, | ||
Entity: &ivms101.LegalPerson{CountryOfRegistration: "GY"}, | ||
Contacts: &gds.Contacts{Technical: &gds.Contact{Email: "[email protected]"}}, | ||
Trixo: &gds.TRIXOQuestionnaire{PrimaryNationalJurisdiction: "GY"}, | ||
Testnet: &models.NetworkDetails{CommonName: "test.trisa.example.com"}, | ||
Entity: &ivms101.LegalPerson{CountryOfRegistration: "GY"}, | ||
Contacts: &gds.Contacts{Technical: &gds.Contact{Email: "[email protected]"}}, | ||
Trixo: &gds.TRIXOQuestionnaire{PrimaryNationalJurisdiction: "GY"}, | ||
Testnet: &models.NetworkDetails{CommonName: "test.trisa.example.com"}, | ||
}, | ||
assert: require.False, | ||
networks: []string{"mainnet", "all", "both", ""}, | ||
message: "registration form with testnet network details should not be ready to submit", | ||
}, | ||
{ | ||
r: &models.RegistrationForm{ | ||
VaspCategories: []string{"P2P", "other"}, | ||
Entity: &ivms101.LegalPerson{CountryOfRegistration: "GY"}, | ||
Contacts: &gds.Contacts{Technical: &gds.Contact{Email: "[email protected]"}}, | ||
Trixo: &gds.TRIXOQuestionnaire{PrimaryNationalJurisdiction: "GY"}, | ||
Testnet: &models.NetworkDetails{CommonName: "test.trisa.example.com"}, | ||
Entity: &ivms101.LegalPerson{CountryOfRegistration: "GY"}, | ||
Contacts: &gds.Contacts{Technical: &gds.Contact{Email: "[email protected]"}}, | ||
Trixo: &gds.TRIXOQuestionnaire{PrimaryNationalJurisdiction: "GY"}, | ||
Testnet: &models.NetworkDetails{CommonName: "test.trisa.example.com"}, | ||
}, | ||
assert: require.True, | ||
networks: []string{"testnet"}, | ||
message: "registration form with testnet network details should be ready to submit", | ||
}, | ||
{ | ||
r: &models.RegistrationForm{ | ||
VaspCategories: []string{"P2P", "other"}, | ||
Entity: &ivms101.LegalPerson{CountryOfRegistration: "GY"}, | ||
Contacts: &gds.Contacts{Technical: &gds.Contact{Email: "[email protected]"}}, | ||
Trixo: &gds.TRIXOQuestionnaire{PrimaryNationalJurisdiction: "GY"}, | ||
Mainnet: &models.NetworkDetails{CommonName: "trisa.example.com"}, | ||
Entity: &ivms101.LegalPerson{CountryOfRegistration: "GY"}, | ||
Contacts: &gds.Contacts{Technical: &gds.Contact{Email: "[email protected]"}}, | ||
Trixo: &gds.TRIXOQuestionnaire{PrimaryNationalJurisdiction: "GY"}, | ||
Mainnet: &models.NetworkDetails{CommonName: "trisa.example.com"}, | ||
}, | ||
assert: require.False, | ||
networks: []string{"testnet", "all", "both", ""}, | ||
message: "registration form with mainnet network details should not be ready to submit", | ||
}, | ||
{ | ||
r: &models.RegistrationForm{ | ||
VaspCategories: []string{"P2P", "other"}, | ||
Entity: &ivms101.LegalPerson{CountryOfRegistration: "GY"}, | ||
Contacts: &gds.Contacts{Technical: &gds.Contact{Email: "[email protected]"}}, | ||
Trixo: &gds.TRIXOQuestionnaire{PrimaryNationalJurisdiction: "GY"}, | ||
Mainnet: &models.NetworkDetails{CommonName: "trisa.example.com"}, | ||
Entity: &ivms101.LegalPerson{CountryOfRegistration: "GY"}, | ||
Contacts: &gds.Contacts{Technical: &gds.Contact{Email: "[email protected]"}}, | ||
Trixo: &gds.TRIXOQuestionnaire{PrimaryNationalJurisdiction: "GY"}, | ||
Mainnet: &models.NetworkDetails{CommonName: "trisa.example.com"}, | ||
}, | ||
assert: require.True, | ||
networks: []string{"mainnet"}, | ||
message: "registration form with mainnet network details should be ready to submit", | ||
}, | ||
{ | ||
r: &models.RegistrationForm{ | ||
VaspCategories: []string{"P2P", "other"}, | ||
Entity: &ivms101.LegalPerson{CountryOfRegistration: "GY"}, | ||
Contacts: &gds.Contacts{Technical: &gds.Contact{Email: "[email protected]"}}, | ||
Trixo: &gds.TRIXOQuestionnaire{PrimaryNationalJurisdiction: "GY"}, | ||
Testnet: &models.NetworkDetails{CommonName: "test.trisa.example.com"}, | ||
Mainnet: &models.NetworkDetails{CommonName: "trisa.example.com"}, | ||
Entity: &ivms101.LegalPerson{CountryOfRegistration: "GY"}, | ||
Contacts: &gds.Contacts{Technical: &gds.Contact{Email: "[email protected]"}}, | ||
Trixo: &gds.TRIXOQuestionnaire{PrimaryNationalJurisdiction: "GY"}, | ||
Testnet: &models.NetworkDetails{CommonName: "test.trisa.example.com"}, | ||
Mainnet: &models.NetworkDetails{CommonName: "trisa.example.com"}, | ||
}, | ||
assert: require.True, | ||
networks: []string{"testnet", "mainnet", "all", "both", ""}, | ||
|