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

Functional test part1 #273

Merged
merged 1 commit into from
Oct 21, 2014
Merged

Conversation

dhermes
Copy link
Contributor

@dhermes dhermes commented Oct 21, 2014

This rolls back #259 (otherwise inserts fail) and can't be merged until #121 is fixed.

This is a first attempt at #106 and only scratches the surface.

Before deep diving into writing all the tests, I wanted to get a feel for how we wanted it to look.

@silvolu this will require setting some environ variables in Travis. Do I have the ability to change this or should I just use you as a relay?

Also @tseaver and @silvolu this is a good place to decide what we'd like to do with demo.key.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 4c34706 on dhermes:functional-test-part1 into fab0237 on GoogleCloudPlatform:master.

@silvolu
Copy link
Contributor

silvolu commented Oct 21, 2014

You should be able to add the environment variables using the Travis UI, but let me know if that is not the case.
For the key, don't use demo.key for the regression testing; use encrypted files. I can set that up for you if you want, after we merge this initial core, which looks good to me.

@dhermes
Copy link
Contributor Author

dhermes commented Oct 21, 2014

Great to hear. I'd love a tiny walk-through, possible via screen sharing?

I'm certainly not going to use demo.key. IMO we should destroy it and update the docs on running the demo as well as making the demo code fail with a message explaining what needs to be added.

I will hold off on this until #121 is fixed or do we want to revert the broken code from #259?

@tseaver any thoughts?

@silvolu
Copy link
Contributor

silvolu commented Oct 21, 2014

My 2 cents on reverting #259: unless a fix is imminent, we should revert.

@tseaver
Copy link
Contributor

tseaver commented Oct 21, 2014

I have reverted it.

@dhermes
Copy link
Contributor Author

dhermes commented Oct 21, 2014

Thanks for reverting. I rebased this PR so now it could be merged (per @silvolu LGTM). But I'll hold off if @tseaver has any comments.

@tseaver
Copy link
Contributor

tseaver commented Oct 21, 2014

My major worry is how we keep the functests from bitrotting -- when are they run?

@dhermes
Copy link
Contributor Author

dhermes commented Oct 21, 2014

I am happy to put them in the Travis build but it will start to take a LONG time. I don't know if there are best practices around this or if people have opinions?

I think that's not so big a deal since people can do lot's of things locally.

Before we can ask Travis to run tox -e regression we need to set some environment variables and an encrypted key.

@silvolu
Copy link
Contributor

silvolu commented Oct 21, 2014

The plan is to run the functests after every merge to master, as a safety net that can catch breakings like #259.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 929618b on dhermes:functional-test-part1 into 8b97707 on GoogleCloudPlatform:master.

@dhermes
Copy link
Contributor Author

dhermes commented Oct 21, 2014

@tseaver so this will get run in .travis.yml along with the other "before success" scripts.

I can add this in a forthcoming PR after the necessary settings are in place on the Travis side of things or we can put it in this PR. By putting it in this PR, it will block on @silvolu and I syncing up to get Travis set up correctly.

@tseaver
Copy link
Contributor

tseaver commented Oct 21, 2014

I see. LGTM.

This commit only tests
- Adding a basic entity with an auto allocated ID, a
  given integer ID or a given name.
- Adding multiple entities via a transaction
- The given kind has no other entities (i.e. no false positives)

This commit adds
- A sample file to set environment variables for a test runner.
- A test runner.
- A utility for getting test relevant environ variables.
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 2c101b4 on dhermes:functional-test-part1 into 7f6e4b1 on GoogleCloudPlatform:master.

dhermes added a commit that referenced this pull request Oct 21, 2014
@dhermes dhermes merged commit 9f2fea6 into googleapis:master Oct 21, 2014
@dhermes dhermes deleted the functional-test-part1 branch October 21, 2014 23:07
@dhermes dhermes added testing api: datastore Issues related to the Datastore API. labels Dec 31, 2015
urshala pushed a commit to urshala/google-cloud-python that referenced this pull request Jan 17, 2020
Now uploaded files will be uploaded with the encoded filename
parthea pushed a commit that referenced this pull request Jun 4, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Victor Chudnovsky <[email protected]>
parthea pushed a commit that referenced this pull request Jun 4, 2023
Source-Link: https://togithub.com/googleapis/synthtool/commit/d0f51a0c2a9a6bcca86911eabea9e484baadf64b
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:240b5bcc2bafd450912d2da2be15e62bc6de2cf839823ae4bf94d4f392b451dc
parthea pushed a commit that referenced this pull request Jun 4, 2023
Source-Link: https://togithub.com/googleapis/synthtool/commit/d0f51a0c2a9a6bcca86911eabea9e484baadf64b
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:240b5bcc2bafd450912d2da2be15e62bc6de2cf839823ae4bf94d4f392b451dc
parthea added a commit that referenced this pull request Jun 4, 2023
fix(deps): require proto-plus >= 1.22.0
parthea added a commit that referenced this pull request Jun 4, 2023
* chore: upgrade gapic-generator-java, gax-java and gapic-generator-python

PiperOrigin-RevId: 423842556

Source-Link: googleapis/googleapis@a616ca0

Source-Link: googleapis/googleapis-gen@29b938c
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjliOTM4YzU4YzFlNTFkMDE5ZjJlZTUzOWQ1NWRjMGEzYzg2YTkwNSJ9

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
parthea pushed a commit that referenced this pull request Jun 4, 2023
)

Source-Link: googleapis/synthtool@c1dd87e
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:2d13c2172a5d6129c861edaa48b60ead15aeaf58aa75e02d870c4cbdfa63aaba

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea added a commit that referenced this pull request Jul 6, 2023
fix(deps): require proto-plus>=1.15.0
parthea pushed a commit that referenced this pull request Aug 15, 2023
- [ ] Regenerate this pull request now.

docs(v3beta1): improved docs format

PiperOrigin-RevId: 435479428

Source-Link: googleapis/googleapis@4dd75c2

Source-Link: googleapis/googleapis-gen@0f3e9df
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGYzZTlkZjM4OGIyZjg0YTNkNjgxMjgyNmQyMGE5NTA0NDdjNmViYiJ9
parthea added a commit that referenced this pull request Aug 15, 2023
* chore: Update gapic-generator-python to v1.8.5

PiperOrigin-RevId: 511892190

Source-Link: googleapis/googleapis@a45d9c0

Source-Link: googleapis/googleapis-gen@1907294
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTkwNzI5NGIxZDgzNjVlYTI0ZjhjNWYyZTA1OWE2NDEyNGM0ZWQzYiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
vchudnov-g pushed a commit that referenced this pull request Sep 20, 2023
parthea pushed a commit that referenced this pull request Sep 22, 2023
Source-Link: https://togithub.com/googleapis/synthtool/commit/25083af347468dd5f90f69627420f7d452b6c50e
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e6cbd61f1838d9ff6a31436dfc13717f372a7482a82fc1863ca954ec47bff8c8
parthea pushed a commit that referenced this pull request Sep 22, 2023
Source-Link: googleapis/synthtool@4760d8d
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:f0e4b51deef56bed74d3e2359c583fc104a8d6367da3984fc5c66938db738828

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Sep 22, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Sep 22, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Shabir Mohamed Abdul Samadh <[email protected]>
parthea pushed a commit that referenced this pull request Sep 22, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Sep 22, 2023
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 459095142

Source-Link: googleapis/googleapis@4f1be99

Source-Link: googleapis/googleapis-gen@ae686d9
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWU2ODZkOWNkZTRmYzNlMzZkMGFjMDJlZmI4NjQzYjE1ODkwYzFlZCJ9

feat: add audience parameter
PiperOrigin-RevId: 456827138

Source-Link: googleapis/googleapis@23f1a15

Source-Link: googleapis/googleapis-gen@4075a85
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDA3NWE4NTE0ZjY3NjY5MWVjMTU2Njg4YTViYmYxODNhYTk4OTNjZSJ9
parthea pushed a commit that referenced this pull request Sep 22, 2023
)

Source-Link: googleapis/synthtool@c1dd87e
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:2d13c2172a5d6129c861edaa48b60ead15aeaf58aa75e02d870c4cbdfa63aaba

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Sep 22, 2023
* chore: use gapic-generator-python 0.63.2
docs: add generated snippets

PiperOrigin-RevId: 427792504

Source-Link: googleapis/googleapis@55b9e1e

Source-Link: googleapis/googleapis-gen@bf4e86b
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYmY0ZTg2Yjc1M2Y0MmNiMGVkYjFmZDUxZmJlODQwZDdkYTBhMWNkZSJ9

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea added a commit that referenced this pull request Oct 21, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
Co-authored-by: Maciej Strzelczyk <[email protected]>
parthea pushed a commit that referenced this pull request Oct 21, 2023
- [ ] Regenerate this pull request now.

fix: resolve DuplicateCredentialArgs error when using credentials_file

committer: parthea
PiperOrigin-RevId: 425964861

Source-Link: googleapis/googleapis@84b1a5a

Source-Link: googleapis/googleapis-gen@4fb761b
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGZiNzYxYmJkODUwNmFjMTU2ZjQ5YmFjNWYxODMwNmFhOGViM2FhOCJ9
parthea pushed a commit that referenced this pull request Oct 22, 2023
* chore: Update gapic-generator-python to v1.11.2

PiperOrigin-RevId: 546510849

Source-Link: googleapis/googleapis@736073a

Source-Link: googleapis/googleapis-gen@deb64e8
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZGViNjRlOGVjMTlkMTQxZTMxMDg5ZmU5MzJiM2E5OTdhZDU0MWM0ZCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea added a commit that referenced this pull request Oct 22, 2023
* fix(deps): allow protobuf 3.19.5

* explicitly exclude protobuf 4.21.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: datastore Issues related to the Datastore API. testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants