Skip to content

Dev environment setup and improvements#21

Merged
whiteh merged 11 commits intoupgrade-openrestyfrom
automated-tests
Mar 20, 2026
Merged

Dev environment setup and improvements#21
whiteh merged 11 commits intoupgrade-openrestyfrom
automated-tests

Conversation

@whiteh
Copy link
Copy Markdown
Contributor

@whiteh whiteh commented Jan 27, 2026

Some quality of life housekeeping for this project:

  1. Unit test refactor and coverage increase - follows standard Lua practice now, so we can simplify running them
  2. Docker containers separated out and simplified
  3. VSCode dev container added for ease of test feedback
  4. More straightforward coverage checker implementation
  5. Updated Readme with dev instructions.
  6. Linting set up with some fixes applied

@whiteh whiteh requested a review from a team as a code owner January 27, 2026 14:40
@whiteh whiteh changed the title Automated tests Dev environment setup and improvements Mar 20, 2026
@whiteh whiteh merged commit 0506f3d into upgrade-openresty Mar 20, 2026
1 check passed
@whiteh whiteh deleted the automated-tests branch March 20, 2026 14:18
whiteh added a commit that referenced this pull request Mar 24, 2026
* Update container to Ubuntu 24.04(noble). Openresty 1.27.1.2. OpenSSL 3.4.3

* Update package version number

* Dev environment setup and improvements (#21)

* Some initial tests

* Fix Constants global. Add more cookie handling tests.

* More utils tests

* Update test strategy. Add coverage back in

* Update readme

* Update github action

* fix linter warnings

* update readme

* copy .luacov to dockerfile

* Add dev container config

* Readme updates. Exclude luacov artifacts in gitignore

---------

Co-authored-by: Richard Walkden <richard.walkden@netacea.com>

---------

Co-authored-by: Richard Walkden <richard.walkden@netacea.com>
whiteh added a commit that referenced this pull request Mar 24, 2026
* Add support for custom cookie names

* Kinesis ingest (#14)

* Refactor and add v3 cookies (#17)

* Add in custom cookie attributes (#18)

* Extract cookie functions

* Refactor hash building

* Extract bToHex and hashMitataCookie

* Refactor get_mitata_cookie

* Rename addCookie to something more descriptive. Add some comments to work on flow

* Unit tests for ingest only mode cookie handling

* Move user_id generation

* Rename addMitataCookie to make it clear it's minting a new cookie

* Refactor ingest mitata cookie handling. Needs further work

* Remove unused constants

* Fix Kinesis ingest after refactor

* Merge refactor branch into v2-v3-cookies

- Refactor main lua_resty_netacea.lua with improved code structure
- Add new constants module (lua_resty_netacea_constants.lua)
- Replace old cookies module with v3 implementation
- Add new ingest module for data processing
- Add protector client module
- Add utility functions in netacea_utils.lua
- Update docker-compose and rockspec configuration

* Update standard config layout

* Add in custom cookie attributes

* UPdate options setting for cookie attributes

* Replace captcha cookie attributes

* Update match dictionary values (#19)

* Extract cookie functions

* Refactor hash building

* Extract bToHex and hashMitataCookie

* Refactor get_mitata_cookie

* Rename addCookie to something more descriptive. Add some comments to work on flow

* Unit tests for ingest only mode cookie handling

* Move user_id generation

* Rename addMitataCookie to make it clear it's minting a new cookie

* Refactor ingest mitata cookie handling. Needs further work

* Remove unused constants

* Fix Kinesis ingest after refactor

* Merge refactor branch into v2-v3-cookies

- Refactor main lua_resty_netacea.lua with improved code structure
- Add new constants module (lua_resty_netacea_constants.lua)
- Replace old cookies module with v3 implementation
- Add new ingest module for data processing
- Add protector client module
- Add utility functions in netacea_utils.lua
- Update docker-compose and rockspec configuration

* Update standard config layout

* Update match dictionary values

* Add server_tokens off to server config

* Unit tests for netacea_utils.lua

* Unit tests for cookies_v3

* Standard userId format

* Fix ingest. Set appropriate logging levels

* Updates 2026-01 (#20)

* Update container to Ubuntu 24.04(noble). Openresty 1.27.1.2. OpenSSL 3.4.3

* Update package version number

* Dev environment setup and improvements (#21)

* Some initial tests

* Fix Constants global. Add more cookie handling tests.

* More utils tests

* Update test strategy. Add coverage back in

* Update readme

* Update github action

* fix linter warnings

* update readme

* copy .luacov to dockerfile

* Add dev container config

* Readme updates. Exclude luacov artifacts in gitignore

---------

Co-authored-by: Richard Walkden <richard.walkden@netacea.com>

---------

Co-authored-by: Richard Walkden <richard.walkden@netacea.com>

---------

Co-authored-by: Richard Walkden <richard.walkden@netacea.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants