forked from allevaton/starterupper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
31 lines (26 loc) · 963 Bytes
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# Test suite
# ---------------------------------------------------------------------
Test() {
username=$(User_getUsername)
fullname=$(User_getFullName)
email=$(User_getEmail)
echo $fullname
echo $username
echo $email
echo "Valid email: $(Valid_email "LAWRANCEJ@WIT.EDU")"
verified=$(Utility_nonEmptyValueMatchesRegex "$fullname" "")
public_key=$(SSH_getPublicKey)
echo $public_key
connected=$(SSH_connected "github.com")
echo "SSH connected: $connected"
connected=$(SSH_connected "bitbucket.org")
echo "SSH connected: $connected"
connected=$(SSH_connected "gitlab.com")
echo "SSH connected: $connected"
# Git_showRepositories
echo "$(Github_nameAvailable $(Host_getUsername "github"))"
echo "$(Github_nameAvailable "asdlfkjawer2")"
}
query=$(Request_query "GET /?user.name=Joey+Lawrance&user.email=lawrancej%40wit.edu HTTP/1.1\n")
Query_lookup "$query" "user.email"