feat(host/plugin): Support External Name field
The new `ExternalName` field is an optional field that is used to store the cloud providers' human-identifiable name for a given compute instance. This field is not user-editable, but it is kept in sync with the cloud provider's through Boundary's `SetSyncJob`.
This commit is contained in:
1 parent
26ebaefd70
commit
2ff9b8efac
13 files changed
+340
-132
No files matched your search
@@ -77,4 +77,10 @@ func Test_GetOpts(t *testing.T) {
|
||||
testOpts.withSecretsHmac = []byte("secrets-hmac")
|
||||
assert.Equal(t, opts, testOpts)
|
||||
})
|
||||
t.Run("WithExternalName", func(t *testing.T) {
|
||||
opts := getOpts(WithExternalName("external-name"))
|
||||
testOpts := getDefaultOptions()
|
||||
testOpts.withExternalName = "external-name"
|
||||
assert.Equal(t, opts, testOpts)
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user