-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed the parsing of KEY=VALUE pairs
- Loading branch information
1 parent
10ac6a8
commit dd85449
Showing
4 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,13 +17,14 @@ package google | |
import ( | ||
"context" | ||
"fmt" | ||
"github.com/ystia/yorc/v4/storage" | ||
"github.com/ystia/yorc/v4/storage/types" | ||
"github.com/ystia/yorc/v4/tosca" | ||
"io/ioutil" | ||
"path" | ||
"testing" | ||
|
||
"github.com/ystia/yorc/v4/storage" | ||
"github.com/ystia/yorc/v4/storage/types" | ||
"github.com/ystia/yorc/v4/tosca" | ||
|
||
"github.com/hashicorp/consul/testutil" | ||
"github.com/stretchr/testify/assert" | ||
"github.com/stretchr/testify/require" | ||
|
@@ -85,6 +86,8 @@ func testSimpleComputeInstance(t *testing.T, cfg config.Configuration) { | |
assert.Equal(t, []string{"tag1", "tag2"}, compute.Tags) | ||
assert.Equal(t, map[string]string{"key1": "value1", "key2": "value2"}, compute.Labels) | ||
|
||
assert.Equal(t, map[string]string{"enable-oslogin": "false", "ssh-keys": "testuser:ecdsa-sha2-nistp256 AAAAE2VjZH/LlTXfXIr+N= [email protected]"}, compute.Metadata) | ||
|
||
require.Contains(t, infrastructure.Resource, "null_resource") | ||
require.Len(t, infrastructure.Resource["null_resource"], 1) | ||
nullResources := infrastructure.Resource["null_resource"].(map[string]interface{}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ topology_template: | |
service_account: "[email protected]" | ||
tags: "tag1, tag2" | ||
labels: "key1=value1, key2=value2" | ||
metadata: "enable-oslogin=false,ssh-keys=testuser:ecdsa-sha2-nistp256 AAAAE2VjZH/LlTXfXIr+N= [email protected]" | ||
scratch_disks: | ||
- interface: SCSI | ||
- interface: NVME | ||
|