Skip to content

Instantly share code, notes, and snippets.

@Kalaiselvi84
Created January 17, 2024 22:11
Show Gist options
  • Save Kalaiselvi84/72d9950899deb9a00eb087e592ebf515 to your computer and use it in GitHub Desktop.
Save Kalaiselvi84/72d9950899deb9a00eb087e592ebf515 to your computer and use it in GitHub Desktop.
TestCounters and TestLists
kalaiselvim@kalaiselvi84:~/Desktop/agones/test/e2e$ FEATURE_GATES="CountsAndLists=true" go test -race -run ^TestCounters$
INFO[2024-01-17 22:10:56.489] Starting e2e test(s) cloudProduct=generic featureGates="CountsAndLists=true&DisableResyncOnSDKServer=false&Example=false&FleetAllocationOverflow=true&GKEAutopilotExtendedDurationPods=false&PlayerAllocationFilter=false&PlayerTracking=false" gameServerImage="us-docker.pkg.dev/agones-mangalpalli/examples/simple-game-server:0.24" namespace= perfOutputDir= pullSecret= stressTestLevel=0 version=
INFO[2024-01-17 22:10:57.551] Custom namespace is set: 1705529457
INFO[2024-01-17 22:10:57.603] Namespace 1705529457 is created
INFO[2024-01-17 22:10:57.637] ServiceAccount 1705529457/agones-sdk is created
INFO[2024-01-17 22:10:57.974] RoleBinding 1705529457/agones-sdk-access is created
INFO[2024-01-17 22:10:58.060] GameServer created, waiting for Ready gs=game-servernrf9z test=TestCounters
INFO[2024-01-17 22:10:58.090] Waiting for states to match awaitingState=Ready currentState=Creating gs=game-servernrf9z test=TestCounters
INFO[2024-01-17 22:10:58.096] Waiting for states to match awaitingState=Ready currentState=Creating gs=game-servernrf9z test=TestCounters
INFO[2024-01-17 22:10:59.103] Waiting for states to match awaitingState=Ready currentState=Scheduled gs=game-servernrf9z test=TestCounters
INFO[2024-01-17 22:11:00.104] Waiting for states to match awaitingState=Ready currentState=Scheduled gs=game-servernrf9z test=TestCounters
INFO[2024-01-17 22:11:01.102] GameServer states match awaitingState=Ready currentState=Ready gs=game-servernrf9z test=TestCounters
INFO[2024-01-17 22:11:01.102] GameServer Ready gs=game-servernrf9z
INFO[2024-01-17 22:11:01.102] IncrementCounter fields.msg="INCREMENT_COUNTER foo 10"
INFO[2024-01-17 22:11:01.108] Sending GetCounterCount fields.msg="GET_COUNTER_COUNT foo"
INFO[2024-01-17 22:11:01.110] DecrementCounter fields.msg="DECREMENT_COUNTER bar 10"
INFO[2024-01-17 22:11:01.134] Sending GetCounterCount fields.msg="GET_COUNTER_COUNT bar"
INFO[2024-01-17 22:11:01.136] SetCounterCapacity fields.msg="SET_COUNTER_CAPACITY qux 0"
INFO[2024-01-17 22:11:01.138] Sending GetCounterCapacity fields.msg="GET_COUNTER_CAPACITY qux"
INFO[2024-01-17 22:11:01.235] SetCounterCapacity Past Zero fields.msg="SET_COUNTER_CAPACITY games -42"
INFO[2024-01-17 22:11:01.238] Sending GetCounterCount fields.msg="GET_COUNTER_COUNT games"
INFO[2024-01-17 22:11:01.240] IncrementCounter Past Capacity fields.msg="INCREMENT_COUNTER games 50"
INFO[2024-01-17 22:11:01.242] Sending GetCounterCount fields.msg="GET_COUNTER_COUNT games"
INFO[2024-01-17 22:11:01.245] DecrementCounter Counter Does Not Exist fields.msg="DECREMENT_COUNTER lame 1"
INFO[2024-01-17 22:11:01.335] SetCounterCount Past Capacity fields.msg="SET_COUNTER_COUNT games 51"
INFO[2024-01-17 22:11:01.338] Sending GetCounterCount fields.msg="GET_COUNTER_COUNT games"
INFO[2024-01-17 22:11:01.340] SetCounterCount Past Zero fields.msg="SET_COUNTER_COUNT games -1"
INFO[2024-01-17 22:11:01.435] Sending GetCounterCount fields.msg="GET_COUNTER_COUNT games"
INFO[2024-01-17 22:11:01.438] IncrementCounter Negative fields.msg="INCREMENT_COUNTER games -1"
INFO[2024-01-17 22:11:01.439] Sending GetCounterCount fields.msg="GET_COUNTER_COUNT games"
INFO[2024-01-17 22:11:01.441] IncrementCounter Counter Does Not Exist fields.msg="INCREMENT_COUNTER same 1"
INFO[2024-01-17 22:11:01.533] DecrementCounter Negative fields.msg="DECREMENT_COUNTER games -1"
INFO[2024-01-17 22:11:01.535] Sending GetCounterCount fields.msg="GET_COUNTER_COUNT games"
INFO[2024-01-17 22:11:01.537] SetCounterCount fields.msg="SET_COUNTER_COUNT baz 0"
INFO[2024-01-17 22:11:01.538] Sending GetCounterCount fields.msg="GET_COUNTER_COUNT baz"
INFO[2024-01-17 22:11:01.634] GetCounterCapacity fields.msg="GET_COUNTER_CAPACITY games"
INFO[2024-01-17 22:11:01.637] GetCounterCapacity Counter Does Not Exist fields.msg="GET_COUNTER_CAPACITY dame"
INFO[2024-01-17 22:11:01.735] GetCounterCount fields.msg="GET_COUNTER_COUNT games"
INFO[2024-01-17 22:11:01.738] GetCounterCount Counter Does Not Exist fields.msg="GET_COUNTER_COUNT fame"
INFO[2024-01-17 22:11:01.740] DecrementCounter Past Capacity fields.msg="DECREMENT_COUNTER games 2"
INFO[2024-01-17 22:11:01.742] Sending GetCounterCount fields.msg="GET_COUNTER_COUNT games"
PASS
INFO[2024-01-17 22:11:01.831] Namespace 1705529457 is deleted
ok agones.dev/agones/test/e2e 6.787s
kalaiselvim@kalaiselvi84:~/Desktop/agones/test/e2e$ FEATURE_GATES="CountsAndLists=true" go test -race -run ^TestLists$
INFO[2024-01-17 21:39:32.346] Starting e2e test(s) cloudProduct=generic featureGates="CountsAndLists=true&DisableResyncOnSDKServer=false&Example=false&FleetAllocationOverflow=true&GKEAutopilotExtendedDurationPods=false&PlayerAllocationFilter=false&PlayerTracking=false" gameServerImage="us-docker.pkg.dev/agones-mangalpalli/examples/simple-game-server:0.24" namespace= perfOutputDir= pullSecret= stressTestLevel=0 version=
INFO[2024-01-17 21:39:32.436] Custom namespace is set: 1705527572
INFO[2024-01-17 21:39:32.463] Namespace 1705527572 is created
INFO[2024-01-17 21:39:32.495] ServiceAccount 1705527572/agones-sdk is created
INFO[2024-01-17 21:39:32.543] RoleBinding 1705527572/agones-sdk-access is created
INFO[2024-01-17 21:39:32.624] GameServer created, waiting for Ready gs=game-servervq84f test=TestLists
INFO[2024-01-17 21:39:32.649] Waiting for states to match awaitingState=Ready currentState=Creating gs=game-servervq84f test=TestLists
INFO[2024-01-17 21:39:32.656] Waiting for states to match awaitingState=Ready currentState=Creating gs=game-servervq84f test=TestLists
INFO[2024-01-17 21:39:33.663] Waiting for states to match awaitingState=Ready currentState=Scheduled gs=game-servervq84f test=TestLists
INFO[2024-01-17 21:39:34.663] Waiting for states to match awaitingState=Ready currentState=Scheduled gs=game-servervq84f test=TestLists
INFO[2024-01-17 21:39:35.664] Waiting for states to match awaitingState=Ready currentState=Scheduled gs=game-servervq84f test=TestLists
INFO[2024-01-17 21:39:36.665] Waiting for states to match awaitingState=Ready currentState=Scheduled gs=game-servervq84f test=TestLists
INFO[2024-01-17 21:39:37.663] Waiting for states to match awaitingState=Ready currentState=Scheduled gs=game-servervq84f test=TestLists
INFO[2024-01-17 21:39:38.663] Waiting for states to match awaitingState=Ready currentState=RequestReady gs=game-servervq84f test=TestLists
INFO[2024-01-17 21:39:39.666] GameServer states match awaitingState=Ready currentState=Ready gs=game-servervq84f test=TestLists
INFO[2024-01-17 21:39:39.666] GameServer Ready gs=game-servervq84f
INFO[2024-01-17 21:39:39.666] DeleteListValue fields.msg="DELETE_LIST_VALUE qux qux3"
INFO[2024-01-17 21:39:39.675] Sending GetListLength fields.msg="GET_LIST_LENGTH qux"
INFO[2024-01-17 21:39:39.677] GetListCapacity fields.msg="GET_LIST_CAPACITY games"
INFO[2024-01-17 21:39:39.679] SetListCapacity fields.msg="SET_LIST_CAPACITY foo 1000"
INFO[2024-01-17 21:39:39.833] Sending GetListCapacity fields.msg="GET_LIST_CAPACITY foo"
INFO[2024-01-17 21:39:39.836] ListContains fields.msg="LIST_CONTAINS games game2"
INFO[2024-01-17 21:39:39.838] ListContains false fields.msg="LIST_CONTAINS games game0"
INFO[2024-01-17 21:39:39.841] GetListValues fields.msg="GET_LIST_VALUES games"
INFO[2024-01-17 21:39:39.844] AppendListValue fields.msg="APPEND_LIST_VALUE bar bar3"
INFO[2024-01-17 21:39:39.933] Sending GetListLength fields.msg="GET_LIST_LENGTH bar"
INFO[2024-01-17 21:39:39.936] SetListCapacity past 1000 fields.msg="SET_LIST_CAPACITY games 1001"
INFO[2024-01-17 21:39:39.938] Sending GetListCapacity fields.msg="GET_LIST_CAPACITY games"
INFO[2024-01-17 21:39:39.940] SetListCapacity negative fields.msg="SET_LIST_CAPACITY games -1"
INFO[2024-01-17 21:39:40.034] Sending GetListCapacity fields.msg="GET_LIST_CAPACITY games"
INFO[2024-01-17 21:39:40.036] GetListLength fields.msg="GET_LIST_LENGTH games"
INFO[2024-01-17 21:39:40.038] GetListValues empty fields.msg="GET_LIST_VALUES foo"
INFO[2024-01-17 21:39:40.134] AppendListValue past capacity fields.msg="APPEND_LIST_VALUE baz baz2"
INFO[2024-01-17 21:39:40.137] Sending GetListLength fields.msg="GET_LIST_LENGTH baz"
INFO[2024-01-17 21:39:40.140] DeleteListValue value does not exist fields.msg="DELETE_LIST_VALUE games game4"
INFO[2024-01-17 21:39:40.234] Sending GetListLength fields.msg="GET_LIST_LENGTH games"
PASS
INFO[2024-01-17 21:39:40.319] Namespace 1705527572 is deleted
ok agones.dev/agones/test/e2e 9.416s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment