Skip to content

Add tests to Cloud Tasks Samples #1459

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

Merged
merged 13 commits into from
Jun 14, 2019
Merged

Add tests to Cloud Tasks Samples #1459

merged 13 commits into from
Jun 14, 2019

Conversation

averikitsch
Copy link
Contributor

No description provided.

@averikitsch averikitsch requested a review from a team June 11, 2019 21:22
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 11, 2019
Copy link
Contributor

@lesv lesv left a comment

Choose a reason for hiding this comment

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

I'm presuming this is because the wrong copyright date was uploaded. We don't change copyrights if they were correct (ie. we keep the earliest version)


// Instantiates a client.
try (CloudTasksClient client = CloudTasksClient.create()) {
// Variables provided by the system variables.
// projectId = "my-project-id";
// queueName = "my-queue";
// location = "us-central1";
// url = "https://example.com/taskhandler";
String url = "https://example.com/taskhandler";
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you call this out in the README? (CHANGEME)

// url = "https://example.com/taskhandler";
String payload = "hello";
String email = args[0]; // Cloud IAM service account
String url =
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we suggest changing this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since this is a snippet. I have updated with the sample without a main and highlighted the parameters.

Copy link
Contributor

@lesv lesv left a comment

Choose a reason for hiding this comment

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

A couple of nits


private ByteArrayOutputStream bout;
private PrintStream out;
// @Rule public Timeout globalTimeout = Timeout.seconds(300); // 5 minute timeout

Choose a reason for hiding this comment

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

Kept intentionally?

@averikitsch averikitsch added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 14, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 14, 2019
@averikitsch
Copy link
Contributor Author

@lesv please review changes

@averikitsch averikitsch merged commit 87000b1 into master Jun 14, 2019
@averikitsch averikitsch deleted the tasks-tests branch June 14, 2019 20:05
averikitsch added a commit that referenced this pull request Oct 27, 2022
* Add tests

* Update license

* Update README

* Update for testing purposes

* Update queue location

* Fix test styling

* Library version

* Update service account

* Fix service account
averikitsch added a commit that referenced this pull request Nov 1, 2022
* Add tests

* Update license

* Update README

* Update for testing purposes

* Update queue location

* Fix test styling

* Library version

* Update service account

* Fix service account
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants