ExportXMLWordPrintableJSON

    • Type: Task
    • Resolution: Duplicate
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Go Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      Wire the AWS SSO login/secrets export (ticket 1) and the global CSE container (tickets 2-3) into TestMain for the CSE prose test package, so tests get a ready-to-use container and fresh credentials automatically, without every test (or every engineer) having to invoke either step manually.

      Definition of done

      • container.ExportSecrets is called in TestMain (in internal/test/prose) before m.Run().
      • The login/export step is skipped when valid, unexpired credentials are already present locally, so it only prompts the user when actually needed.
      • The login/export step is skipped entirely in CI, where ec2.assume_role has already supplied credentials.
      • TestMain creates the global CSE container (from ticketĀ 2) before m.Run() and tears it down after, loading the exported secrets into its environment.
      • A getter (e.g. container.Get() or similar) is added so individual tests can retrieve the running global container without re-creating it.

      Pitfalls

      Not investigated

            Assignee:
            Unassigned
            Reporter:
            Preston Vasquez
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: