# Sprint 3 (Aug2 - Aug15) - Demo
## Zipper
```bash=
=== RUN Test_Compress_Force_OverWrite
Overwrite : zipper->Compress->compress zip test
ApplyCompress : assets1.zip ✔
Modify & Overwrite ✔
Decompressing with defaults ✔
Checksum of source files and decompressed directory ✔✔✔
ApplyCompress : assets2.zip ✔
Modify & Overwrite ✔
Decompressing with defaults ✔
Checksum of source files and decompressed directory ✔✔✔
12 total assertions
Overwrite : zipper->Compress->compress tar test
ApplyCompress : assets1.tar ✔
Modify & Overwrite ✔
Decompressing with defaults ✔
Checksum of source files and decompressed directory ✔✔✔
18 total assertions
Overwrite : zipper->Compress->compress tar.xz test
18 total assertions
Overwrite : zipper->Compress->compress tar.gz test
18 total assertions
Overwrite : zipper->Compress->compress tar.gz test
18 total assertions
--- PASS: Test_Compress_Force_OverWrite (0.01s)
=== RUN Test_Compress_Skip_OverWrite
Skip If Exist : zipper->Compress->compress zip test
18 total assertions
Skip If Exist : zipper->Compress->compress tar test
18 total assertions
Skip If Exist : zipper->Compress->compress tar.xz test
18 total assertions
Skip If Exist : zipper->Compress->compress tar.gz test
18 total assertions
Skip If Exist : zipper->Compress->compress tar.gz test
18 total assertions
--- PASS: Test_Compress_Skip_OverWrite (0.00s)
=== RUN Test_Compress
zipper->Compress->compress zip test
Compressing :assets1.zip ✔
Decompressing with defaults : assets1.zip ✔
Checksum of source files and decompressed directory ✔✔✔
Compressing :assets2.zip ✔
Decompressing with defaults : assets2.zip ✔
Checksum of source files and decompressed directory ✔✔✔
28 total assertions
zipper->Compress->compress tar test
Compressing :assets1.tar ✔
Decompressing with defaults : assets1.tar ✔
Checksum of source files and decompressed directory ✔✔✔
33 total assertions
zipper->Compress->compress tar.xz test
Compressing :assets1.tar.xz ✔
Decompressing with defaults : assets1.tar.xz ✔
Checksum of source files and decompressed directory ✔✔✔
38 total assertions
zipper->Compress->compress tar.gz test
Compressing :assets1.tar.gz ✔
Decompressing with defaults : assets1.tar.gz ✔
Checksum of source files and decompressed directory ✔✔✔
43 total assertions
zipper->Compress->compress tar.gz test
Compressing :assets1.tar.bz2 ✔
Decompressing with defaults : assets1.tar.bz2 ✔
Checksum of source files and decompressed directory ✔✔✔
48 total assertions
--- PASS: Test_Compress (0.02s)
PASS
ok gitlab.com/evatix-go/zipper/tests/integratedtests 0.030s
```
## ApplyDecompressDownload
```bash=
=== RUN Test_ApplyDownload
If no download instruction given the Apply should do noting and return empty errorwrapper ✔
1 total assertion
--- PASS: Test_ApplyDownload (0.00s)
=== RUN Test_CopyVerify
Apply Download Decompress -> Copy Path
Should Verify Error ✔
Should Return Zero Error ✔
3 total assertions
--- PASS: Test_CopyVerify (8.12s)
=== RUN Test_DownloadDecompress_Verify
Provided Download URL, should download, decompress, copy and modify path without any error ✔
4 total assertions
--- PASS: Test_DownloadDecompress_Verify (7.22s)
=== RUN Test_PathModifiers
Apply Download Decompress -> Path Modifiers
Should Verify Error ✔
5 total assertions
--- PASS: Test_PathModifiers (7.12s)
PASS
ok gitlab.com/evatix-go/zipper/tests/integratedtests/downloaddecompresstests 22.471s
```
## Pathhelper -> Download
```bash=
=== RUN Test_Download
Download ErrorWrapper Should Return False ✔
1 total assertion
Download Content Should Resemble Temp Content ✔✔
3 total assertions
--- PASS: Test_Download (0.03s)
=== RUN Test_SkipOnExist
Download ErrorWrapper Should Return False ✔
4 total assertions
Download Content Should Not Resemble Temp Content ✔✔
6 total assertions
--- PASS: Test_SkipOnExist (0.00s)
PASS
ok gitlab.com/evatix-go/pathhelper/tests/integratedtests/downloadinsexectest 0.031s
```
## PureFTP
```bash=
=== RUN Test_PureFTPConfigFileVerify
Key :MaxLoad Value:4 Config - Given that config (not) exist in the system or config file,
Adding a new core config must add to the config file with proper separator
Regex Should Match ✔
Regex Should Occur Only Once ✔
2 total assertions
Key :MaxLoad Value:6 Config - Given that config exist in the system or config file,
Should update existing core config and changed to the config file with proper separator
Regex Should Match ✔
Regex Should Occur Only Once ✔
4 total assertions
--- PASS: Test_PureFTPConfigFileVerify (0.00s)
=== RUN Test_PureFTPConfigPerFileVerify
Name :MaxLoad Config:4Config - Given that config (not) exist in the system or config file,
Adding a new core config should create file in the specific directory
File Should Exist ✔
File Content Should Match ✔
6 total assertions
Name :MaxLoad Config:4Config - Given that config exist in the system or config file,
Updating a name config should update file in the specific directory
File Should Exist ✔
File Content Should Match ✔
8 total assertions
--- PASS: Test_PureFTPConfigPerFileVerify (0.00s)
=== RUN Test_PureFTPRemoveConfigKeysVerify
Removing Key Should Validate That The Key Do Not Exist In File
Regex Should Not Match ✔
Regex Should Occur Zero Times ✔
10 total assertions
--- PASS: Test_PureFTPRemoveConfigKeysVerify (0.00s)
=== RUN Test_PureFTPRemoveConfigPerFileVerify
Removing Config From PerFile Should Remove File From System
PerUserLimits : File Should Not Exist ✔
PassivePortRange : File Should Not Exist ✔
12 total assertions
--- PASS: Test_PureFTPRemoveConfigPerFileVerify (0.00s)
=== RUN Test_PureFtpEssentialsVerify
Port, MaxLoad, PerUserLimits, PassivePortRange - should create or insert configs into the ConfigPerFile section
with appropriate names and assert the final value
MaxLoad : File Should Exist ✔
File Content Should Be : 8 ✔
Bind : File Should Exist ✔
File Content Should Be : "*,9000" ✔
PerUserLimits : File Should Exist ✔
File Content Should Be : 3:20 ✔
PassivePortRange : File Should Exist ✔
File Content Should Be : 35000 50000 ✔
20 total assertions
--- PASS: Test_PureFtpEssentialsVerify (0.00s)
PASS
ok github.com/evatix-go/insexec/tests/integratedtests/pureftpapitests 0.013s
```
## Groupsmanageapi
```bash=
=== RUN Test_CreateGroupsErrorVerify
Given that group (not) exist in the operating system
Should create the os groups successfully without any error ✔
1 total assertion
Given that group exist in the operating system
Should not create the os groups and give specific error ✔
2 total assertions
Given that some groups exist and some don't exist in the operating system
Should create the os groups successfully for non existent and give specific errors for existent groups ✔
3 total assertions
--- PASS: Test_CreateGroupsErrorVerify (0.07s)
=== RUN Test_DeleteGroupsErrorVerify
Given that group (not) exist in the operating system
Should not drop and give specific errors ✔
4 total assertions
Given that groups exist in the operating system
Should drop groups without any errors ✔
5 total assertions
Given that some groups exist and some don't exist in the operating system
Should drop groups existent groups and give specific errors for non-existent groups ✔
6 total assertions
--- PASS: Test_DeleteGroupsErrorVerify (0.08s)
=== RUN Test_GroupManageErrorVerify
Drop / Delete - Given that group (not) exist in the operating system
Delete non exist using Method 'Delete'Should not drop and give specific errors ✔
7 total assertions
DropOnExist - Given that group (not) exist in the operating system
Delete non exist using Method 'DropOnExist'Should not give any error ✔
8 total assertions
Create / CreateOrUpdate - Given that group (not) exist in the operating system
Creating using Method 'CreateOrUpdate' Or 'Create'Should not give any error ✔
9 total assertions
Create - Given that group exist in the operating system
Creating using Method 'Create'Should give specific error ✔
10 total assertions
Delete - Given that group exist in the operating system
Removing using Method 'Delete'Should not give any error ✔
11 total assertions
Update - Given that group not exist in the operating system
Updating using Method 'Updating'Should give specific error ✔
12 total assertions
CreateOrUpdate - Given that group (not) exist in the operating system
Creating using Method 'CreateOrUpdate'Should not give any error ✔
13 total assertions
DropOnExist - Given that group (not) exist in the operating system
Delete non exist using Method 'DropOnExist'Should not give any error ✔
14 total assertions
UpdateOrSkipOnNonExist - Given that group (not) exist in the operating system
Performing 'UpdateOrSkipOnNonExist'Should not give any error ✔
15 total assertions
DropOrSkipOnNonExist - Given that group (not) exist in the operating system
Performing 'DropOrSkipOnNonExist'Should not give any error ✔
16 total assertions
UpdateOnExist - Given that group (not) exist in the operating system
Performing 'UpdateOnExist'Should not give any error ✔
17 total assertions
--- PASS: Test_GroupManageErrorVerify (0.27s)
=== RUN Test_GroupManageParamVerify
'CreateOrUpdate' - Update Validation - Given groups exist in the operating system
Disabling Sudoers Using Method 'CreateOrUpdate'
Should Verify Users And Groups Do Not Have Sudo Privilege
noexista Should Not Be Part Of Sudoers ✔
groupmanageuserw Should Not Be Part Of Sudoers ✔
groupmanageuserr Should Not Be Part Of Sudoers ✔
20 total assertions
'CreateOrUpdate' - Update Validation - Given groups exist in the operating system
Enabling Sudoers Using Method 'CreateOrUpdate'
Should Verify Users And Groups Have Sudo Privilege
noexista Should Be Part Of Sudoers ✔
groupmanageuserw Should Be Part Of Sudoers ✔
groupmanageuserr Should Be Part Of Sudoers ✔
23 total assertions
'CreateOrUpdate' - Update Validation - Given groups exist in the operating system
Removing All Group Users Using Method 'CreateOrUpdate'
Should Verify Users Do Not Exist In The System
groupmanageuserw Should Be Removed From System ✔
groupmanageuserr Should Be Removed From System ✔
25 total assertions
'Update' - Update Validation - Given groups exist in the operating system
Disabling Sudoers Using Method 'Update'
Should Verify Users And Groups Do Not Have Sudo Privilege
noexistb Should Not Be Part Of Sudoers ✔
groupmanageuserj Should Not Be Part Of Sudoers ✔
groupmanageuserk Should Not Be Part Of Sudoers ✔
28 total assertions
'Update' - Update Validation - Given groups exist in the operating system
Enabling Sudoers Using Method 'Update'
Should Verify Users And Groups Have Sudo Privilege
noexistb Should Be Part Of Sudoers ✔
groupmanageuserj Should Be Part Of Sudoers ✔
groupmanageuserk Should Be Part Of Sudoers ✔
31 total assertions
'Update' - Update Validation - Given groups exist in the operating system
Removing All Group Users Using Method 'Update'
Should Verify Users Do Not Exist In The System
groupmanageuserj Should Be Removed From System ✔
groupmanageuserk Should Be Removed From System ✔
33 total assertions
'Delete' - Given groups exist in the operating system
Removing All Groups And Users Using Method 'Delete'
Should Verify Users And Groups Do Not Exist In The System
groupmanageuserw Should Be Removed From System ✔
groupmanageuserr Should Be Removed From System ✔
groupmanageuserj Should Be Removed From System ✔
groupmanageuserk Should Be Removed From System ✔
noexistb Should Not Exist In System ✔
noexista Should Not Exist In System ✔
39 total assertions
--- PASS: Test_GroupManageParamVerify (0.84s)
=== RUN Test_GroupSudoersVerify
Given that group not exist in the operating system
Should give specific errors
Error Verify ✔
40 total assertions
Given that group exist in the operating system
Should not give errors also check user added to group act as sudoer
Error Verify ✔
sdusergg Should Act As Sudoers ✔
42 total assertions
Given that some groups exist and some don't exist in the operating system
Should give errors for non-existent ones and also check user added to existing groups
act as sudoer
Error Verify ✔
sduseryy Should Act As Sudoers ✔
44 total assertions
--- PASS: Test_GroupSudoersVerify (0.25s)
=== RUN Test_ManageUsersVerify
Given that group not exist in the operation system
should give specific errors
Error Verify ✔
45 total assertions
Given that group exist in the operation system
should not give error, verify group users sudoers, shell and password set status
Error Verify ✔
usermanageone should have shell : /bin/bash ✔
usermanageone should have password set ✔
usermanageone Added To Sudoers : User Should Be In Sudoers ✔
usermanagetwo should have shell : /bin/bash ✔
usermanagetwo should have password set ✔
usermanagetwo Added To Sudoers : User Should Be In Sudoers ✔
52 total assertions
Given that some groups exist and some don't exist in the operation system
should give error for non existent one and verify existent group users sudoers, shell and password set status
Error Verify ✔
usermanageone should have shell : /bin/bash ✔
usermanageone should have password set ✔
usermanageone Added To Sudoers : User Should Be In Sudoers ✔
usermanagetwo should have shell : /bin/bash ✔
usermanagetwo should have password set ✔
usermanagetwo Added To Sudoers : User Should Be In Sudoers ✔
59 total assertions
--- PASS: Test_ManageUsersVerify (0.39s)
=== RUN Test_UpdateNamesVerify
Given that group not exist in the operating system
Should give specific errors
Error Verify ✔
60 total assertions
Given that group exist in the operating system
Should not give any errors and check group members and sudoers
Error Verify ✔
creategroupb Should Exist In The System ✔
usermanageone Should Be Part Of Group :creategroupb ✔
usermanagetwo Should Be Part Of Group :creategroupb ✔
Members of group creategroupb should not be in Sudoers ✔
65 total assertions
Given that some groups exist and some don't exist in the operating system
Should give errors for non-existent groups and check group members and sudoers for
Existent groups
Error Verify ✔
creategroupa Should Exist In The System ✔
usermanageone Should Be Part Of Group :creategroupa ✔
usermanagetwo Should Be Part Of Group :creategroupa ✔
Members of group creategroupa should not be in Sudoers ✔
70 total assertions
--- PASS: Test_UpdateNamesVerify (0.33s)
PASS
ok gitlab.com/evatix-go/osacl/tests/integratedtests/groupsmanageapitests 2.241s
```