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

fix(getToken): fix getToken() #212

Merged
merged 2 commits into from
Feb 15, 2024
Merged

Conversation

Copy link
Collaborator

@qe-tigergraph qe-tigergraph left a comment

Choose a reason for hiding this comment

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

Unit Test: SUCCESS, e2e Test: FAILURE, Jenkins_job:http://192.168.99.101:30080/job/mlwb_build/1049/

@parkererickson-tg
Copy link
Contributor Author

parkererickson-tg commented Feb 14, 2024 via email

@billshitg
Copy link
Contributor

Is it this line: elif not(success) and not(secret)? If secret is given, would not(secret) be False, and this condition be False?

@parkererickson-tg
Copy link
Contributor Author

No, it is line 238-248:

if not success:
            try:
                data = {"secret": secret}

                if lifetime:
                    data["lifetime"] = str(lifetime)

                res = json.loads(requests.post(self.restppUrl + "/requesttoken",
                    data=json.dumps(data), verify=False).text)
            except Exception as e:
                raise e

(I don't know why it was implemented this way either)

@parkererickson-tg parkererickson-tg merged commit 8dba301 into master Feb 15, 2024
@parkererickson-tg parkererickson-tg deleted the GML-1514-get-token-fix branch February 15, 2024 15:35
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.

3 participants