Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Log Streams API #236

Merged
merged 3 commits into from
Aug 27, 2020
Merged

Add support for Log Streams API #236

merged 3 commits into from
Aug 27, 2020

Conversation

lbalmaceda
Copy link
Contributor

@lbalmaceda lbalmaceda commented Aug 26, 2020

Changes

Adds support for the Log Streams API.

References

https://auth0.com/docs/api/management/v2/#!/Log_Streams/get_log_streams

Testing

I manually tested the endpoints, using the following code (Tweak if necessary)

    def testList(self):
        api = LogStreams('lbalmaceda.auth0.com', self.token)
        res = api.list()
        print("\n", res)

    def testGetId(self):
        api = LogStreams('lbalmaceda.auth0.com', self.token)
        res = api.get("lst_0000000000001834")
        print("\n", res)

    def testDeleteId(self):
        api = LogStreams('lbalmaceda.auth0.com', self.token)
        res = api.delete("lst_0000000000001835")
        print("\n", res)

    def testPatchId(self):
        api = LogStreams('lbalmaceda.auth0.com', self.token)
        res = api.update("lst_0000000000001835", {"name": "nombrecito"})
        print("\n", res)

    def testCreate(self):
        api = LogStreams('lbalmaceda.auth0.com', self.token)
        res = api.create({
            "name": "string",
            "type": "http",
            "sink": {
                "httpEndpoint": "https://mycompany.com",
                "httpContentType": "string",
                "httpContentFormat": "JSONLINES",
                "httpAuthorization": "string"
            }
        })
        print("\n", res)
  • This change adds unit test coverage
  • This change adds integration test coverage
  • This change has been tested on the latest version of the platform/language or why not

Checklist

@lbalmaceda lbalmaceda added the medium Medium review label Aug 26, 2020
@lbalmaceda lbalmaceda added this to the v3-Next milestone Aug 26, 2020
@lbalmaceda lbalmaceda requested a review from a team August 26, 2020 21:41
Copy link
Contributor

@jimmyjames jimmyjames left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Nice.

@lbalmaceda lbalmaceda merged commit 5c5615c into master Aug 27, 2020
@lbalmaceda lbalmaceda deleted the logstream branch August 27, 2020 21:50
@lbalmaceda lbalmaceda modified the milestones: v3-Next, 3.13.0 Aug 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CH: Added medium Medium review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants