menu-traversals #108

Closed
carlos wants to merge 72 commits from menu-traversals into master
3 changed files with 54 additions and 22 deletions
Showing only changes of commit 170d075545 - Show all commits

View File

@ -13,6 +13,7 @@ import (
"git.grassecon.net/urdt/ussd/internal/handlers" "git.grassecon.net/urdt/ussd/internal/handlers"
"git.grassecon.net/urdt/ussd/internal/storage" "git.grassecon.net/urdt/ussd/internal/storage"
) )
var ( var (
logg = logging.NewVanilla() logg = logging.NewVanilla()
scriptDir = path.Join("services", "registration") scriptDir = path.Join("services", "registration")

View File

@ -6,7 +6,7 @@ import (
"testing" "testing"
"git.grassecon.net/urdt/ussd/driver" "git.grassecon.net/urdt/ussd/driver"
"git.grassecon.net/urdt/ussd/enginetest" "git.grassecon.net/urdt/ussd/engine"
) )
var ( var (

View File

@ -1,19 +1,50 @@
[
{ {
"user_registration": [ "name": "session one",
"groups": [
{ {
"input": ["","0", "0","1234","1234"], "name": "account_creation_successful",
"expected": "Registration successful" "steps": [
}
],
"pincheck": [
{ {
"input": ["1234"], "input": "",
"expected": "PIN valid" "expectedContent": "Welcome to Sarafu Network\nPlease select a language\n0:english\n1:kiswahili"
}, },
{ {
"input": ["5678"], "input": "0",
"expected": "PIN invalid" "expectedContent": "Do you agree to terms and conditions?\n0:yes\n1:no"
},
{
"input": "0",
"expectedContent": "Please enter a new four number PIN for your account:\n0:Exit"
},
{
"input": "1234",
"expectedContent": "Enter your four number PIN again:"
},
{
"input": "1234",
"expectedContent": "Enter your four number PIN again:"
}
]
},
{
"name": "account_creation_accept_terms",
"steps": [
{
"input": "",
"expectedContent": "Welcome to Sarafu Network\nPlease select a language\n0:english\n1:kiswahili"
},
{
"input": "0",
"expectedContent": "Do you agree to terms and conditions?\n0:yes\n1:no"
},
{
"input": "0",
"expectedContent": "Please enter a new four number PIN for your account:\n0:Exit"
}
]
} }
] ]
} }
]