-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtestcases.txt
More file actions
62 lines (54 loc) · 1.56 KB
/
Copy pathtestcases.txt
File metadata and controls
62 lines (54 loc) · 1.56 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Edge Case Tests
Testcase: 10 MB File (random format)
Commands:
Client 1:
<add>
<commit>
<push>
Expected:
Server and client should have the file in both of their working directories, the hash should
have been successfully calculated and the manifests are the same between server and client.
Testcase: Any testfile
Commands:
Client 1:
<add>
<commit>
<push>
Client 2:
<update>
<upgrade>
Expected:
The server, client 1, and client 2 should have the same files as well as the same manifests
Testcase: Any testfile
Commands:
Any Client:
<add>
<push>
Expected:
The push should fail because the commit does not exist on the client. "Please commit before you
try to push to the server."
Testcase: Any file
Commands:
Any Client:
<add>
(Has not configured a port # or IP address)
<commit>
Expected:
Any command that needs to connect to the server would fail. Please configure your client with a
port and IP first.
Testcase: Any file
Commands:
Any Client:
(Has not called update before upgrade)
<upgrade>
Expected:
Upgrade will fail because it has no updates to apply to the manifest. There are no updates at
this time, please try again later.
Testcase: Any file
Commands:
Any Client:
<destroy>
(Any other command that connects to the server)
Expected:
Because the project has been deleted from the server, the client prints an error message. "The
project you are looking for does not exist."