ctrlc03
e79a46f47a
test(firestore rules): amended tests for firestore rules
...
reflected PR review comments in the tests for the new Firestore rules. Also amended the rules to
remove unnecessary coordinator privileges.
2023-02-03 10:42:02 +01:00
ctrlc03
5d80c593d7
test(firestore security rules): revisiting tests for the security rules
...
amending the tests for the security rules to ensure they work on the emulator too.
2023-02-03 10:42:02 +01:00
ctrlc03
9c417e3000
refactor(security rules): clean up Firestore rules tests
...
clean up the unit tests for the new Firestore security rules
2023-02-03 10:42:02 +01:00
ctrlc03
2bb85f207d
fix(security rules): fixed Firestore security rules
...
Fixed the security rules to apply the same rules to any subcollection of the ceremonies collection.
Added an extra test case to confirm the correctness of the rule.
2023-02-03 10:42:02 +01:00
ctrlc03
fca06a497f
fix(security rules): adding missing authentication test utilities file
...
Pushing a missing file which includes test utilities related to authentication
2023-02-03 10:42:02 +01:00
ctrlc03
7fb1c4abac
feat(security rules): implemented Firestore security rules
...
Implemented security rules to protect data in the Firestore db. This includes test cases to verify
the correctness of the security rules.
fix #28
2023-02-03 10:42:02 +01:00
ctrlc03
57f46172ce
test(database): added tests to cover all functions
...
Implemented more tests to cover newest functions added to `helpers/database.ts`
2023-02-02 22:02:56 +00:00
ctrlc03
d04168c196
Merge branch 'dev' of github.com:ctrlc03/mpc-phase2-suite into tests/unit_query
2023-02-02 21:56:43 +00:00
ctrlc03
e42e80577b
test(database): amending tests after PR review comments
...
amending the tests according to the PR review comments.
2023-02-02 19:37:38 +00:00
ctrlc03
a20aaf9688
Merge branch 'dev' of github.com:quadratic-funding/mpc-phase2-suite into tests/setup
2023-02-02 17:30:11 +00:00
ctrlc03
d9b673ec0b
refactor(setup): removed unneeded files
...
removed unneeded files and remove skip form backend tests.
2023-02-02 17:22:39 +00:00
ctrlc03
a32c44fae3
test(setup): merged dev and fixed conflicts
...
Merged updated dev branch, fixed conflicts and added extra test cases for newly introduced helpers
functions.
2023-02-02 17:10:33 +00:00
ctrlc03
46e98045ce
fix(backend-storage): merged dev and amended after PR review
...
Amended code to reflect the PR review, and merged the latest changes in the dev branch which
required further changes to the code.
2023-02-02 15:43:32 +00:00
ctrlc03
5d34de170c
Merge pull request #311 from ctrlc03/dev
...
fix(lib.utils tests): fixing lib.utils tests which cause a compilation error
2023-02-02 14:23:08 +00:00
ctrlc03
a9533076e9
fix(lib.utils tests): fixing lib.utils tests which cause a compilation error
...
Fixed lib.utils tests which caused a compilation error due to a change in the custom types.
2023-02-02 14:09:29 +00:00
ctrlc03
be59026394
test(database unit): refactored database unit tests after dev branch updates
...
Refactored the database unit tests (previously query.test) after the naming changes and refactoring
of dev.
2023-02-02 14:01:04 +00:00
ctrlc03
332752b24f
Merge pull request #306 from ctrlc03/tests/unit_core_utils
...
test(unit-lib-core): implemented unit tests for core utilities
2023-02-02 12:39:00 +00:00
ctrlc03
0b5060f5df
Merge branch 'dev' of github.com:ctrlc03/mpc-phase2-suite into tests/unit_query
2023-02-02 12:08:10 +00:00
ctrlc03
9372a296ea
fix(github sybil): merged dev branch
...
merged the updated dev branch and fixed conflicts.
2023-02-02 12:05:36 +00:00
ctrlc03
463405fe82
test(authentication/services unit): refactored the unit tests
...
Refactored the unit tests and divided into authentication and services, to reflect the new project
naming convention.
2023-02-02 10:55:39 +00:00
ctrlc03
74b3fa7488
test(firebase unit): merged latest dev branch and fixed conflicts
...
Fixed conflicts and amended tests to use updated code structure.
2023-02-02 10:18:31 +00:00
Giacomo
ec0a74a38f
Merge pull request #302 from 0xjei/refactor/pkg-opt
...
Command refactoring pre-opt
2023-02-02 11:05:03 +01:00
Jeeiii
cd8842fc93
chore: typos
2023-02-02 10:58:39 +01:00
ctrlc03
de3f3950fa
test(firebase unit): fixing PR comments
...
Implemented changes after the PR review. Reduced the code size and introduced a more general test
function to set custom claims.
2023-02-02 09:51:55 +00:00
ctrlc03
388caac7bb
fix(generategetobjectpresignedurl): implemented changes to restrict arbitrary access
...
Implemented changes to the generateGetObjectPreSignedUrl cloud function to prevent creation of
pre-signed URLs for arbitrary objects.
fix #309
2023-02-01 11:53:31 +00:00
Jeeiii
23422b340d
style: lint code
2023-02-01 12:49:22 +01:00
Jeeiii
655a02ed33
fix: wrong Date type for start/end ceremony dates expressed in ms
2023-02-01 12:48:09 +01:00
Jeeiii
1bc5bafd55
refactor: move core types to actions package; sync backend and phase2cli packages with new changes
2023-02-01 12:08:24 +01:00
Jeeiii
4975d96928
fix: wrong version for peer dependency actions package
2023-02-01 12:07:38 +01:00
Jeeiii
06f73d09c0
docs: add documentation to environments
...
re #214
2023-02-01 12:05:33 +01:00
ctrlc03
a71c53134b
fix(setup tests): fixed bugs in tests and refactored
...
Fixed CI tests bugs and refactored the code.
2023-01-31 15:09:42 +00:00
ctrlc03
e56aff17c2
fix(firebase unit tests): removed redundant beforeAll block
...
removed a redundant beforeAll block which prevents CI tests to work.
2023-01-31 12:13:06 +00:00
ctrlc03
68a8f5b252
Merge branch 'tests/unit_firebase' of github.com:ctrlc03/mpc-phase2-suite into tests/unit_firebase
2023-01-31 12:04:02 +00:00
ctrlc03
a8a4da26c3
test(firebase unit tests): refactored and completed Firebase unit tests
...
unit test refactoring and completing missing function to achieve 100% coverage. Tests run both on
emulator and on prod test environment.
2023-01-31 11:59:34 +00:00
ctrlc03
ee79260229
fix(firebase unit tests): merged upstream dev
...
Merged latest upstream dev branch
2023-01-31 11:09:19 +00:00
ctrlc03
ef4ea8f1c1
test(query unit tests): implemented unit tests for the query.ts helper
...
Implemented unit tests for the query.ts helper which provides functionalities to query the Firestore
DB.
fix #305
2023-01-30 23:34:16 +00:00
ctrlc03
27c82940db
test(setup tests): added more tests and utilities to clean up after a test
...
Implemented further test cases (reached test coverage objective), added test utilities for mock data
creation and clean up and refactored test cases.
2023-01-30 18:09:03 +00:00
Jeeiii
30d63434cc
refactor: merge services into same library; moved files utils into phase2cli package
2023-01-30 16:31:55 +01:00
ctrlc03
6e4e0b0b08
fix(setup tests): added missing file
...
commiting missing core helper file with exported functions for testing
2023-01-30 15:00:25 +00:00
ctrlc03
a7e46c854a
test(setup): more setup tests and test utilities
...
Implemented extra test cases, and added test utils
2023-01-30 14:55:11 +00:00
Jeeiii
75d3362260
refactor: add methods to reproduce rules for storage, local and collections file and folder paths
2023-01-30 15:31:04 +01:00
ctrlc03
24e588e5f4
fix(setup): fix conflicts
...
fix remote conflicts
2023-01-30 12:14:24 +00:00
ctrlc03
e35a18e949
test(setup): added extra test cases for the Setup command
...
implemented more test cases for the Setup command and related functions
2023-01-30 12:12:00 +00:00
Jeeiii
e1a98a8d4b
refactor: update and move constants to actions package
...
BREAKING CHANGE: constants are now part of actions package
2023-01-30 11:32:32 +01:00
ctrlc03
69f713b692
Merge branch 'feat/githubsybil' of github.com:ctrlc03/mpc-phase2-suite into feat/githubsybil
2023-01-29 23:01:20 +00:00
ctrlc03
796e5c13e4
feat(sybil): parameterized the GitHub sybil checks code
...
Added parameters for the function that can be used to restrict access to more reputable accounts.
2023-01-29 22:57:43 +00:00
ctrlc03
89eba0ef32
refactor(sybil): merge updates to the dev branch
...
merge the updates to the dev branch into this PR branch, and resolve conflicts
2023-01-29 22:39:27 +00:00
ctrlc03
58df12beb2
test(setup tests): implemented e2e and unit tests around the Setup action
...
Implemented e2e and unit tests for the Setup action and its supporting helpers such as storage
functions. Additionally implemented mock utilities for tests.
Note: This is WIP.
fix #276
2023-01-29 16:53:20 +01:00
ctrlc03
9e1c352bbc
test(setup): continued with Setup tests
...
Continued working on implementing Setup tests
2023-01-29 16:53:20 +01:00
ctrlc03
da0df63cad
test(setup): implemented first tests for the setup action
...
Implemented various tests for functions and scenarios related to setting up a new ceremony
fix #278
2023-01-29 16:53:20 +01:00