Skip to content

Commit

Permalink
Next (#48)
Browse files Browse the repository at this point in the history
* Added users and organisations api methods

User Session

Logging in/out

Users

Get User

Update User

Activate User

Request Password

Reset Password

Organizations

Get All Organizations

Get Single Organization

Organization Roles

Organization Users

Transfer Organization Ownership

Organization Stacks

Organization Logs

* added requirements.txt file

* loaded install, changlog , codeowners and release.yml file

* Organized package structure

* Developed stack Implementation

* Code Optimized

* Added Mock test and Api Test cases

* Added test cases and coverage packages

* Added API documentation and added stacks test cases

* Added coverage reports generartion in github action

Added coverage report github action
Changed methods name
Changed unit test cases
Code improvements
API Documentation

* Added global fields class

* - General code improvements
- Corrected few testcases
- Single place for credentials
- linting added

* Feat/cs 40287 workflow class implemetation (#14)

* feat: ✨ implemented branches and aliases with unit and api test cases

* test: ✅ added mock tests for branches and aliases

* docs: 📝 added api documentation for branches and aliases

* feat: ✨ content type implementation with api references, unit test cases and api test cases

* test: renamed the api, mock, unit test file names of branch and alias

* test: renamed file path in branch and alias mock tests

* test: improved coverage report for branches and aliases

* test: Added mock test cases for content type

* docs: 📝 Cleared typo errors

* test: removed unwanted test files

* refactor: Code improvement for branches, aliases and content type implementation

* - General code improvements
- Testcases improvements

* - General code improvements
- Testcases improvements

* - General code improvements
- Formats are updated

* code enhancement

* Created Entry class and test cases

Created Entry Class
created entry class test cases

* feat: ✨ asset class implementation with tests and api docs

* Code improvements and changed test cases to new structure

* test: ✅ added resources and made some changes in api and unit test cases

* Updated Unit test cases.

* Webhook class Implementation

* Created workflow class

* Deleted secrets-scan.yml file

* Updated variable name

* Deleted sast-scan.yml file

* Feat/cs 40545 metadata class implemetation (#15)

* Metadata class implementation

* Deleted sast-scan.yml file

* Fixed PR comments

* Code optimisation and handling custom error exception

* Removed uids

* Feat/cs 40549 roles class implementation (#16)

* Created roles class with unit testcases, mock test cases and api test cases

* Updated coverage report github workflow file

* Added coverage install command

* Added pytest install command

* Updated stack class unit test file

* Added html coverage

* Added coverage reports and visualizations

* Removed visualisation

* Generating coverage report in svg format

* Added coverage-badge  install command

* Fixed PR comments and code optimisation

* Added coverage reports graphical visualisation in github page

* Created readme file

* changed variable name

* Updated readme file

* Update README.md

* Added auditlog class and license file (#17)

* Added auditlog class and license file

* Added test case for invalid inputs

* commented the idiom

It Allows You to Execute Code When the File Runs as a Script, but Not When It’s Imported as a Module

---------

Co-authored-by: Shailesh Mishra <[email protected]>

---------

Co-authored-by: Shailesh Mishra <[email protected]>

* Developed environment class implementation (#19)

* Developed environment class implementation

* Updated variable name

* Added CI-CD implementation (#20)

* Added CI-CD implementation

Added CICD implemetation
Updated code Optimization
Updated code for check package in test environment.

* Removed Unused files

* Feat/cs 41198 locale class implementation (#21)

* Added locale class implementation

* Implemented  taxonomy support (#22)

---------

Co-authored-by: harshithad0703 <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>

* Feat/cs 41199 label class implementation (#25)

* Next (#23)

* Added users and organisations api methods

User Session

Logging in/out

Users

Get User

Update User

Activate User

Request Password

Reset Password

Organizations

Get All Organizations

Get Single Organization

Organization Roles

Organization Users

Transfer Organization Ownership

Organization Stacks

Organization Logs

* added requirements.txt file

* loaded install, changlog , codeowners and release.yml file

* Organized package structure

* Developed stack Implementation

* Code Optimized

* Added Mock test and Api Test cases

* Added test cases and coverage packages

* Added API documentation and added stacks test cases

* Added coverage reports generartion in github action

Added coverage report github action
Changed methods name
Changed unit test cases
Code improvements
API Documentation

* Added global fields class

* - General code improvements
- Corrected few testcases
- Single place for credentials
- linting added

* Feat/cs 40287 workflow class implemetation (#14)

* feat: ✨ implemented branches and aliases with unit and api test cases

* test: ✅ added mock tests for branches and aliases

* docs: 📝 added api documentation for branches and aliases

* feat: ✨ content type implementation with api references, unit test cases and api test cases

* test: renamed the api, mock, unit test file names of branch and alias

* test: renamed file path in branch and alias mock tests

* test: improved coverage report for branches and aliases

* test: Added mock test cases for content type

* docs: 📝 Cleared typo errors

* test: removed unwanted test files

* refactor: Code improvement for branches, aliases and content type implementation

* - General code improvements
- Testcases improvements

* - General code improvements
- Testcases improvements

* - General code improvements
- Formats are updated

* code enhancement

* Created Entry class and test cases

Created Entry Class
created entry class test cases

* feat: ✨ asset class implementation with tests and api docs

* Code improvements and changed test cases to new structure

* test: ✅ added resources and made some changes in api and unit test cases

* Updated Unit test cases.

* Webhook class Implementation

* Created workflow class

* Deleted secrets-scan.yml file

* Updated variable name

* Deleted sast-scan.yml file

* Feat/cs 40545 metadata class implemetation (#15)

* Metadata class implementation

* Deleted sast-scan.yml file

* Fixed PR comments

* Code optimisation and handling custom error exception

* Removed uids

* Feat/cs 40549 roles class implementation (#16)

* Created roles class with unit testcases, mock test cases and api test cases

* Updated coverage report github workflow file

* Added coverage install command

* Added pytest install command

* Updated stack class unit test file

* Added html coverage

* Added coverage reports and visualizations

* Removed visualisation

* Generating coverage report in svg format

* Added coverage-badge  install command

* Fixed PR comments and code optimisation

* Added coverage reports graphical visualisation in github page

* Created readme file

* changed variable name

* Updated readme file

* Update README.md

* Added auditlog class and license file (#17)

* Added auditlog class and license file

* Added test case for invalid inputs

* commented the idiom

It Allows You to Execute Code When the File Runs as a Script, but Not When It’s Imported as a Module

---------

Co-authored-by: Shailesh Mishra <[email protected]>

---------

Co-authored-by: Shailesh Mishra <[email protected]>

* Developed environment class implementation (#19)

* Developed environment class implementation

* Updated variable name

* Added CI-CD implementation (#20)

* Added CI-CD implementation

Added CICD implemetation
Updated code Optimization
Updated code for check package in test environment.

* Removed Unused files

* Feat/cs 41198 locale class implementation (#21)

* Added locale class implementation

* Implemented  taxonomy support (#22)

---------

Co-authored-by: harshithad0703 <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>

---------

Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: harshithad0703 <[email protected]>

* Deleted .idea directory (#24)

* Deleted .idea directory

* Deleted Test apidoc files

* Deleted coverage.txt file

* Created label class implementation

* Updated document data

---------

Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: harshithad0703 <[email protected]>

* Feat/cs 41332 terms class implemetation (#27)

* Next (#26)

* Added users and organisations api methods

User Session

Logging in/out

Users

Get User

Update User

Activate User

Request Password

Reset Password

Organizations

Get All Organizations

Get Single Organization

Organization Roles

Organization Users

Transfer Organization Ownership

Organization Stacks

Organization Logs

* added requirements.txt file

* loaded install, changlog , codeowners and release.yml file

* Organized package structure

* Developed stack Implementation

* Code Optimized

* Added Mock test and Api Test cases

* Added test cases and coverage packages

* Added API documentation and added stacks test cases

* Added coverage reports generartion in github action

Added coverage report github action
Changed methods name
Changed unit test cases
Code improvements
API Documentation

* Added global fields class

* - General code improvements
- Corrected few testcases
- Single place for credentials
- linting added

* Feat/cs 40287 workflow class implemetation (#14)

* feat: ✨ implemented branches and aliases with unit and api test cases

* test: ✅ added mock tests for branches and aliases

* docs: 📝 added api documentation for branches and aliases

* feat: ✨ content type implementation with api references, unit test cases and api test cases

* test: renamed the api, mock, unit test file names of branch and alias

* test: renamed file path in branch and alias mock tests

* test: improved coverage report for branches and aliases

* test: Added mock test cases for content type

* docs: 📝 Cleared typo errors

* test: removed unwanted test files

* refactor: Code improvement for branches, aliases and content type implementation

* - General code improvements
- Testcases improvements

* - General code improvements
- Testcases improvements

* - General code improvements
- Formats are updated

* code enhancement

* Created Entry class and test cases

Created Entry Class
created entry class test cases

* feat: ✨ asset class implementation with tests and api docs

* Code improvements and changed test cases to new structure

* test: ✅ added resources and made some changes in api and unit test cases

* Updated Unit test cases.

* Webhook class Implementation

* Created workflow class

* Deleted secrets-scan.yml file

* Updated variable name

* Deleted sast-scan.yml file

* Feat/cs 40545 metadata class implemetation (#15)

* Metadata class implementation

* Deleted sast-scan.yml file

* Fixed PR comments

* Code optimisation and handling custom error exception

* Removed uids

* Feat/cs 40549 roles class implementation (#16)

* Created roles class with unit testcases, mock test cases and api test cases

* Updated coverage report github workflow file

* Added coverage install command

* Added pytest install command

* Updated stack class unit test file

* Added html coverage

* Added coverage reports and visualizations

* Removed visualisation

* Generating coverage report in svg format

* Added coverage-badge  install command

* Fixed PR comments and code optimisation

* Added coverage reports graphical visualisation in github page

* Created readme file

* changed variable name

* Updated readme file

* Update README.md

* Added auditlog class and license file (#17)

* Added auditlog class and license file

* Added test case for invalid inputs

* commented the idiom

It Allows You to Execute Code When the File Runs as a Script, but Not When It’s Imported as a Module

---------

Co-authored-by: Shailesh Mishra <[email protected]>

---------

Co-authored-by: Shailesh Mishra <[email protected]>

* Developed environment class implementation (#19)

* Developed environment class implementation

* Updated variable name

* Added CI-CD implementation (#20)

* Added CI-CD implementation

Added CICD implemetation
Updated code Optimization
Updated code for check package in test environment.

* Removed Unused files

* Feat/cs 41198 locale class implementation (#21)

* Added locale class implementation

* Implemented  taxonomy support (#22)

---------

Co-authored-by: harshithad0703 <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>

* Feat/cs 41199 label class implementation (#25)

* Next (#23)

* Added users and organisations api methods

User Session

Logging in/out

Users

Get User

Update User

Activate User

Request Password

Reset Password

Organizations

Get All Organizations

Get Single Organization

Organization Roles

Organization Users

Transfer Organization Ownership

Organization Stacks

Organization Logs

* added requirements.txt file

* loaded install, changlog , codeowners and release.yml file

* Organized package structure

* Developed stack Implementation

* Code Optimized

* Added Mock test and Api Test cases

* Added test cases and coverage packages

* Added API documentation and added stacks test cases

* Added coverage reports generartion in github action

Added coverage report github action
Changed methods name
Changed unit test cases
Code improvements
API Documentation

* Added global fields class

* - General code improvements
- Corrected few testcases
- Single place for credentials
- linting added

* Feat/cs 40287 workflow class implemetation (#14)

* feat: ✨ implemented branches and aliases with unit and api test cases

* test: ✅ added mock tests for branches and aliases

* docs: 📝 added api documentation for branches and aliases

* feat: ✨ content type implementation with api references, unit test cases and api test cases

* test: renamed the api, mock, unit test file names of branch and alias

* test: renamed file path in branch and alias mock tests

* test: improved coverage report for branches and aliases

* test: Added mock test cases for content type

* docs: 📝 Cleared typo errors

* test: removed unwanted test files

* refactor: Code improvement for branches, aliases and content type implementation

* - General code improvements
- Testcases improvements

* - General code improvements
- Testcases improvements

* - General code improvements
- Formats are updated

* code enhancement

* Created Entry class and test cases

Created Entry Class
created entry class test cases

* feat: ✨ asset class implementation with tests and api docs

* Code improvements and changed test cases to new structure

* test: ✅ added resources and made some changes in api and unit test cases

* Updated Unit test cases.

* Webhook class Implementation

* Created workflow class

* Deleted secrets-scan.yml file

* Updated variable name

* Deleted sast-scan.yml file

* Feat/cs 40545 metadata class implemetation (#15)

* Metadata class implementation

* Deleted sast-scan.yml file

* Fixed PR comments

* Code optimisation and handling custom error exception

* Removed uids

* Feat/cs 40549 roles class implementation (#16)

* Created roles class with unit testcases, mock test cases and api test cases

* Updated coverage report github workflow file

* Added coverage install command

* Added pytest install command

* Updated stack class unit test file

* Added html coverage

* Added coverage reports and visualizations

* Removed visualisation

* Generating coverage report in svg format

* Added coverage-badge  install command

* Fixed PR comments and code optimisation

* Added coverage reports graphical visualisation in github page

* Created readme file

* changed variable name

* Updated readme file

* Update README.md

* Added auditlog class and license file (#17)

* Added auditlog class and license file

* Added test case for invalid inputs

* commented the idiom

It Allows You to Execute Code When the File Runs as a Script, but Not When It’s Imported as a Module

---------

Co-authored-by: Shailesh Mishra <[email protected]>

---------

Co-authored-by: Shailesh Mishra <[email protected]>

* Developed environment class implementation (#19)

* Developed environment class implementation

* Updated variable name

* Added CI-CD implementation (#20)

* Added CI-CD implementation

Added CICD implemetation
Updated code Optimization
Updated code for check package in test environment.

* Removed Unused files

* Feat/cs 41198 locale class implementation (#21)

* Added locale class implementation

* Implemented  taxonomy support (#22)

---------

Co-authored-by: harshithad0703 <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>

---------

Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: harshithad0703 <[email protected]>

* Deleted .idea directory (#24)

* Deleted .idea directory

* Deleted Test apidoc files

* Deleted coverage.txt file

* Created label class implementation

* Updated document data

---------

Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: harshithad0703 <[email protected]>

---------

Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: harshithad0703 <[email protected]>

* Added terms class implementation

---------

Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: harshithad0703 <[email protected]>

* Added bulk operations class implementation (#29)

* Added release and release item class implementation (#31)

* Added release and release item class implementation

* fixed failed unit test case

* Fixed pagination issue, added custom payload option in all methods an… (#45)

* Fixed pagination issue, added custom payload option in all methods and added pagination testcases

* Added urlencode method for parameter to avoid symbols

* Removed duplicate line and changes test values

* Resolved conflicts

* Fixed code conflits

* Updated changelog file

* Enh/dx 74 gcp na support (#47)

* Fixed pagination issue, added custom payload option in all methods an… (#46)

* Added users and organisations api methods

User Session

Logging in/out

Users

Get User

Update User

Activate User

Request Password

Reset Password

Organizations

Get All Organizations

Get Single Organization

Organization Roles

Organization Users

Transfer Organization Ownership

Organization Stacks

Organization Logs

* added requirements.txt file

* loaded install, changlog , codeowners and release.yml file

* Organized package structure

* Developed stack Implementation

* Code Optimized

* Added Mock test and Api Test cases

* Added test cases and coverage packages

* Added API documentation and added stacks test cases

* Added coverage reports generartion in github action

Added coverage report github action
Changed methods name
Changed unit test cases
Code improvements
API Documentation

* Added global fields class

* - General code improvements
- Corrected few testcases
- Single place for credentials
- linting added

* Feat/cs 40287 workflow class implemetation (#14)

* feat: ✨ implemented branches and aliases with unit and api test cases

* test: ✅ added mock tests for branches and aliases

* docs: 📝 added api documentation for branches and aliases

* feat: ✨ content type implementation with api references, unit test cases and api test cases

* test: renamed the api, mock, unit test file names of branch and alias

* test: renamed file path in branch and alias mock tests

* test: improved coverage report for branches and aliases

* test: Added mock test cases for content type

* docs: 📝 Cleared typo errors

* test: removed unwanted test files

* refactor: Code improvement for branches, aliases and content type implementation

* - General code improvements
- Testcases improvements

* - General code improvements
- Testcases improvements

* - General code improvements
- Formats are updated

* code enhancement

* Created Entry class and test cases

Created Entry Class
created entry class test cases

* feat: ✨ asset class implementation with tests and api docs

* Code improvements and changed test cases to new structure

* test: ✅ added resources and made some changes in api and unit test cases

* Updated Unit test cases.

* Webhook class Implementation

* Created workflow class

* Deleted secrets-scan.yml file

* Updated variable name

* Deleted sast-scan.yml file

* Feat/cs 40545 metadata class implemetation (#15)

* Metadata class implementation

* Deleted sast-scan.yml file

* Fixed PR comments

* Code optimisation and handling custom error exception

* Removed uids

* Feat/cs 40549 roles class implementation (#16)

* Created roles class with unit testcases, mock test cases and api test cases

* Updated coverage report github workflow file

* Added coverage install command

* Added pytest install command

* Updated stack class unit test file

* Added html coverage

* Added coverage reports and visualizations

* Removed visualisation

* Generating coverage report in svg format

* Added coverage-badge  install command

* Fixed PR comments and code optimisation

* Added coverage reports graphical visualisation in github page

* Created readme file

* changed variable name

* Updated readme file

* Update README.md

* Added auditlog class and license file (#17)

* Added auditlog class and license file

* Added test case for invalid inputs

* commented the idiom

It Allows You to Execute Code When the File Runs as a Script, but Not When It’s Imported as a Module

---------

Co-authored-by: Shailesh Mishra <[email protected]>

---------

Co-authored-by: Shailesh Mishra <[email protected]>

* Developed environment class implementation (#19)

* Developed environment class implementation

* Updated variable name

* Added CI-CD implementation (#20)

* Added CI-CD implementation

Added CICD implemetation
Updated code Optimization
Updated code for check package in test environment.

* Removed Unused files

* Feat/cs 41198 locale class implementation (#21)

* Added locale class implementation

* Implemented  taxonomy support (#22)

---------

Co-authored-by: harshithad0703 <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>

* Feat/cs 41199 label class implementation (#25)

* Next (#23)

* Added users and organisations api methods

User Session

Logging in/out

Users

Get User

Update User

Activate User

Request Password

Reset Password

Organizations

Get All Organizations

Get Single Organization

Organization Roles

Organization Users

Transfer Organization Ownership

Organization Stacks

Organization Logs

* added requirements.txt file

* loaded install, changlog , codeowners and release.yml file

* Organized package structure

* Developed stack Implementation

* Code Optimized

* Added Mock test and Api Test cases

* Added test cases and coverage packages

* Added API documentation and added stacks test cases

* Added coverage reports generartion in github action

Added coverage report github action
Changed methods name
Changed unit test cases
Code improvements
API Documentation

* Added global fields class

* - General code improvements
- Corrected few testcases
- Single place for credentials
- linting added

* Feat/cs 40287 workflow class implemetation (#14)

* feat: ✨ implemented branches and aliases with unit and api test cases

* test: ✅ added mock tests for branches and aliases

* docs: 📝 added api documentation for branches and aliases

* feat: ✨ content type implementation with api references, unit test cases and api test cases

* test: renamed the api, mock, unit test file names of branch and alias

* test: renamed file path in branch and alias mock tests

* test: improved coverage report for branches and aliases

* test: Added mock test cases for content type

* docs: 📝 Cleared typo errors

* test: removed unwanted test files

* refactor: Code improvement for branches, aliases and content type implementation

* - General code improvements
- Testcases improvements

* - General code improvements
- Testcases improvements

* - General code improvements
- Formats are updated

* code enhancement

* Created Entry class and test cases

Created Entry Class
created entry class test cases

* feat: ✨ asset class implementation with tests and api docs

* Code improvements and changed test cases to new structure

* test: ✅ added resources and made some changes in api and unit test cases

* Updated Unit test cases.

* Webhook class Implementation

* Created workflow class

* Deleted secrets-scan.yml file

* Updated variable name

* Deleted sast-scan.yml file

* Feat/cs 40545 metadata class implemetation (#15)

* Metadata class implementation

* Deleted sast-scan.yml file

* Fixed PR comments

* Code optimisation and handling custom error exception

* Removed uids

* Feat/cs 40549 roles class implementation (#16)

* Created roles class with unit testcases, mock test cases and api test cases

* Updated coverage report github workflow file

* Added coverage install command

* Added pytest install command

* Updated stack class unit test file

* Added html coverage

* Added coverage reports and visualizations

* Removed visualisation

* Generating coverage report in svg format

* Added coverage-badge  install command

* Fixed PR comments and code optimisation

* Added coverage reports graphical visualisation in github page

* Created readme file

* changed variable name

* Updated readme file

* Update README.md

* Added auditlog class and license file (#17)

* Added auditlog class and license file

* Added test case for invalid inputs

* commented the idiom

It Allows You to Execute Code When the File Runs as a Script, but Not When It’s Imported as a Module

---------

Co-authored-by: Shailesh Mishra <[email protected]>

---------

Co-authored-by: Shailesh Mishra <[email protected]>

* Developed environment class implementation (#19)

* Developed environment class implementation

* Updated variable name

* Added CI-CD implementation (#20)

* Added CI-CD implementation

Added CICD implemetation
Updated code Optimization
Updated code for check package in test environment.

* Removed Unused files

* Feat/cs 41198 locale class implementation (#21)

* Added locale class implementation

* Implemented  taxonomy support (#22)

---------

Co-authored-by: harshithad0703 <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>

---------

Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: harshithad0703 <[email protected]>

* Deleted .idea directory (#24)

* Deleted .idea directory

* Deleted Test apidoc files

* Deleted coverage.txt file

* Created label class implementation

* Updated document data

---------

Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: harshithad0703 <[email protected]>

* Feat/cs 41332 terms class implemetation (#27)

* Next (#26)

* Added users and organisations api methods

User Session

Logging in/out

Users

Get User

Update User

Activate User

Request Password

Reset Password

Organizations

Get All Organizations

Get Single Organization

Organization Roles

Organization Users

Transfer Organization Ownership

Organization Stacks

Organization Logs

* added requirements.txt file

* loaded install, changlog , codeowners and release.yml file

* Organized package structure

* Developed stack Implementation

* Code Optimized

* Added Mock test and Api Test cases

* Added test cases and coverage packages

* Added API documentation and added stacks test cases

* Added coverage reports generartion in github action

Added coverage report github action
Changed methods name
Changed unit test cases
Code improvements
API Documentation

* Added global fields class

* - General code improvements
- Corrected few testcases
- Single place for credentials
- linting added

* Feat/cs 40287 workflow class implemetation (#14)

* feat: ✨ implemented branches and aliases with unit and api test cases

* test: ✅ added mock tests for branches and aliases

* docs: 📝 added api documentation for branches and aliases

* feat: ✨ content type implementation with api references, unit test cases and api test cases

* test: renamed the api, mock, unit test file names of branch and alias

* test: renamed file path in branch and alias mock tests

* test: improved coverage report for branches and aliases

* test: Added mock test cases for content type

* docs: 📝 Cleared typo errors

* test: removed unwanted test files

* refactor: Code improvement for branches, aliases and content type implementation

* - General code improvements
- Testcases improvements

* - General code improvements
- Testcases improvements

* - General code improvements
- Formats are updated

* code enhancement

* Created Entry class and test cases

Created Entry Class
created entry class test cases

* feat: ✨ asset class implementation with tests and api docs

* Code improvements and changed test cases to new structure

* test: ✅ added resources and made some changes in api and unit test cases

* Updated Unit test cases.

* Webhook class Implementation

* Created workflow class

* Deleted secrets-scan.yml file

* Updated variable name

* Deleted sast-scan.yml file

* Feat/cs 40545 metadata class implemetation (#15)

* Metadata class implementation

* Deleted sast-scan.yml file

* Fixed PR comments

* Code optimisation and handling custom error exception

* Removed uids

* Feat/cs 40549 roles class implementation (#16)

* Created roles class with unit testcases, mock test cases and api test cases

* Updated coverage report github workflow file

* Added coverage install command

* Added pytest install command

* Updated stack class unit test file

* Added html coverage

* Added coverage reports and visualizations

* Removed visualisation

* Generating coverage report in svg format

* Added coverage-badge  install command

* Fixed PR comments and code optimisation

* Added coverage reports graphical visualisation in github page

* Created readme file

* changed variable name

* Updated readme file

* Update README.md

* Added auditlog class and license file (#17)

* Added auditlog class and license file

* Added test case for invalid inputs

* commented the idiom

It Allows You to Execute Code When the File Runs as a Script, but Not When It’s Imported as a Module

---------

Co-authored-by: Shailesh Mishra <[email protected]>

---------

Co-authored-by: Shailesh Mishra <[email protected]>

* Developed environment class implementation (#19)

* Developed environment class implementation

* Updated variable name

* Added CI-CD implementation (#20)

* Added CI-CD implementation

Added CICD implemetation
Updated code Optimization
Updated code for check package in test environment.

* Removed Unused files

* Feat/cs 41198 locale class implementation (#21)

* Added locale class implementation

* Implemented  taxonomy support (#22)

---------

Co-authored-by: harshithad0703 <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>

* Feat/cs 41199 label class implementation (#25)

* Next (#23)

* Added users and organisations api methods

User Session

Logging in/out

Users

Get User

Update User

Activate User

Request Password

Reset Password

Organizations

Get All Organizations

Get Single Organization

Organization Roles

Organization Users

Transfer Organization Ownership

Organization Stacks

Organization Logs

* added requirements.txt file

* loaded install, changlog , codeowners and release.yml file

* Organized package structure

* Developed stack Implementation

* Code Optimized

* Added Mock test and Api Test cases

* Added test cases and coverage packages

* Added API documentation and added stacks test cases

* Added coverage reports generartion in github action

Added coverage report github action
Changed methods name
Changed unit test cases
Code improvements
API Documentation

* Added global fields class

* - General code improvements
- Corrected few testcases
- Single place for credentials
- linting added

* Feat/cs 40287 workflow class implemetation (#14)

* feat: ✨ implemented branches and aliases with unit and api test cases

* test: ✅ added mock tests for branches and aliases

* docs: 📝 added api documentation for branches and aliases

* feat: ✨ content type implementation with api references, unit test cases and api test cases

* test: renamed the api, mock, unit test file names of branch and alias

* test: renamed file path in branch and alias mock tests

* test: improved coverage report for branches and aliases

* test: Added mock test cases for content type

* docs: 📝 Cleared typo errors

* test: removed unwanted test files

* refactor: Code improvement for branches, aliases and content type implementation

* - General code improvements
- Testcases improvements

* - General code improvements
- Testcases improvements

* - General code improvements
- Formats are updated

* code enhancement

* Created Entry class and test cases

Created Entry Class
created entry class test cases

* feat: ✨ asset class implementation with tests and api docs

* Code improvements and changed test cases to new structure

* test: ✅ added resources and made some changes in api and unit test cases

* Updated Unit test cases.

* Webhook class Implementation

* Created workflow class

* Deleted secrets-scan.yml file

* Updated variable name

* Deleted sast-scan.yml file

* Feat/cs 40545 metadata class implemetation (#15)

* Metadata class implementation

* Deleted sast-scan.yml file

* Fixed PR comments

* Code optimisation and handling custom error exception

* Removed uids

* Feat/cs 40549 roles class implementation (#16)

* Created roles class with unit testcases, mock test cases and api test cases

* Updated coverage report github workflow file

* Added coverage install command

* Added pytest install command

* Updated stack class unit test file

* Added html coverage

* Added coverage reports and visualizations

* Removed visualisation

* Generating coverage report in svg format

* Added coverage-badge  install command

* Fixed PR comments and code optimisation

* Added coverage reports graphical visualisation in github page

* Created readme file

* changed variable name

* Updated readme file

* Update README.md

* Added auditlog class and license file (#17)

* Added auditlog class and license file

* Added test case for invalid inputs

* commented the idiom

It Allows You to Execute Code When the File Runs as a Script, but Not When It’s Imported as a Module

---------

Co-authored-by: Shailesh Mishra <[email protected]>

---------

Co-authored-by: Shailesh Mishra <[email protected]>

* Developed environment class implementation (#19)

* Developed environment class implementation

* Updated variable name

* Added CI-CD implementation (#20)

* Added CI-CD implementation

Added CICD implemetation
Updated code Optimization
Updated code for check package in test environment.

* Removed Unused files

* Feat/cs 41198 locale class implementation (#21)

* Added locale class implementation

* Implemented  taxonomy support (#22)

---------

Co-authored-by: harshithad0703 <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>

---------

Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: harshithad0703 <[email protected]>

* Deleted .idea directory (#24)

* Deleted .idea directory

* Deleted Test apidoc files

* Deleted coverage.txt file

* Created label class implementation

* Updated document data

---------

Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: harshithad0703 <[email protected]>

---------

Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: harshithad0703 <[email protected]>

* Added terms class implementation

---------

Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: harshithad0703 <[email protected]>

* Added bulk operations class implementation (#29)

* Added release and release item class implementation (#31)

* Added release and release item class implementation

* fixed failed unit test case

* Fixed pagination issue, added custom payload option in all methods an… (#45)

* Fixed pagination issue, added custom payload option in all methods and added pagination testcases

* Added urlencode method for parameter to avoid symbols

* Removed duplicate line and changes test values

* Resolved conflicts

* Fixed code conflits

* Updated changelog file

---------

Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: harshithad0703 <[email protected]>

* Added GCP NA support

---------

Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: harshithad0703 <[email protected]>

* Updated License file (#50)

---------

Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: harshithad0703 <[email protected]>
Co-authored-by: Abhinav Gupta <[email protected]>
Co-authored-by: abhinav <63039365+abhinav-from-contentstack@users.noreply.github.com>
  • Loading branch information
6 people authored May 13, 2024
1 parent bd39be4 commit 9e8830f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
## Content Management SDK For Python
---

## v1.1.0

#### Date: 14 May 2024

- Added GCP NA region support
---

## v1.0.1

#### Date: 12 December 2023
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2012 - 2023 Contentstack. All rights reserved.
Copyright (c) 2012 - 2024 Contentstack. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion contentstack_management/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
__author__ = 'ishaileshmishra'
__status__ = 'debug'
__region__ = 'na'
__version__ = '1.0.1'
__version__ = '1.1.0'
__host__ = 'api.contentstack.io'
__protocol__ = 'https://'
__api_version__ = 'v3'
Expand Down
4 changes: 4 additions & 0 deletions contentstack_management/contentstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class Region(Enum):
EU = "eu"
AZURE_EU = "azure-eu"
AZURE_NA = "azure-na"
GCP_NA = "gcp-na"


def user_agents(headers=None):
Expand All @@ -35,6 +36,9 @@ def __init__(self, host: str = 'api.contentstack.io', scheme: str = 'https://',
self.endpoint = 'https://api.contentstack.io/v3/'
if region is not None and host is not None and region is not Region.US.value:
self.endpoint = f'{scheme}{region}-{host}/{version}/'
if region is not None and host is None and region is not Region.US.value:
host = 'api.contentstack.com'
self.endpoint = f'{scheme}{region}-{host}/{version}/'
if host is not None and region is None:
self.endpoint = f'{scheme}{host}/{version}/'
if headers is None:
Expand Down
4 changes: 4 additions & 0 deletions tests/test_contentstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ def test_client(self):
client = contentstack_management.Client(authtoken='your_authtoken')
self.assertEqual('https://api.contentstack.io/v3/', client.endpoint) # Default host 'api.contentstack.io'

def test_gcp_na_region(self):
client = contentstack_management.Client(authtoken='your_authtoken', region='gcp-na')
self.assertEqual('https://gcp-na-api.contentstack.com/v3/', client.endpoint)

def test_successful_get_login(self):
client = contentstack_management.Client(host=host)
response = client.login(username, password)
Expand Down

0 comments on commit 9e8830f

Please sign in to comment.