Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Conversation

@geofffranks
Copy link
Contributor

Thank you for submitting a pull request to the cfdot repository!

We appreciate the contribution. To help us understand the context for your pull request, please fill out this template to the best of your ability.

Please make sure to complete all of the following steps

  1. Check the Contributing document on how to sign the CLA and run tests.
  2. Submit your PR to this repo.
  3. Submit an accompanying PR Review Request referencing this PR so the Diego Team knows to review your pull request.

Please provide the following information:

What is this change about?

Please describe.

What problem it is trying to solve?

Please describe.

What is the impact if the change is not made?

Please describe.

How should this change be described in diego-release release notes?

Something brief that conveys the change. See previous release notes for examples.

Please provide any contextual information.

Include any links to other PRs, stories, slack discussions, etc.

Tag your pair, your PM, and/or team!

It's helpful to tag someone on your team or your team alias in case we need to follow up later.

Thank you!

@geofffranks geofffranks requested a review from a team as a code owner March 12, 2024 14:16
@ameowlia ameowlia merged commit ea39a2b into main Mar 12, 2024
@ameowlia ameowlia deleted the deprecated-resource-type branch March 12, 2024 14:24
jrussett added a commit that referenced this pull request Mar 14, 2024
- Follow up to PR:
  - #11

tl;dr; the resources returned from locket will still contain a `Type:
"lock"` field, but to create the resources, you must only specify a
TypeCode.
  - It must essentially match this locket test:
    cloudfoundry/locket@e0b7033...a90299e#diff-fe4d1c46f9e48a2f9db22828f37c3fe03441e794663092b2c776052b9eb4fc51L432-R433

Should resolve:
```
 [FAILED] Expected
      <*models.Resource | 0xc0006c6230>: {Key: "test-key", Owner: "test-owner", Value: "", Type: "lock", TypeCode: 1}
  to equal
      <*models.Resource | 0xc0006c6280>: {Key: "test-key", Owner: "test-owner", Value: "", Type: "", TypeCode: 1}
  In [It] at: /tmp/build/f7b1384f/repo/src/code.cloudfoundry.org/cfdot/integration/locket_commands_test.go:101 @ 03/14/24 22:17:00.772
```
Source: https://ci.funtime.lol/teams/wg-arp-diego/pipelines/diego-release/jobs/unit-and-integration-tests/builds/57#L65bb95ee:42:47
jrussett added a commit that referenced this pull request Mar 14, 2024
- Follow up to PR:
  - #11

tl;dr; the resources returned from locket will still contain a `Type:
"lock"` field, but to create the resources, you must only specify a
TypeCode.
  - It must essentially match this locket test:
    cloudfoundry/locket@e0b7033...a90299e#diff-fe4d1c46f9e48a2f9db22828f37c3fe03441e794663092b2c776052b9eb4fc51L432-R433

Should resolve:
```
 [FAILED] Expected
      <*models.Resource | 0xc0006c6230>: {Key: "test-key", Owner: "test-owner", Value: "", Type: "lock", TypeCode: 1}
  to equal
      <*models.Resource | 0xc0006c6280>: {Key: "test-key", Owner: "test-owner", Value: "", Type: "", TypeCode: 1}
  In [It] at: /tmp/build/f7b1384f/repo/src/code.cloudfoundry.org/cfdot/integration/locket_commands_test.go:101 @ 03/14/24 22:17:00.772
```
Source: https://ci.funtime.lol/teams/wg-arp-diego/pipelines/diego-release/jobs/unit-and-integration-tests/builds/57#L65bb95ee:42:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants