Skip to content

Commit bd278a0

Browse files
test: enable 'cloud_account' test for 'make integration-only' (#1381)
* test: enable 'cloud_account' test for 'make integration-only' Signed-off-by: Darren Murray <darren.murray@lacework.net> * test: remove t.skip for cloud_account tests Signed-off-by: Darren Murray <darren.murray@lacework.net> * test: cloud_account tests Signed-off-by: Darren Murray <darren.murray@lacework.net> --------- Signed-off-by: Darren Murray <darren.murray@lacework.net>
1 parent fa0484a commit bd278a0

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ integration-only: install-tools ## Run integration tests
7171
alert_profile \
7272
agent \
7373
configure \
74+
cloud_account \
7475
container_registry \
7576
query \
7677
policy \

integration/cloud_account_test.go

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import (
2626
)
2727

2828
func TestCloudAccountCommandAliases(t *testing.T) {
29-
t.Skip()
3029
// lacework cloud-account
3130
out, err, exitcode := LaceworkCLI("help", "cloud-account")
3231
assert.Contains(t, out.String(), "lacework cloud-account [command]")
@@ -35,25 +34,24 @@ func TestCloudAccountCommandAliases(t *testing.T) {
3534

3635
// lacework cloud-accounts
3736
out, err, exitcode = LaceworkCLI("help", "cloud-accounts")
38-
assert.Contains(t, out.String(), "lacework cloud-accounts [command]")
37+
assert.Contains(t, out.String(), "lacework cloud-account [command]")
3938
assert.Empty(t, err.String(), "STDERR should be empty")
4039
assert.Equal(t, 0, exitcode, "EXITCODE is not the expected one")
4140

4241
// lacework cloud
4342
out, err, exitcode = LaceworkCLI("help", "cloud")
44-
assert.Contains(t, out.String(), "lacework cloud [command]")
43+
assert.Contains(t, out.String(), "lacework cloud-account [command]")
4544
assert.Empty(t, err.String(), "STDERR should be empty")
4645
assert.Equal(t, 0, exitcode, "EXITCODE is not the expected one")
4746

4847
// lacework ca
4948
out, err, exitcode = LaceworkCLI("help", "ca")
50-
assert.Contains(t, out.String(), "lacework ca [command]")
49+
assert.Contains(t, out.String(), "lacework cloud-account [command]")
5150
assert.Empty(t, err.String(), "STDERR should be empty")
5251
assert.Equal(t, 0, exitcode, "EXITCODE is not the expected one")
5352
}
5453

5554
func _TestCloudAccountCommandList(t *testing.T) {
56-
t.Skip()
5755
out, err, exitcode := LaceworkCLIWithTOMLConfig("cloud-account", "list")
5856
assert.Contains(t, out.String(), "CLOUD ACCOUNT GUID",
5957
"STDOUT table headers changed, please check")
@@ -73,7 +71,6 @@ func _TestCloudAccountCommandList(t *testing.T) {
7371
}
7472

7573
func _TestCloudAccountCommandListWithTypeFlag(t *testing.T) {
76-
t.Skip()
7774
out, err, exitcode := LaceworkCLIWithTOMLConfig("cloud-account", "list", "--type", "AWS_CFG")
7875
assert.Contains(t, out.String(), "CLOUD ACCOUNT GUID",
7976
"STDOUT table headers changed, please check")
@@ -95,7 +92,6 @@ func _TestCloudAccountCommandListWithTypeFlag(t *testing.T) {
9592
}
9693

9794
func _TestCloudAccountCommandListWithTypeFlagErrorUnknownType(t *testing.T) {
98-
t.Skip()
9995
out, err, exitcode := LaceworkCLIWithTOMLConfig("cloud-account", "list", "--type", "FOO_BAR")
10096
assert.Emptyf(t, out.String(),
10197
"STDOUT should be empty")
@@ -107,8 +103,7 @@ func _TestCloudAccountCommandListWithTypeFlagErrorUnknownType(t *testing.T) {
107103
}
108104

109105
func TestCloudAccountShow(t *testing.T) {
110-
t.Skip()
111-
out, err, exitcode := LaceworkCLIWithTOMLConfig("cloud-account", "show", "TECHALLY_948AB76C4F809D5CBE4C92BB38F6EBFD9F413694FD85C75")
106+
out, err, exitcode := LaceworkCLIWithTOMLConfig("cloud-account", "show", "TECHALLY_BA7DC3D27F930097DDD414B8FFF2F655FCB39075625F5E9")
112107
// Summary Table
113108
assert.Contains(t, out.String(), "CLOUD ACCOUNT GUID",
114109
"STDOUT table headers changed, please check")
@@ -149,7 +144,6 @@ func TestCloudAccountShow(t *testing.T) {
149144
}
150145

151146
func TestCloudAccountList(t *testing.T) {
152-
t.Skip()
153147
out, err, exitcode := LaceworkCLIWithTOMLConfig("ca", "list")
154148
assert.Contains(t, out.String(), "CLOUD ACCOUNT GUID",
155149
"STDOUT table headers changed, please check")

0 commit comments

Comments
 (0)