Seems like DeployedBy property is missing somewhere in the chain for Deployment object
aka this one is green:
import { Client, DeploymentRepository } from '@octopusdeploy/api-client'
describe('repro', () => {
it('should have DeployedBy', async () => {
const client = await Client.create({
instanceURL: 'https://sample.octopus.app',
apiKey: process.env.OCTOPUS_APIKEY,
userAgentApp: 'sample',
})
const deployments = new DeploymentRepository(client, 'Sample')
const deployment = await deployments.get('Deployments-42')
expect(deployment).toHaveProperty('DeployedBy')
expect(deployment).toMatchObject({ DeployedBy: 'sample@example.com' })
})
})
Seems like
DeployedByproperty is missing somewhere in the chain forDeploymentobjectaka this one is green: