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

E2E Tests for GameServer Player Tracking #1541

Merged
merged 2 commits into from
May 14, 2020

Conversation

markmandel
Copy link
Member

What type of PR is this?

/kind breaking
/kind bug
/kind cleanup
/kind documentation

/kind feature

/kind hotfix

What this PR does / Why we need it:

Updated the udp-simple example to accept various player tracking
commands, and also implemented e2e tests to test it working on a
singular GameServer instance.

Which issue(s) this PR fixes:

Work on #1507

Special notes for your reviewer:

Once people have a chance to review the udp-simple code, I'll make and push the image, so on first run, the build is going to fail.

@markmandel markmandel added kind/feature New features for Agones area/examples Examples. Usually found in the `examples` directory area/tests Unit tests, e2e tests, anything to make sure things don't break labels May 13, 2020

reply, err = e2eframework.SendGameServerUDP(gs, "PLAYER_CAPACITY")
assert.NoError(t, err)
assert.Equal(t, "20", reply)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think new line is needed here and in all other responses.

Suggested change
assert.Equal(t, "20", reply)
assert.Equal(t, "20\n", reply)

@aLekSer
Copy link
Collaborator

aLekSer commented May 13, 2020

Overall is great. But it seems that Makefile also should be updated https://github.com/googleforgames/agones/blob/master/build/Makefile#L60

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 51afeed4-0431-4e33-8769-ac503959594f

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

Updated the udp-simple example to accept various player tracking
commands, and also implemented e2e tests to test it working on a
singular GameServer instance.

Work on googleforgames#1507
@markmandel
Copy link
Member Author

Review updates in place, if you are happy with me pushing up the image, I will do so.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: ad8853b1-85b7-495d-a1d5-d9e151d7c4a6

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 918af329-00af-4d49-a4e7-b383cb721369

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 704ea39d-0170-4012-9588-13895df4f8bf

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

Copy link
Collaborator

@aLekSer aLekSer left a comment

Choose a reason for hiding this comment

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

I am happy with those updates. My comments are resolved. Let's push this image.

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aLekSer, markmandel

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@markmandel
Copy link
Member Author

Image pushed!

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 8ce68ca3-0e69-46b8-a77b-09154d4c6e28

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/GoogleCloudPlatform/agones.git pull/1541/head:pr_1541 && git checkout pr_1541
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.6.0-193bfe6

@aLekSer
Copy link
Collaborator

aLekSer commented May 14, 2020

Build was successful, please merge when you think it is suitable.

@markmandel markmandel added this to the 1.6.0 milestone May 14, 2020
@markmandel markmandel merged commit c703ae6 into googleforgames:master May 14, 2020
@markmandel markmandel deleted the feature/tracking-e2e branch May 14, 2020 18:06
ilkercelikyilmaz pushed a commit to ilkercelikyilmaz/agones that referenced this pull request Oct 23, 2020
* E2E Tests for GameServer Player Tracking

Updated the udp-simple example to accept various player tracking
commands, and also implemented e2e tests to test it working on a
singular GameServer instance.

Work on googleforgames#1507
ilkercelikyilmaz pushed a commit to ilkercelikyilmaz/agones that referenced this pull request Oct 23, 2020
* E2E Tests for GameServer Player Tracking

Updated the udp-simple example to accept various player tracking
commands, and also implemented e2e tests to test it working on a
singular GameServer instance.

Work on googleforgames#1507
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved area/examples Examples. Usually found in the `examples` directory area/tests Unit tests, e2e tests, anything to make sure things don't break kind/feature New features for Agones lgtm size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants