testenv: Onboard GAIABytebotEnrollment tests for DMA
Added new OTA and accountpool to tape
BUG=b:393405203
TEST=tast run -var=dma.Enable=true $DUT policy.GAIABytebotEnrollment.*
Change-Id: I5bdbb1f3bd0f57978844d1f2793a288476e9fc8c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tast-tests/+/6866723
Tast-Review: Alexander Hartl <alexanderhartl@google.com>
Commit-Queue: Abha Awasthi (xWF) <abhaawasthi@google.com>
Reviewed-by: Alex Bergman <abergman@google.com>
Tested-by: Abha Awasthi (xWF) <abhaawasthi@google.com>
Tast-Review: Alex Bergman <abergman@google.com>
Reviewed-by: Hyung Tae Kim <hyungtaekim@chromium.org>
Reviewed-by: Alexander Hartl <alexanderhartl@google.com>
diff --git a/src/go.chromium.org/tast-tests/cros/common/dma/utils.go b/src/go.chromium.org/tast-tests/cros/common/dma/utils.go
index 8c6a010..5894e67 100644
--- a/src/go.chromium.org/tast-tests/cros/common/dma/utils.go
+++ b/src/go.chromium.org/tast-tests/cros/common/dma/utils.go
@@ -149,6 +149,7 @@
tape.BuiltInCertProvisioningAPITesting: tape.DmaBuiltInCertProvisioningAPITesting,
tape.DeviceTrustDisabled: tape.DmaDeviceTrustDisabled,
tape.DeviceTrustEnabled: tape.DmaDeviceTrustEnabled,
+ tape.ChromeosbytebotCom: tape.DmaChromeosbytebotCom,
}
}
diff --git a/src/go.chromium.org/tast-tests/cros/common/tape/pool_ids.go b/src/go.chromium.org/tast-tests/cros/common/tape/pool_ids.go
index 22a9e7f..9c69b68 100644
--- a/src/go.chromium.org/tast-tests/cros/common/tape/pool_ids.go
+++ b/src/go.chromium.org/tast-tests/cros/common/tape/pool_ids.go
@@ -50,6 +50,7 @@
DmaBuiltInCertProvisioningAPITesting = "dma_built_in_cert_provisioning_api_testing"
DmaDeviceTrustDisabled = "dma_device_trust_disabled"
DmaDeviceTrustEnabled = "dma_device_trust_enabled"
+ DmaChromeosbytebotCom = "dma_chromeosbytebot_com"
)
// PoolIds for unmanaged owned test accounts.
diff --git a/src/go.chromium.org/tast-tests/cros/remote/bundles/cros/policy/gaia_bytebot_enrollment.go b/src/go.chromium.org/tast-tests/cros/remote/bundles/cros/policy/gaia_bytebot_enrollment.go
index e9e7a95..0694ddc 100644
--- a/src/go.chromium.org/tast-tests/cros/remote/bundles/cros/policy/gaia_bytebot_enrollment.go
+++ b/src/go.chromium.org/tast-tests/cros/remote/bundles/cros/policy/gaia_bytebot_enrollment.go
@@ -10,6 +10,7 @@
"github.com/golang/protobuf/ptypes/empty"
+ "go.chromium.org/tast-tests/cros/common/dma"
"go.chromium.org/tast-tests/cros/common/pci"
"go.chromium.org/tast-tests/cros/common/policy"
"go.chromium.org/tast-tests/cros/common/tape"
@@ -35,7 +36,7 @@
},
BugComponent: "b:1111632",
Attr: []string{"group:dmserver-enrollment-daily"},
- SoftwareDeps: []string{"reboot", "chrome"},
+ SoftwareDeps: []string{"reboot", "chrome", "gaia"},
// b/365541979: Skip on the reven\nuc11.
HardwareDeps: hwdep.D(hwdep.SkipDMIProductName("NUC11TNKv5")),
ServiceDeps: []string{"tast.cros.policy.PolicyService", "tast.cros.tape.Service", "tast.cros.graphics.ScreenshotService"},
@@ -88,7 +89,7 @@
func GAIABytebotEnrollment(ctx context.Context, s *testing.State) {
param := s.Param().(gaiaenrollment.TestParams)
dmServerURL := param.DMServer
- poolID := param.PoolID
+ poolID := dma.TapePool(param.PoolID)
defer func(ctx context.Context) {
if err := policyutil.EnsureTPMAndSystemStateAreResetRemote(ctx, s.DUT()); err != nil {