Skip to content

Added integration and Mocked Tests for DoTs#28

Merged
Mahendra-Chittupolu merged 1 commit intoprep-0-1-0from
dots_qa_prep
Aug 7, 2025
Merged

Added integration and Mocked Tests for DoTs#28
Mahendra-Chittupolu merged 1 commit intoprep-0-1-0from
dots_qa_prep

Conversation

@Mahendra-Chittupolu
Copy link
Contributor

@Mahendra-Chittupolu Mahendra-Chittupolu commented Aug 7, 2025

APICLI-3235

This PR includes the full testing implementation, including Mocked and integration tests
steps to test

  • Compile all the typescript files after generating client npm run build
  • to run Mocked Tests run mock test-mocked
  • to run Integration Tests run mock test-integration file=droplet.test.ts (change droplet.test.ts depending the file we wanted to test)
  • Additionally, I've created documentation detailing the outputs generated by these tests TestResults

@gitguardian
Copy link

gitguardian bot commented Aug 7, 2025

⚠️ GitGuardian has uncovered 2 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
19680094 Triggered Username Password 7e0d862 tests/mocked/databases.test.ts View secret
9441802 Triggered Generic High Entropy Secret 7e0d862 tests/mocked/containerRegistry.test.ts View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@Mahendra-Chittupolu
Copy link
Contributor Author

Mahendra-Chittupolu commented Aug 7, 2025

also, we can see few test cases are failing because of the Kiota's anyOf issue.

link to document regarding the issue : Kiota's anyOf

also, a github thread for this issue in this Link

@Mahendra-Chittupolu Mahendra-Chittupolu changed the title Added integration and Mocked Tests Added integration and Mocked Tests for DoTs Aug 7, 2025
@Mahendra-Chittupolu Mahendra-Chittupolu merged commit 91369c6 into prep-0-1-0 Aug 7, 2025
3 of 4 checks passed
SSharma-10 pushed a commit that referenced this pull request Aug 13, 2025
* Added TypeScript Linter for Dots

* Added TyprScript Linter Workflow

* Added TyprScript Linter Workflow

* Added TyprScript Linter Workflow

* Added TyprScript Linter Workflow

* Added TyprScript Linter Workflow

* Added TyprScript Linter Workflow

* Made a prep branch ready to release

* Made a prep branch ready to release

* Made a prep branch ready to release

* Made a prep branch ready to release

* Made a prep branch ready to release

* Made a prep branch ready to release

* Update package.json

* Update release.yml

* Update Makefile

* Update droplet.test.ts

* Update billling.test.ts

* bumpeversion and tag script changes

* [bot] Updated client based on openapi-42e49ab/clientgen (#11)

Co-authored-by: API Engineering <api-engineering@digitalocean.com>

* version bump

* Made few changes to make-file

* Made few changes to make-file

* Made few changes to make-file

* prep-0-1-0_final chanegs

* prep-0-1-0_final chanegs

* prep-0-1-0_final chanegs

* prep-0-1-0_final chanegs

* Update README.md

* Update README.md

* Update README.md

* Made Some Changes to Make file

* [bot] Updated client based on openapi-5d99aef/clientgen (#12)

Co-authored-by: API Engineering <api-engineering@digitalocean.com>

* Update package.json

* [bot] Updated client based on openapi-544ef64/clientgen (#13)

Co-authored-by: API Engineering <api-engineering@digitalocean.com>
Co-authored-by: mchittupolu <mchittupolu@digitalocean.com>

* Cleaning the Branch

* Rebasing to prep_final (#14) (#15)

* prep-0-1-0_final chanegs

* prep-0-1-0_final chanegs

* prep-0-1-0_final chanegs

* prep-0-1-0_final chanegs

* Update README.md

* Update README.md

* Update README.md

* Made Some Changes to Make file

* [bot] Updated client based on openapi-5d99aef/clientgen (#12)



* Update package.json

* [bot] Updated client based on openapi-544ef64/clientgen (#13)




* Cleaning the Branch

---------

Co-authored-by: digitalocean-engineering <security@digitalocean.com>
Co-authored-by: API Engineering <api-engineering@digitalocean.com>

* Added ReadTheDocs for TypeDoc

* [bot] Updated client based on openapi-866c5bb/clientgen (#16)

Co-authored-by: API Engineering <api-engineering@digitalocean.com>

* Update .readthedocs.yaml

* added sphinxconfig

* Update .readthedocs.yaml

* Update .readthedocs.yaml

* Update .readthedocs.yaml

* TypeDoc for readthedocs

* TypeDoc for readthedocs

* TypeDoc for readthedocs

* TypeDoc for readthedocs

* TypeDoc for readthedocs

* TypeDoc for readthedocs

* TypeDoc for readthedocs

* TypeDoc for readthedocs

* TypeDoc for readthedocs

* TypeDoc for readthedocs

* TypeDoc for readthedocs

* TypeDoc for readthedocs

* TypeDoc for readthedocs

* TypeDoc for readthedocs

* TypeDoc for readthedocs

* Update README.md

* Update README.md

* Update README.md

* Added few integration tests

* Update README.md

* Update .gitignore

* Create contribution.md

* Delete contribution.md

* Create CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Added Contributing.md

* Update README.md

* made changes for make file

* Update README.md

* made changes for make file

* [bot] Updated client based on openapi-fecaa57/clientgen (#18)

Co-authored-by: API Engineering <api-engineering@digitalocean.com>

* Cleaned Examples

* Update README.md

* Update CONTRIBUTING.md

* Update README.md

* Update CONTRIBUTING.md

* Updated readMe

* Added Apache 2.0 License (#21)

* Added copyright

* Bumped Patch Version

* [bot] Updated client based on openapi-445b911/clientgen (#19)

Co-authored-by: API Engineering <api-engineering@digitalocean.com>

* [bot] Updated client based on openapi-7626d23/clientgen (#23)

Co-authored-by: API Engineering <api-engineering@digitalocean.com>
Co-authored-by: mchittupolu <mchittupolu@digitalocean.com>

* [bot] Updated client based on openapi-3a64316/clientgen (#24)

Co-authored-by: API Engineering <api-engineering@digitalocean.com>
Co-authored-by: mchittupolu <mchittupolu@digitalocean.com>

* [bot] Updated client based on openapi-3e0e5fa/clientgen (#25)

Co-authored-by: API Engineering <api-engineering@digitalocean.com>
Co-authored-by: mchittupolu <mchittupolu@digitalocean.com>

* [bot] remove UNSPECIFIED from partner attachment enum: Re-Generated From digitalocean/openapi@418af61 (#26)

* [bot] Updated client based on openapi-418af61/clientgen

* made docs changes

---------

Co-authored-by: API Engineering <api-engineering@digitalocean.com>
Co-authored-by: mchittupolu <mchittupolu@digitalocean.com>
Co-authored-by: Mahendra_Chittupolu <60564420+Mahendra-Chittupolu@users.noreply.github.com>

* generated docs

* Made chnages in gitignore

* Added integration and Mocked Tests (#28)

* Commented snapShot and sshKeys code to skip errors

* [bot] Updated client based on openapi-5c389af/clientgen (#29)

Co-authored-by: API Engineering <api-engineering@digitalocean.com>

* Updated code with SECREV Comments

---------

Co-authored-by: mchittupolu <mchittupolu@digitalocean.com>
Co-authored-by: Mahendra_Chittupolu <60564420+Mahendra-Chittupolu@users.noreply.github.com>
Co-authored-by: digitalocean-engineering <security@digitalocean.com>
Co-authored-by: API Engineering <api-engineering@digitalocean.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